# 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 = "w3s" version = "0.2.10" description = "A Rust crate to the easily upload file or directory to Web3.Storage with optional encryption and compression" documentation = "https://docs.rs/w3s" readme = "README.md" keywords = [ "w3s", "ipfs", "filecoin", "web3storage", "web3", ] categories = [ "api-bindings", "accessibility", ] license = "MIT OR Apache-2.0" repository = "https://github.com/qdwang/w3s-rs" resolver = "2" [[example]] name = "download-decrypt-decompress-file" path = "examples/download/download-decrypt-decompress-file.rs" required-features = [ "encryption", "zstd", ] [[example]] name = "download-decrypt-file" path = "examples/download/download-decrypt-file.rs" required-features = ["encryption"] [[example]] name = "download-file" path = "examples/download/download-file.rs" [[example]] name = "file-upload" path = "examples/upload/file-upload.rs" [[example]] name = "file-encrypt-upload" path = "examples/upload/file-encrypt-upload.rs" required-features = ["encryption"] [[example]] name = "file-compress-upload" path = "examples/upload/file-compress-upload.rs" required-features = ["zstd"] [[example]] name = "file-car-upload" path = "examples/upload/file-car-upload.rs" [[example]] name = "file-compress-encrypt-car-upload" path = "examples/upload/file-compress-encrypt-car-upload.rs" required-features = [ "encryption", "zstd", ] [dependencies.aead] version = "0.4" optional = true [dependencies.argon2] version = "0.4" optional = true [dependencies.async-recursion] version = "1" [dependencies.chacha20] version = "0.9" optional = true [dependencies.cid] version = "0.8" [dependencies.futures] version = "0.3" [dependencies.html-escape] version = "0.2" [dependencies.integer-encoding] version = "3.0" features = ["tokio_async"] [dependencies.ipld] version = "0.13" package = "libipld" [dependencies.ipld-cbor] version = "0.13" package = "libipld-cbor" [dependencies.ipld-pb] version = "0.13" package = "libipld-pb" [dependencies.multihash] version = "0.16" [dependencies.poly1305] version = "0.7" optional = true [dependencies.quick-protobuf] version = "0.8" [dependencies.rand] version = "0.8" optional = true [dependencies.reqwest] version = "0.11" features = ["stream"] [dependencies.serde] version = "1" features = ["derive"] [dependencies.serde_json] version = "1" [dependencies.thiserror] version = "1" [dependencies.tl] version = "0.7.7" [dependencies.tokio] version = "1" features = [ "rt", "io-util", "rt-multi-thread", ] [dependencies.unixfs-v1] version = "0.2" [dependencies.zeroize] version = "1" optional = true [dependencies.zstd] version = "0.11" optional = true [dev-dependencies.anyhow] version = "1" [dev-dependencies.tokio] version = "1" features = ["macros"] [features] all = [ "zstd", "encryption", ] encryption = [ "rand", "argon2", "chacha20", "poly1305", "aead", "zeroize", ]