Skip to content

Rewrite maifetch in Rust#5

Open
Errordog2 wants to merge 1 commit into
HutchyBen:mainfrom
Errordog2:codex/rewrite-maifetch-rust
Open

Rewrite maifetch in Rust#5
Errordog2 wants to merge 1 commit into
HutchyBen:mainfrom
Errordog2:codex/rewrite-maifetch-rust

Conversation

@Errordog2

Copy link
Copy Markdown

Fixes #1.

Rewrites the project from Go to Rust while keeping the CLI behavior and MaiTea output flow aligned with the original tool:

  • replaces the Go module with a Rust binary crate
  • preserves JSON config loading with the same maifetch.json shape
  • supports the existing CLI options for access token, config file, score count, and logo size
  • supports both MAIFETCH_* env vars from the original Go envconfig prefix and the documented MAITEA_* env vars
  • keeps the MaiTea API client methods for profiles, tracks, plays, scores, pagination, and status
  • renders the same profile summary fields and recent score layout, with optional image-to-ASCII logo output
  • updates build docs to use cargo build --release

Validation performed:

  • cargo fmt --check
  • cargo metadata --no-deps --format-version 1

I also attempted cargo check, but this Windows environment does not have a system linker installed: the MSVC target is missing link.exe / Windows SDK libs, and the GNU target is missing gcc.exe. The Rust toolchain and dependencies were otherwise installed and resolved successfully.

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