1. Only showing results from lib.rs

    Clear filter to show all search results

  2. 371,808 downloads per month Used in 644 crates (105 directly). MIT/Apache. 22KB 250 lines. array-init. The array-init crate allows you to initialize arrays with an initializer closure that will be called once for each element until the array is filled.. This way you do not need to default-fill an array before running initializers. Rust currently only lets you either specify all initializers at ...
  3. Dec 13, 2024Related: static_init_macro See also: fastrace, gping, tracing-profile, boreal, benchmarking, bon, times, fun_time, array-macro, once_cell, lazy_static Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski.It contains data from multiple sources, including heuristics, and manually curated data.Content of this page is not necessarily endorsed by the authors of the crate.
  4. Feb 5, 2025259 downloads per month . Custom license. 16KB 135 lines. lazy_winit. A simple library for initializing winit application state lazily without dealing with nullables.. fn main()-> Result<(), EventLoopError> {use lazy_winit::EventLoopExt; // This will run your application lazy, and will not check if it is initialized before being called. This may be // helpful for performance reasons, but may ...
  5. Dec 20, 2024env_logger must be initialized as early as possible in the project. After it's initialized, you can use the log macros to do actual logging. use log::info; fn main() {env_logger::init(); info!("starting up"); //...} Then when running the executable, specify a value for the RUST_LOG environment variable that corresponds with the log messages you ...
  6. Oct 7, 2024lib.rs: . A collection of lazy initialized values that are created by Futures. [OnceCell]'s API is similar to the once_cell crate, std::cell::OnceCell, or std::sync::OnceLock.It provides an async version of a cell that can only be initialized once, permitting tasks to wait on the initialization if it is already running instead of racing multiple initialization tasks.
  7. See also: env_logger, log, log4rs, simplelog, test-log, fern, android_logger, pretty_env_logger, tui-logger, paris, cargo-util Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski.It contains data from multiple sources, including heuristics, and manually curated data.Content of this page is not necessarily endorsed by the authors of the crate.
  8. Jan 14, 2025Executables should choose a logger implementation and initialize it early in the runtime of the program. Logger implementations will typically include a function to do this. Any log messages generated before the logger is initialized will be ignored. The executable itself may use the log crate to log as well. Structured logging
  9. Jun 21, 202413,108,410 downloads per month Used in 46,038 crates (9,977 directly). MIT/Apache. 15KB 125 lines. lazy-static.rs. A macro for declaring lazily evaluated statics in Rust. Using this macro, it is possible to have statics that require code to be executed at runtime in order to be initialized.This includes anything requiring heap allocations, like vectors or hash maps, as well as anything that ...
  10. Oct 7, 2024Any initialized tracing subscriber imported from your upstream package will not collect traces from any other pyo3 extension module. In other words, any pyo3 extension module will need to separately export tracing configuration and context managers, which in turn must be separately initialized in order to capture Rust traces from respective ...

    Can’t find what you’re looking for?

    Help us improve DuckDuckGo searches with your feedback

Custom date rangeX