[package] name = "common_uu" version = "1.7.1" authors = ["guoyu "] edition = "2021" description = "公共工具库" license = "MIT OR Apache-2.0" [lib] crate-type = ["cdylib", "rlib"] [dependencies] reqwest = { optional = true, version = "0.11", features = ["json", "multipart", "stream"] } isahc = { optional = true, version = "1.1", default-features = false, features = ["json", "text-decoding"] } percent-encoding = { optional = true, version = "2.1"} tokio = { optional = true, version = "1.26", features = ["rt-multi-thread", "time", "macros", "net", "signal", "io-util"]} async-trait = { version = "0.1", optional = true} uuid = { version = "1.2", features = ["serde", "v4"] } csv = {version = "1.3.0", optional = true} os_pipe = { version = "1", optional = true} shared_child = { version = "1", optional = true} encoding_rs = { version = "0.8", optional = true} memchr = { version = "2", optional = true} ctor = { version = "0.2", optional = true} futures-util = { optional = true, version = "0.3", features = ["sink"]} tokio-util = { optional = true, version = "0.7"} 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 } # fast_log = { optional = true, version = "1.5"} log = { optional = false, version = "0.4"} serde = { version = "1.0", features = ["derive"] } serde_json = { version="1.0", features= ["preserve_order"] } bytes = { optional = true, version = "1"} rand = "0.8" chrono = "0.4" dirs = "4" enum-utils = "0.1.2" once_cell = { optional = false, version = "1"} lettre = { optional = true, version = "0.10"} crossbeam = { optional = true, version = "0.8"} toml = { optional = true, version = "0.7"} # hotwatch = { optional = true, version = "0.4"} [dev-dependencies] # tokio = { version = "1", features = ["full"] } [features] default = ["use_req", "use_req_async", "use_toml", "use_mail", "use_tcp"] use_restart = ["tokio", "os_pipe", "shared_child", "encoding_rs", "memchr", "ctor"] use_async = ["tokio"] use_tcp = ["tokio", "async-trait", "bytes", "futures-util", "tokio-util"] use_req = ["isahc", "percent-encoding"] use_req_async = ["reqwest", "percent-encoding"] use_blocking = ["reqwest/blocking"] # use_log = ["fast_log"] use_toml = ["toml", "crossbeam"] use_mail = ["lettre", "use_req"] req_timeout_30 = ["use_req"] req_timeout_60 = ["use_req"] use_csv = ["csv"]