Crates.io | sleepy |
lib.rs | sleepy |
version | 1.0.1 |
source | src |
created_at | 2021-12-31 04:45:19.500637 |
updated_at | 2021-12-31 04:51:16.309152 |
description | A simple crate containg only the function 'sleep' which takes 1 input in terms of seconds and pauses the program for that long |
homepage | https://github.com/NintendEthan/rust-sleep |
repository | https://github.com/NintendEthan/rust-sleep |
max_upload_size | |
id | 505664 |
size | 2,021 |
to use this crate add the following line to your Cargo.toml under the [dependencies] section: sleepy = "1.0.0"
then put: "use sleepy::sleep" in your .rs file
finally, call the sleep(x) function with x being the amount of seconds to pause for