Crates.io | zila |
lib.rs | zila |
version | 0.1.8 |
source | src |
created_at | 2023-05-08 10:10:57.767027 |
updated_at | 2023-05-09 12:36:15.340873 |
description | A library for calling functions on certain events |
homepage | |
repository | https://github.com/a-rustacean/zila |
max_upload_size | |
id | 859651 |
size | 63,556 |
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.
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:
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.
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
:balloon: 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.
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.
This project is licensed under the MIT license.
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.