log是一个用于日志记录的库。它提供了多个特性,可以用来启用或禁用某些功能。下面是一些常见的特性及其用途:• std: 用于启用log的标准库支持,可以在标准库环境中使用log。• env_logger: 用于启用log的环境变量支持,可以使用环境变量来控制日志输出。• log4rs: 用于启用log的log4rs支持,可以使用log4rs库...
std: 用于启用log的标准库支持,可以在标准库环境中使用log。 env_logger: 用于启用log的环境变量支持,可以使用环境变量来控制日志输出。 log4rs: 用于启用log的log4rs支持,可以使用log4rs库来配置日志输出。 simplelog: 用于启用log的simplelog支持,可以使用simplelog库来配置日志输出。 下面是一个示例: [dependenci...
• std: 用于启用log的标准库支持,可以在标准库环境中使用log。 • env_logger: 用于启用log的环境变量支持,可以使用环境变量来控制日志输出。 • log4rs: 用于启用log的log4rs支持,可以使用log4rs库来配置日志输出。 •simplelog: 用于启用log的simplelog支持,可以使用simplelog库来配置日志输出。 下面是...
pretty_env_logger = "0.3" serde = "1.0" common-utils = { git = "ssh://git@xxx.com/common/common-utils.git", tag = "v0.0.1" } common-log = { git = "ssh://git@xxx.com/common/common-log.git", branch = "master" } 这里的common-utilscommon-log就是私库的具体依赖。 common-ut...
"winnt", ] [dev-dependencies] cargo-test-macro = { path = "crates/cargo-test-macro", version = "0.1.0" } [[bin]] name = "cargo" test = false doc = false [features] deny-warnings = [] vendored-openssl = ['openssl/vendored'] pretty-env-logger = ['pretty_env_logger']©...
"env_logger", "log", "serde", "serde_with", "static-files", "tantivy-meta-tokenizer", ] [[package]] name = "book-searcher-core" version = "1.3.0" dependencies = [ "anyhow", "csv", "env_logger", "indicatif", "log", "serde", "serde_with", "...
env_logger = "0.3.3" (etc) Here's what I've tried so far. Attempt one: add the crate into dev-dependencies with the feature, ie: [dev-dependencies.rustls] path = "." version = "0.1.0" features = ["clientauth"] I kind of expected that to work, but it panics: ...
"env_logger", "eyre", "image", "log", "nalgebra-glm", "pollster", "wgpu", "winit", ] [[package]] name = "built" version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "236e6289eda5a812bc6b53c3b024039382a2895fbbeef...
name = "env_logger" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3" dependencies = [ "atty", "humantime", "log", "regex", "termcolor", ] [[pack...
name = "env_logger" version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3" dependencies = [ "atty", "humantime", "log", "regex", "termcolor", ] [[pac...