-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
121 lines (110 loc) · 2.72 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[package]
name = "su-exec-rs"
version = "0.1.0"
description = """
su-exec-rs is used in a container to switch the user and group id and then exec.
"""
documentation = "https://github.com/thimslugga/su-exec-rs"
authors = ["Adam Kaminski <[email protected]>"]
homepage = "https://github.com/thimslugga/su-exec-rs"
repository = "https://github.com/thimslugga/su-exec-rs"
readme = "README.md"
keywords = ["linux", "docker", "kubernetes", "containers", "security"]
categories = ["tools", "security", "system", "linux", "containers"]
license = "MIT"
exclude = ["/.github/", "/ci/", "/scripts/"]
#build = "build.rs"
autotests = false
publish = false
edition = "2021"
rust-version = "1.80"
[[bin]]
name = "su-exec-rs"
path = "src/main.rs"
bench = false
test = false
doc = false
#[[test]]
#name = "integration"
#path = "tests/tests.rs"
#[features]
#default = ["idiomatic"]
#idiomatic = []
#low_overhead = []
[dependencies]
libc = "0.2"
users = "0.11.0"
[target.'cfg(target_os = "linux")'.dependencies]
libc = "0.2"
users = "0.11"
[profile.dev]
# Turn on a small amount of optimisation in Development mode.
opt-level = 1
debug = true
strip = "none"
debug-assertions = true
overflow-checks = true
lto = false
panic = 'unwind'
incremental = true
codegen-units = 256
rpath = false
[profile.dev.package."*"]
# Set the default for dependencies in Development mode.
opt-level = 3
[profile.release]
opt-level = 3
strip = "symbols"
lto = "thin"
codegen-units = 1
[profile.deb]
inherits = "release"
debug = false
[package.metadata.deb]
section = "utils"
assets = [
[
"target/release/su-exec-rs",
"usr/bin/",
"755",
],
[
"COPYING",
"usr/share/doc/su-exec-rs/COPYING",
"644",
],
[
"LICENSE",
"usr/share/doc/su-exec-rs/LICENSE",
"644",
],
[
"CHANGELOG.md",
"usr/share/doc/su-exec-rs/CHANGELOG",
"644",
],
[
"README.md",
"usr/share/doc/su-exec-rs/README",
"644",
],
[
"FAQ.md",
"usr/share/doc/su-exec-rs/FAQ",
"644",
],
# The man page is automatically generated by ripgrep's build process, so
# this file isn't actually committed. Instead, to create a dpkg, either
# create a deployment/deb directory and copy the man page to it, or use the
# 'ci/build-deb' script.
#["deployment/deb/gather.1", "usr/share/man/man1/gather.1", "644"],
# Similarly for shell completions.
#["deployment/deb/gather.bash", "usr/share/bash-completion/completions/gather", "644"],
#["deployment/deb/gather.fish", "usr/share/fish/vendor_completions.d/gather.fish", "644"],
#["deployment/deb/_gather", "usr/share/zsh/vendor-completions/", "644"],
]
extended-description = """\
gather is a command-line tool that gathers files, directories and command output.
"""
[lints.clippy]
enum_glob_use = "warn"