#language #scripting

runestick-time

An time module based on tokio::time for runestick

2 unstable releases

0.3.0 Sep 2, 2020
0.2.2 Aug 7, 2020

#137 in #scripting

MIT/Apache

685KB
16K SLoC

Build Status

runestick-time

The runestick time package.

Usage

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;
}

lib.rs:

The runestick time package.

Usage

Add the following to your Cargo.toml:

runestick = "0.2"
runestick-time = "0.2"

Install it into your context:

# fn main() -> runestick::Result<()> {
let mut context = runestick::Context::with_default_packages()?;
context.install(&runestick_time::module()?)?;
# Ok(())
# }

Use it in Rune:

use time;

fn main() {
    time::delay_for(time::Duration::from_secs(10)).await;
}

Dependencies

~5.5MB
~94K SLoC