| Crates.io | trump |
| lib.rs | trump |
| version | 0.1.1 |
| created_at | 2025-10-17 15:10:29.767746+00 |
| updated_at | 2025-10-17 15:47:03.338199+00 |
| description | Spawn a background thread that prints a Donald Trump quote every 10 seconds. |
| homepage | https://gitee.com/luzhihaoTestingLab/useful-cargo-packages |
| repository | https://gitee.com/luzhihaoTestingLab/useful-cargo-packages.git |
| max_upload_size | |
| id | 1887763 |
| size | 12,796 |
Spawn a background thread that prints a Donald Trump quote every 10 seconds.
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));
}
MIT