# 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.59.0" name = "crystals-rs" version = "0.0.1" authors = ["Kamyar Mohajerani "] autobenches = true description = "Rust implementation of CRYSTALS-Kyber and CRYSTALS-Dilithium" readme = "README.md" categories = [ "cryptography", "no-std", ] license = "Apache-2.0" resolver = "2" [package.metadata.docs.rs] all-features = true [profile.dev] [profile.release] opt-level = 3 lto = true codegen-units = 1 debug = false debug-assertions = false panic = "abort" overflow-checks = false incremental = true strip = true [lib] bench = false [[bench]] name = "keccak" harness = false [[bench]] name = "kyber_poly" harness = false required-features = ["pub_internals"] [[bench]] name = "dilithium_poly" harness = false required-features = ["pub_internals"] [[bench]] name = "kyber_polyvec" harness = false required-features = ["pub_internals"] [[bench]] name = "dilithium_polyvec" harness = false required-features = ["pub_internals"] [[bench]] name = "kyber_gen_matrix" harness = false required-features = ["pub_internals"] [[bench]] name = "kyber_indcpa" harness = false [dependencies.array-init] version = "2.0.1" [dependencies.crunchy] version = "0.2.2" features = ["limit_64"] default-features = false [dependencies.paste] version = "1.0.7" [dependencies.rand] version = "0.8.5" default-features = false [dependencies.secrecy] version = "0.8.0" default-features = false [dependencies.static_assertions] version = "1.1.0" [dependencies.zeroize] version = "1.5.7" features = [ "zeroize_derive", "aarch64", ] default-features = false [dev-dependencies.criterion] version = "0.3.5" features = ["html_reports"] [dev-dependencies.hex-literal] version = "0.3.4" [dev-dependencies.rand] version = "0.8.5" [dev-dependencies.sha3] version = "0.10.1" default-features = false [dev-dependencies.tiny-keccak] version = "2.0.2" features = [ "fips202", "keccak", "sha3", "shake", ] [build-dependencies.autocfg] version = "1" [features] alloc = [ "zeroize/alloc", "secrecy/alloc", ] default = ["pub_internals"] pub_internals = [] std = [ "alloc", "rand/std", "rand/std_rng", ] unstable = []