xref: /aosp_15_r20/external/open-dice/dpe-rs/Cargo.toml (revision 60b67249c2e226f42f35cc6cfe66c6048e0bae6b)
1# Copyright 2024 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7#     https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14
15[package]
16name = "dpe-rs"
17version = "0.1.0"
18edition = "2021"
19
20# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
21
22[dependencies]
23aes-gcm = { version = "0.10.3", default-features = false, features = ["aes", "heapless", "zeroize"] }
24env_logger = "0.10.0"
25hash32 = "0.3.1"
26heapless = { version = "0.7.16", default-features = false }
27libc-print = "0.1.22"
28log = "0.4.20"
29minicbor = "0.19.1"
30noise-protocol = "0.2.0"
31rand_core = "0.6.4"
32zeroize = { version = "1.7.0", features = ["zeroize_derive"], default-features = false }
33
34[dev-dependencies]
35aes-gcm-siv = "0.11.1"
36ed25519-dalek = { version = "2.1.0", default-features = false, features = ["zeroize"] }
37hkdf = "0.12.3"
38hmac = "0.12.1"
39hpke = { version = "0.11.0", default-features = false, features = ["x25519"] }
40noise-rust-crypto = "0.6.2"
41sha2 = { version = "0.10.8", default-features = false }
42x25519-dalek = { version = "2.0.0", default-features = false, features = ["zeroize"] }
43rand_chacha = { version = "0.3.1", default-features = false }
44
45[workspace.lints.rust]
46unsafe_code = "deny"
47missing_docs = "deny"
48trivial_casts = "deny"
49trivial_numeric_casts = "deny"
50unused_extern_crates = "deny"
51unused_import_braces = "deny"
52unused_results = "deny"
53
54[workspace.lints.clippy]
55indexing_slicing = "deny"
56unwrap_used = "deny"
57panic = "deny"
58expect_used = "deny"
59