Rucron: A Pure Rust Implementation Job Scheduling Package.

A job scheduling library writed by rust, which is similar to gocron or linux crontab.
The crate currently supports asynchronous task which uses tokio runtime.

Usage

See the example in examples folder.

Quickstart

toml [dependencies] rucron = "0.1.0"

```rust use rucron::locker::Locker; use rucron::Scheduler;

async fn foo() { println!("foo"); }

[tokio::main]

async fn main() { let mut sch = Scheduler::<(), ()>::new(1, 10); sch.every(10) .await .second() .await .todo(foo) .await; sch.start().await; } ```

License

Rucron is licensed under the MIT license.

Contributing

Contributions are welcome.