# 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 = "2018" name = "kyberlib" version = "0.0.6" authors = ["The kyberlib contributors "] build = "build.rs" exclude = [ "/.git/*", "/.github/*", "/.gitignore", "/.vscode/*", ] include = [ "/CONTRIBUTING.md", "/LICENSE-APACHE", "/LICENSE-MIT", "/benches/**", "/build.rs", "/Cargo.toml", "/examples/**", "/README.md", "/src/**", "/tests/**", ] description = "A Robust Rust Library for CRYSTALS-Kyber Post-Quantum Cryptography." homepage = "https://kyberlib.com" documentation = "https://docs.rs/kyberlib" readme = "README.md" keywords = [ "kyber", "kem", "key-exchange", "kex", "post-quantum", ] categories = [ "algorithms", "cryptography", "wasm", "no-std", ] license = "MIT OR Apache-2.0" repository = "https://github.com/sebastienrousseau/kyberlib" [package.metadata.clippy] warn-lints = [ "clippy::all", "clippy::pedantic", "clippy::cargo", "clippy::nursery", ] [package.metadata.docs.rs] 90s = ["sha2"] 90s-fixslice = [ "90s", "aes", "ctr", ] all-features = true avx2 = ["cc"] hazmat = [] nasm = [ "nasm-rs", "avx2", ] std = [] wasm = [ "wasm-bindgen", "getrandom", "rand", ] [profile.dev] opt-level = 0 lto = false codegen-units = 256 debug = 2 debug-assertions = true rpath = false panic = "unwind" overflow-checks = true incremental = true strip = false [profile.release] opt-level = "s" lto = true codegen-units = 1 debug = 0 debug-assertions = false rpath = false panic = "abort" overflow-checks = false incremental = false strip = "symbols" [profile.test] opt-level = 0 lto = false codegen-units = 256 debug = 2 debug-assertions = true rpath = false overflow-checks = true incremental = true strip = false [lib] name = "kyberlib" crate-type = [ "cdylib", "rlib", "staticlib", ] path = "src/lib.rs" [dependencies.aes] version = "0.8.4" optional = true [dependencies.ctr] version = "0.9.2" optional = true [dependencies.pqc_core] version = "0.3.0" features = ["zero"] [dependencies.rand] version = "0.8.5" features = ["getrandom"] default-features = false [dependencies.rand_core] version = "0.6.4" default-features = false [dependencies.rlg] version = "0.0.4" [dependencies.sha2] version = "0.10.8" optional = true [dependencies.tokio] version = "1.37.0" optional = true [dependencies.wasm-bindgen] version = "0.2.92" [dependencies.zeroize] version = "1.7.0" features = ["derive"] [dev-dependencies.criterion] version = "0.5.1" [dev-dependencies.wasm-bindgen-test] version = "0.3.42" [build-dependencies.cc] version = "1.0.97" optional = true [build-dependencies.nasm-rs] version = "0.3.0" optional = true [features] default = ["kyber768"] kyber768 = [] [lints.rust] bare_trait_objects = "allow" dead_code = "deny" deprecated_in_future = "deny" elided_lifetimes_in_paths = "allow" ellipsis_inclusive_range_patterns = "deny" explicit_outlives_requirements = "deny" keyword_idents = "deny" macro_use_extern_crate = "deny" meta_variable_misuse = "deny" missing_copy_implementations = "warn" missing_debug_implementations = "forbid" missing_docs = "warn" missing_fragment_specifier = "deny" non_ascii_idents = "forbid" non_camel_case_types = "allow" non_upper_case_globals = "allow" noop_method_call = "deny" pointer_structural_match = "deny" single_use_lifetimes = "deny" trivial_bounds = "allow" trivial_casts = "deny" trivial_numeric_casts = "deny" unreachable_pub = "forbid" unsafe_code = "allow" unstable_features = "warn" unused_features = "deny" unused_import_braces = "deny" unused_labels = "deny" unused_lifetimes = "deny" unused_macro_rules = "deny" unused_qualifications = "deny" unused_results = "warn" variant_size_differences = "deny" [lints.rust.future_incompatible] level = "deny" priority = -1 [lints.rust.rust_2018_idioms] level = "deny" priority = -1 [lints.rust.rust_2021_compatibility] level = "deny" priority = -1 [lints.rust.unused] level = "deny" priority = -1