# 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) # 默认是 `rlib` crate-type = ["rlib"] proc-macro = false [features] ftp = ["suppaftp"] smb = ["remotefs/find"] ssh = ["remotefs-ssh"] tracing = ["e-log/tracing"] log = ["e-log/log"] default = [] [target."cfg(not(target_os = \"macos\"))".dependencies] remotefs-smb = { version = "^0.2", optional = true } [target."cfg(target_family = \"windows\")"] [target."cfg(target_family = \"windows\")".dependencies] remotefs-ssh = { version = "^0.3.1", optional = true } suppaftp = { version = "^6.0", features = ["native-tls"], optional = true } filetime = "^0.2" windows-sys = { version = "^0.48", features = [ "Win32_NetworkManagement_WNet", "Win32_Foundation", ] } [target."cfg(target_family = \"unix\")"] [target."cfg(target_family = \"unix\")".dependencies] remotefs-ssh = { version = "^0.3.1", features = [ "ssh2-vendored", ], optional = true } suppaftp = { version = "^6.0", features = ["native-tls"], optional = true } libc = "^0.2" pavao = "^0.2" [dependencies] serde = { version = "1.0", features = ["derive"] } e-utils = "0.3" e-log = { version = "0.2", default-features = false } remotefs = { version = "0.2" } [dev-dependencies] e-clients = { path = ".", features = ["ftp"] } [package] name = "e-clients" version = "0.1.9" description = "a rust services link upload: ftp、local、ssh、smb" authors = [ "Eternal Night ", ] edition = "2021" rust-version = "1.76.0" homepage = "https://gitee.com/eternalnight996" license-file = "MIT-LICENSE" readme = "README.md" documentation = "https://docs.rs/e-clients" repository = "https://gitee.com/eternalnight996/e-clients" include = ["src/", "*.md", "*-LICENSE", "Cargo.toml", "examples/"] keywords = ["smb", "ftp", "ssh", "upload", "e-"] categories = [] [package.metadata.docs.rs] # RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --all-features --no-deps --open rustdoc-args = ["--cfg", "doc_cfg"] all-features = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html