trump

Crates.iotrump
lib.rstrump
version0.1.1
created_at2025-10-17 15:10:29.767746+00
updated_at2025-10-17 15:47:03.338199+00
descriptionSpawn a background thread that prints a Donald Trump quote every 10 seconds.
homepagehttps://gitee.com/luzhihaoTestingLab/useful-cargo-packages
repositoryhttps://gitee.com/luzhihaoTestingLab/useful-cargo-packages.git
max_upload_size
id1887763
size12,796
luzhihaoTestingLab (luzhihaoTestingLab)

documentation

https://docs.rs/trump

README

trump

Spawn a background thread that prints a Donald Trump quote every 10 seconds.

Usage

Add to your Cargo.toml:

[dependencies]
trump = "0.1"

Example:

use trump::start_quotes;
use std::time::Duration;
use std::thread;

fn main() {
    // Start background printing; this call returns immediately.
    start_quotes();

    // Keep main alive to observe several quotes.
    thread::sleep(Duration::from_secs(35));
}

License

MIT

Commit count: 0

cargo fmt