Skip to content

Rewrite maifetch in Rust#10

Open
aldorizona10-glitch wants to merge 1 commit into
HutchyBen:mainfrom
aldorizona10-glitch:rewrite-in-rust
Open

Rewrite maifetch in Rust#10
aldorizona10-glitch wants to merge 1 commit into
HutchyBen:mainfrom
aldorizona10-glitch:rewrite-in-rust

Conversation

@aldorizona10-glitch

@aldorizona10-glitch aldorizona10-glitch commented Jun 10, 2026

Copy link
Copy Markdown

Closes #1.

This rewrites maifetch from Go to Rust while preserving the main CLI behavior:

  • Loads access token, score count, logo size, and config file from CLI/env/config.
  • Supports README env vars (MAITEA_) and existing Go-style env vars (MAIFETCH_).
  • Supports both -a and -t for access token compatibility.
  • Fetches MaiTea profiles and recent plays with authenticated requests.
  • Prints the same profile/recent score fields and supports disabling logo output with --logo-size 0.
  • Uses reqwest with rustls-tls to avoid system OpenSSL requirements.

Validation run:

cargo build --release
./target/release/maifetch --help
./target/release/maifetch -a dummy --score-count 13 --logo-size 0

The last command verifies CLI parsing and validation without needing a real token.

@aldorizona10-glitch

aldorizona10-glitch commented Jun 10, 2026

Copy link
Copy Markdown
Author

Follow-up on this bounty PR: the Rust rewrite builds successfully with cargo build --release and preserves the main CLI/config behavior, including MAITEA_* env vars from the README plus compatibility aliases for the existing Go-style config names. Happy to adjust anything around output parity or project structure if you want a narrower or more library-like split.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BOUNTY] Rewrite in Rust

1 participant