| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2024" |
| 14 |
rust-version = "1.85" |
| 15 |
name = "keccak" |
| 16 |
version = "0.2.2" |
| 17 |
authors = ["RustCrypto Developers"] |
| 18 |
build = false |
| 19 |
autolib = false |
| 20 |
autobins = false |
| 21 |
autoexamples = false |
| 22 |
autotests = false |
| 23 |
autobenches = false |
| 24 |
description = "Pure Rust implementation of the Keccak sponge functions" |
| 25 |
documentation = "https://docs.rs/keccak" |
| 26 |
readme = "README.md" |
| 27 |
keywords = [ |
| 28 |
"crypto", |
| 29 |
"sponge", |
| 30 |
"keccak", |
| 31 |
"keccak-f", |
| 32 |
"keccak-p", |
| 33 |
] |
| 34 |
categories = [ |
| 35 |
"cryptography", |
| 36 |
"no-std", |
| 37 |
] |
| 38 |
license = "Apache-2.0 OR MIT" |
| 39 |
repository = "https://github.com/RustCrypto/sponges" |
| 40 |
|
| 41 |
[features] |
| 42 |
parallel = ["dep:hybrid-array"] |
| 43 |
|
| 44 |
[lib] |
| 45 |
name = "keccak" |
| 46 |
path = "src/lib.rs" |
| 47 |
|
| 48 |
[[test]] |
| 49 |
name = "parallel" |
| 50 |
path = "tests/parallel.rs" |
| 51 |
|
| 52 |
[[test]] |
| 53 |
name = "xkcp" |
| 54 |
path = "tests/xkcp.rs" |
| 55 |
|
| 56 |
[[bench]] |
| 57 |
name = "mod" |
| 58 |
path = "benches/mod.rs" |
| 59 |
|
| 60 |
[dependencies.cfg-if] |
| 61 |
version = "1" |
| 62 |
|
| 63 |
[dependencies.hybrid-array] |
| 64 |
version = "0.4" |
| 65 |
optional = true |
| 66 |
|
| 67 |
[target.'cfg(target_arch = "aarch64")'.dependencies.cpufeatures] |
| 68 |
version = "0.3" |
| 69 |
|
| 70 |
[lints.clippy] |
| 71 |
borrow_as_ptr = "warn" |
| 72 |
cast_lossless = "warn" |
| 73 |
cast_possible_truncation = "warn" |
| 74 |
cast_possible_wrap = "warn" |
| 75 |
cast_precision_loss = "warn" |
| 76 |
cast_sign_loss = "warn" |
| 77 |
checked_conversions = "warn" |
| 78 |
from_iter_instead_of_collect = "warn" |
| 79 |
implicit_saturating_sub = "warn" |
| 80 |
manual_assert = "warn" |
| 81 |
map_unwrap_or = "warn" |
| 82 |
missing_errors_doc = "warn" |
| 83 |
missing_panics_doc = "warn" |
| 84 |
mod_module_files = "warn" |
| 85 |
must_use_candidate = "warn" |
| 86 |
needless_range_loop = "allow" |
| 87 |
ptr_as_ptr = "warn" |
| 88 |
redundant_closure_for_method_calls = "warn" |
| 89 |
ref_as_ptr = "warn" |
| 90 |
return_self_not_must_use = "warn" |
| 91 |
semicolon_if_nothing_returned = "warn" |
| 92 |
std_instead_of_alloc = "warn" |
| 93 |
std_instead_of_core = "warn" |
| 94 |
trivially_copy_pass_by_ref = "warn" |
| 95 |
undocumented_unsafe_blocks = "warn" |
| 96 |
unnecessary_safety_comment = "warn" |
| 97 |
unwrap_in_result = "warn" |
| 98 |
unwrap_used = "warn" |
| 99 |
|
| 100 |
[lints.rust] |
| 101 |
missing_debug_implementations = "warn" |
| 102 |
missing_docs = "warn" |
| 103 |
trivial_casts = "warn" |
| 104 |
trivial_numeric_casts = "warn" |
| 105 |
unused_lifetimes = "warn" |
| 106 |
unused_qualifications = "warn" |
| 107 |
|
| 108 |
[lints.rust.unexpected_cfgs] |
| 109 |
level = "warn" |
| 110 |
priority = 0 |
| 111 |
check-cfg = ['cfg(keccak_backend, values("aarch64_sha3", "simd128", "simd256", "simd512", "soft"))'] |