| Crates.io | runestick-time |
| lib.rs | runestick-time |
| version | 0.3.0 |
| created_at | 2020-08-07 15:27:37.550271+00 |
| updated_at | 2020-09-02 17:15:48.619266+00 |
| description | An time module based on tokio::time for runestick. |
| homepage | https://github.com/rune-rs/rune |
| repository | https://github.com/rune-rs/rune |
| max_upload_size | |
| id | 274031 |
| size | 3,564 |
The runestick time package.
Add the following to your Cargo.toml:
runestick = "0.2"
runestick-time = "0.2"
Install it into your context:
let mut context = runestick::Context::with_default_packages()?;
context.install(runestick_time::module()?)?;
Use it in Rune:
use time;
fn main() {
time::delay_for(time::Duration::from_secs(10)).await;
}