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.
See the example in examples
folder.
toml
[dependencies]
rucron = "0.1.0"
```rust use rucron::locker::Locker; use rucron::Scheduler;
async fn foo() { println!("foo"); }
async fn main() { let mut sch = Scheduler::<(), ()>::new(1, 10); sch.every(10) .await .second() .await .todo(foo) .await; sch.start().await; } ```
Rucron is licensed under the MIT license.
Contributions are welcome.