-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
49 lines (42 loc) · 1.56 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
[package]
name = "secmem-alloc"
version = "0.3.0"
authors = ["niluxv <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
description = "Custom allocators for secret memory"
readme = "README.md"
categories = ["no-std", "memory-management", "cryptography"]
keywords = ["allocator", "secure", "memory"]
repository = "https://github.com/niluxv/secmem-alloc"
include = ["src/**/*", "tests", "benches", "COPYING", "LICENSE.*", "README.md", "build.rs"]
[package.metadata.docs.rs]
all-features = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["std"]
std = ["dep:thiserror", "allocator-api2/std"]
nightly_allocator_api = ["allocator-api2/nightly"]
nightly_core_intrinsics = []
# enables strict provenance lints and uses strict provenance methods from std
# instead of those from `sptr` (for inherent methods only)
nightly_strict_provenance = []
nightly = [
"nightly_allocator_api",
"nightly_core_intrinsics",
"nightly_strict_provenance",
]
# required features to run tests; additional features enable more tests
dev = ["std"]
[dependencies]
allocator-api2 = { version = "0.2", default-features = false }
cfg-if = "1.0"
mirai-annotations = "1.12"
sptr = "0.3"
thiserror = { version = "1.0", optional = true }
[target.'cfg(unix)'.dependencies]
rustix = { version = "0.38", features = ["mm", "param"] }
[target.'cfg(windows)'.dependencies]
windows = { version = "0.58", features = ["Win32_System_SystemInformation", "Win32_System_Memory"] }
[profile.release]
codegen-units = 1