# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "common_uu" version = "1.7.1" authors = ["guoyu "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "公共工具库" readme = "README.md" license = "MIT OR Apache-2.0" [lib] name = "common_uu" crate-type = [ "cdylib", "rlib", ] path = "src/lib.rs" [[example]] name = "config_demo" path = "examples/config_demo.rs" [[example]] name = "feishu" path = "examples/feishu.rs" [[example]] name = "log_test" path = "examples/log_test.rs" [[example]] name = "mail_demo" path = "examples/mail_demo.rs" [[example]] name = "restart" path = "examples/restart.rs" [[example]] name = "watch_demo" path = "examples/watch_demo.rs" [dependencies.async-trait] version = "0.1" optional = true [dependencies.bytes] version = "1" optional = true [dependencies.chrono] version = "0.4" [dependencies.crossbeam] version = "0.8" optional = true [dependencies.csv] version = "1.3.0" optional = true [dependencies.ctor] version = "0.2" optional = true [dependencies.dirs] version = "4" [dependencies.encoding_rs] version = "0.8" optional = true [dependencies.enum-utils] version = "0.1.2" [dependencies.futures-util] version = "0.3" features = ["sink"] optional = true [dependencies.isahc] version = "1.1" features = [ "json", "text-decoding", ] optional = true default-features = false [dependencies.lettre] version = "0.10" optional = true [dependencies.log] version = "0.4" optional = false [dependencies.log4rs] version = "1.1.1" features = [ "compound_policy", "background_rotation", "fixed_window_roller", "size_trigger", "json_encoder", "threshold_filter", "file_appender", "rolling_file_appender", "console_appender", ] default-features = false [dependencies.memchr] version = "2" optional = true [dependencies.once_cell] version = "1" optional = false [dependencies.os_pipe] version = "1" optional = true [dependencies.percent-encoding] version = "2.1" optional = true [dependencies.rand] version = "0.8" [dependencies.reqwest] version = "0.11" features = [ "json", "multipart", "stream", ] optional = true [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_json] version = "1.0" features = ["preserve_order"] [dependencies.shared_child] version = "1" optional = true [dependencies.tokio] version = "1.26" features = [ "rt-multi-thread", "time", "macros", "net", "signal", "io-util", ] optional = true [dependencies.tokio-util] version = "0.7" optional = true [dependencies.toml] version = "0.7" optional = true [dependencies.uuid] version = "1.2" features = [ "serde", "v4", ] [dev-dependencies] [features] default = [ "use_req", "use_req_async", "use_toml", "use_mail", "use_tcp", ] req_timeout_30 = ["use_req"] req_timeout_60 = ["use_req"] use_async = ["tokio"] use_blocking = ["reqwest/blocking"] use_csv = ["csv"] use_mail = [ "lettre", "use_req", ] use_req = [ "isahc", "percent-encoding", ] use_req_async = [ "reqwest", "percent-encoding", ] use_restart = [ "tokio", "os_pipe", "shared_child", "encoding_rs", "memchr", "ctor", ] use_tcp = [ "tokio", "async-trait", "bytes", "futures-util", "tokio-util", ] use_toml = [ "toml", "crossbeam", ]