Skip to content

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 29 Jul 22:08
· 80 commits to main since this release
ace4df7

Changelog

Changelog

[v0.2.1] - 2025-07-29

Added

  • Support for publishing rfortune to crates.io
  • Updated Cargo.toml with metadata required by crates.io:
    • Package description, authors, license, keywords, categories
    • Repository and homepage URLs
    • Included files for packaging

Notes

  • This version does not introduce new features or changes to functionality.
  • Users can now install rfortune directly via:
    cargo install rfortune

[v0.2.0] - 2025-07-27

✨ Added

  • Support for --init flag to automatically create the default directory and a sample rfortunes.dat file.
  • Cross-platform default path detection:
    • Linux/macOS: /usr/local/share/rfortune/rfortunes.dat
    • Windows: %APPDATA%\rfortune\rfortunes.dat or fallback to C:\Users\Public\rfortune\rfortunes.dat
  • Basic CLI argument parsing via clap:
    • --file <path> to specify a custom .dat file
    • --version, --help standard output
  • New README.md with full documentation of features, usage, installation, and init.
  • Modular refactoring of codebase:
    • main.rs: CLI and application entry point
    • loader.rs: reads and parses .dat files
    • fortune.rs: selects a random fortune

🛠 Changed

  • Default fortune file format now expects phrases separated by % on their own line (BSD style).
  • Improved error messages and file validation.