7 releases

0.1.8 May 9, 2023
0.1.7 May 9, 2023

#181 in Date and time

24 downloads per month

MIT license

29KB
319 lines

Zila

A library for calling function on certain events with the Rust programming language. It is:

  • Fast: Zila uses tokio and Chrono under the hood that makes it very fast

  • Reliable: Zila leverages Rust's ownership, type system, and concurrency model to reduce bugs and ensure thread safety.

  • Scalable: Zila has a minimal footprint, and handles backpressure and cancellation naturally.

Crates.io MIT licensed Build Status

Overview

Zila is a fast and reliable library for performing tasks on certian events. It propvides both synchronous and asynchronous functions to make writing Rust code esier. At a high level, it provides a few major functions:

Example

A basic logger with zila.

Make sure you activated the second features of the zila crate on Cargo.toml:

[dependencies]
zila = { version = "0.1.8", features = ["second"] }

Then, on your main.rs:

use zila::call_every_second;

fn main() {
    call_every_second(|| {
        println!("Hi");
    })
}

More examples can be found here.

Getting Help

First, see if the answer to your question can be found in the API documentation. If the answer is not there, you can raise an issue if you think there is a problem with zila

Contributing

🎈 Thanks for your help improving the project! We are so happy to have you! We have a contributing guide to help you get involved in the zila project.

Release schedule

zila doesn't follow a fixed release schedule, but we typically make one to two new minor releases each month. We make patch releases for bugfixes as necessary.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in zila by you, shall be licensed as MIT, without any additional terms or conditions.

Dependencies

~3–4MB
~64K SLoC