[go: up one dir, main page]

slog 2.8.0-rc.1

Structured, extensible, composable logging for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub fn main() {
    if std::env::var_os("CARGO_FEATURE_STD").is_some()
        || rustversion::cfg!(since(1.81))
    {
        // TODO:: It would be nice to disallow use of std::error::Error
        // Renaming imports using the clippy-disallowed-types lint doesn't work
        println!("cargo:rustc-cfg=has_std_error")
    }
    if rustversion::cfg!(since(1.80)) {
        println!("cargo:rustc-check-cfg=cfg(has_std_error)")
    }
}