-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
51 lines (42 loc) · 1.85 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
[package]
name = "secmem-proc"
version = "0.3.7"
authors = ["niluxv <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
description = "Process hardening through system APIs"
readme = "README.md"
categories = ["no-std", "cryptography", "os"]
keywords = ["secure", "memory", "process", "hardening"]
repository = "https://github.com/niluxv/secmem-proc"
include = ["src/**/*", "COPYING", "LICENSE.*", "README.md"]
# 1.81 when the (default) `std` feature is disabled; dependencies might have higher MSRV
rust-version = "1.65"
[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"]
# enable functionality requiring std; note that on Windows we always depend on std transitively via the windows crate
std = ["anyhow/std", "rustix/std", "dep:rustix-linux-procfs", "thiserror/std"]
# enable anti-tracing techniques using unstable/undocumented APIs/OS implementation details
unstable = ["windows/Wdk_System_Threading"]
# required features to run tests; additional features enable more tests
dev = []
[dependencies]
anyhow = { version = "1.0", default-features = false }
cfg-if = "1.0"
thiserror = { version = "2.0", default-features = false }
[target.'cfg(unix)'.dependencies]
rustix = { version = "1.0", default-features = false, features = ["process"] }
[target.'cfg(target_os = "linux")'.dependencies]
rustix-linux-procfs = { version = "0.1.0", optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
libc = "0.2.107"
[target.'cfg(windows)'.dependencies]
windows = { version = "0.61.1", features = ["Win32_Foundation", "Win32_Security", "Win32_System_Threading", "Win32_Security_Authorization", "Win32_System_Diagnostics_Debug"] }
[dev-dependencies]
assert_cmd = "2.0"
escargot = "0.5"
predicates = "3.0"
once_cell = "1.16"