-
Notifications
You must be signed in to change notification settings - Fork 39
/
Cargo.toml
56 lines (49 loc) · 1.23 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[package]
name = "crypto2"
version = "0.2.0"
authors = ["luozijun <luozijun.assistant@gmail.com>"]
edition = "2021"
license = "MIT"
keywords = ["crypto", "encryption", "hash", "mac", "aead"]
categories = ["cryptography"]
description = "cryptographic algorithms"
repository = "https://github.com/shadowsocks/crypto2"
documentation = "https://docs.rs/crypto2"
rust-version = "1.64"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
cfg-if = "1"
[dev-dependencies]
hex = "0.4"
[features]
default = [
"std",
"openssh",
]
std = []
openssh = []
# Disable hardware acceleration.
# NOTE: aarch64 hardware acceleration requires core::arch to stablize intrinsics functions
force-soft = []
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
# https://doc.rust-lang.org/cargo/reference/profiles.html#release
[profile.release]
opt-level = 3 # Use slightly better optimizations.
debug = false
debug-assertions = false
overflow-checks = false
lto = "fat"
panic = 'unwind'
incremental = false
codegen-units = 1
[profile.bench]
opt-level = 3
debug = false
debug-assertions = false
overflow-checks = false
lto = "fat"
incremental = false
codegen-units = 1
rpath = false