-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
79 lines (64 loc) · 1.63 KB
/
Cargo.toml
File metadata and controls
79 lines (64 loc) · 1.63 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[package]
name = "restrict"
version = "0.2.1"
edition = "2024"
description = "A crate to allow, deny, or trace Linux syscalls with an ergonomic, auto-generated enum customized for your system architecture."
license = "MIT"
repository = "https://github.com/x0rw/restrict"
homepage = "https://github.com/x0rw/restrict"
documentation = "https://docs.rs/restrict/latest"
readme = "README.md"
keywords = [
"linux", "seccomp", "ptrace", "policy", "container"
]
categories = [
"api-bindings",
"os::linux-apis",
"security",
"development-tools::debugging"
]
authors = ["x0rw <[email protected]>"]
build = 'build.rs'
[dev-dependencies]
metrics-exporter-prometheus = "0.8"
tracing-subscriber = "0.3.19"
[dependencies]
libc = "0.2.172"
libseccomp-sys = "0.3.0"
thiserror = "1"
tokio = { version = "1.45.1", features= ["full"]}
# Optional deps
tracing = { version = "0.1", optional = true }
tracing-subscriber= { version = "0.3.19", optional = true }
metrics = { version = "0.18", optional = true }
assert_cmd = "2.0.17"
[features]
default = []
logging = [
"tracing",
"tracing-subscriber",
]
metrics = [
"dep:metrics",
]
[lib]
name = "restrict"
[build-dependencies]
regex = "1.11.1"
[package.metadata.docs.rs]
documentation = true
[[bin]]
name = "fake_getpid"
path = "tests/test_bins/fake_getpid.rs"
[[bin]]
name = "fake_getuid"
path = "tests/test_bins/fake_getuid.rs"
[[bin]]
name = "fake_time"
path = "tests/test_bins/fake_time.rs"
[[bin]]
name = "blocked_ptrace"
path = "tests/test_bins/blocked_ptrace_test.rs"
[[bin]]
name = "count_trace"
path = "tests/test_bins/count_trace.rs"