# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] # 设置 crate 类型,有三个选项:`rlib` (Rust library),`dylib` (dynamic library),`cdylib` (C-compatible dynamic library) crate-type = ["rlib"] proc-macro = false [features] std = [] alloc = [] fs = [] fs_ext = [ "fs", "winapi", "winapi/handleapi", "winapi/processthreadsapi", "winapi/winbase", "winapi/minwinbase", "winapi/winerror", "winapi/fileapi", "libc", ] uuid_v4 = ["uuid/v4", "uuid/fast-rng", "uuid/macro-diagnostics", "uuid"] base64 = [] algorithm = ["rand"] ui = ["e-macros", "winapi", "winapi/winuser"] macros = ["e-macros"] images = ["image"] http = ["reqwest"] http-blocking = ["reqwest/blocking"] http-json = ["reqwest/json"] cmd = ["encode", "fs"] encode = ["encoding_rs", "chardet"] dialog = ["rfd", "rfd/xdg-portal", "rfd/tokio", "glib", "tokio", "tokio/full"] default = ["std"] [dependencies] serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } thiserror = "^1.0.57" regex = "1.10" chrono = { version = "0.4", features = ["serde"] } once_cell = "1" reqwest = { version = "0.12", optional = true } uuid = { version = "1.10.0", optional = true } rand = { version = "^0.8.5", optional = true, features = ["small_rng"] } e-macros = { version = "0.1", optional = true } image = { version = "0.25.0", optional = true } encoding_rs = { version = "0.8", optional = true } chardet = { version = "0.2", optional = true } tokio = { version = "1", optional = true, default-features = false } [target.'cfg(target_os="windows")'.dependencies] winapi = { version = "0.3", default-features = false, features = [ ], optional = true } [target."cfg(unix)".dependencies.libc] version = "0.2" optional = true [target."cfg(any(target_os = \"macos\", target_os = \"windows\", target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies.rfd] version = "^0.14.0" default-features = false optional = true [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies.glib] version = "0.20.0" optional = true # If you copy one of the examples into a new project, you should be using # [dependencies] instead, and delete the **path**. [dev-dependencies] e-utils = { path = "./", features = [ "dialog", "fs", "cmd", "fs_ext", "ui", "uuid_v4", ] } tempdir = "0.3" [package] name = "e-utils" version = "0.3.74" description = "a rust utils" authors = [ "Eternal Night ", ] edition = "2021" rust-version = "1.78.0" homepage = "https://gitee.com/eternalnight996" license-file = "MIT-LICENSE" readme = "README.md" documentation = "https://docs.rs/e-utils" repository = "https://gitee.com/eternalnight996/e-utils" include = ["src/", "*.md", "*-LICENSE", "Cargo.toml", "examples/"] keywords = ["utils", "tools", "e-utils", "e-"] categories = ["development-tools::build-utils"] [package.metadata.docs.rs] rustdoc-args = ["--cfg", "doc_cfg"] all-features = true