| Crates.io | on-this-day |
| lib.rs | on-this-day |
| version | 0.1.1 |
| created_at | 2025-10-23 21:23:59.8549+00 |
| updated_at | 2025-10-23 21:40:38.979753+00 |
| description | A CLI tool to fetch a historical event for the current day from Wikipedia. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1897712 |
| size | 61,571 |
A simple command-line tool that fetches historical events for the current date from Wikipedia's "On this day" API. Get interesting facts about what happened on this day in history!
Make sure you have Rust installed on your system. Then clone and build the project:
git clone <repository-url>
cd on-this-day
cargo build --release
Run the application with:
cargo run
Or after building:
./target/release/on-this-day
-o, --oldest: Display the oldest event for today (conflicts with --newest)-n, --newest: Display the newest event for today (conflicts with --oldest)-h, --help: Print help information-V, --version: Print version information-t, --event-type <TYPE>: Filter by event typeAvailable event types:
all (default): Shows events from all categoriesselected: Curated selection of notable eventsbirths: Notable births that occurred on this daydeaths: Notable deaths that occurred on this dayholidays: Holidays and observancesevents: General historical eventsThis project uses the following Rust crates:
reqwest - HTTP client for API requestsserde & serde_json - JSON serialization/deserializationtokio - Async runtimechrono - Date and time handlingclap - Command-line argument parsingrand - Random selection of eventsThis tool uses the Wikimedia REST API to fetch historical events. The API is free to use and doesn't require authentication, but the application includes a proper User-Agent header as required by Wikipedia's policies.
This project is licensed under the MIT License. See the LICENSE file for details.