Skip to content

Rewrite maifetch in Rust#18

Open
andrewlu-lang wants to merge 2 commits into
HutchyBen:mainfrom
andrewlu-lang:feature/rewrite-maifetch-rust
Open

Rewrite maifetch in Rust#18
andrewlu-lang wants to merge 2 commits into
HutchyBen:mainfrom
andrewlu-lang:feature/rewrite-maifetch-rust

Conversation

@andrewlu-lang

Copy link
Copy Markdown

Summary

Rewrites maifetch from Go to Rust while keeping the existing CLI behavior and output shape aligned with the original implementation.

Changes

  • Add a Rust CLI entrypoint with clap
  • Preserve access token/config loading from JSON, environment variables, and CLI arguments
  • Keep recent play/profile fetching from the MaiTea API
  • Recreate colored score/rank/difficulty output
  • Recreate profile icon ASCII rendering
  • Update build instructions to use Cargo
  • Remove the old Go implementation and Go module files

Verification

  • cargo check
  • cargo fmt -- --check
  • cargo run -- --help
  • cargo build --release

Closes #1

@nyairobi

Copy link
Copy Markdown

Nice job, Andrew.

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

2 participants