# 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" rust-version = "1.65" name = "chacha20" version = "0.10.0-pre.2" authors = ["RustCrypto Developers"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = """ The ChaCha20 stream cipher (RFC 8439) implemented in pure Rust using traits from the RustCrypto `cipher` crate, with optional architecture-specific hardware acceleration (AVX2, SSE2). Additionally provides the ChaCha8, ChaCha12, XChaCha20, XChaCha12 and XChaCha8 stream ciphers, and also optional rand_core-compatible RNGs based on those ciphers. """ documentation = "https://docs.rs/chacha20" readme = "README.md" keywords = [ "crypto", "stream-cipher", "chacha8", "chacha12", "xchacha20", ] categories = [ "cryptography", "no-std", ] license = "Apache-2.0 OR MIT" repository = "https://github.com/RustCrypto/stream-ciphers" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "chacha20" path = "src/lib.rs" [[test]] name = "mod" path = "tests/mod.rs" [[bench]] name = "mod" path = "benches/mod.rs" [dependencies.cfg-if] version = "1" [dependencies.cipher] version = "=0.5.0-pre.7" optional = true [dependencies.rand_core] version = "0.9.0-alpha.2" optional = true default-features = false [dependencies.serde] version = "1.0" features = ["derive"] optional = true [dependencies.zeroize] version = "1.8.1" optional = true [dev-dependencies.cipher] version = "=0.5.0-pre.7" features = ["dev"] [dev-dependencies.hex-literal] version = "0.4" [dev-dependencies.rand_chacha] version = "0.3.1" [dev-dependencies.serde_json] version = "1.0" [features] default = ["cipher"] legacy = ["cipher"] rng = ["rand_core"] serde1 = ["serde"] std = ["cipher/std"] xchacha = ["cipher"] [target.'cfg(any(target_arch = "x86_64", target_arch = "x86"))'.dependencies.cpufeatures] version = "0.2"