-
Notifications
You must be signed in to change notification settings - Fork 93
/
Cargo.toml
106 lines (94 loc) · 3.2 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
[package]
name = "coreos-installer"
repository = "https://github.com/coreos/coreos-installer"
license = "Apache-2.0"
edition = "2021"
rust-version = "1.75.0"
exclude = ["/.cci.jenkinsfile", "/.github", "/.gitignore", "/Dockerfile"]
authors = [ "Benjamin Gilbert <[email protected]>" ]
description = "Installer for Fedora CoreOS and RHEL CoreOS"
version = "0.23.0"
[package.metadata.release]
sign-commit = true
sign-tag = true
push = false
publish = false
pre-release-commit-message = "cargo: coreos-installer release {{version}}"
pre-release-hook = ["make", "docs", "clean"]
tag-message = "coreos-installer v{{version}}"
# See https://github.com/coreos/cargo-vendor-filterer
[package.metadata.vendor-filter]
platforms = ["*-unknown-linux-gnu"]
tier = "2"
all-features = true
[features]
# rdcore is only useful inside the initrd of a CoreOS system
rdcore = []
docgen = ["clap/string", "dep:clap_mangen"]
[lib]
name = "libcoreinst"
path = "src/lib.rs"
[[bin]]
name = "coreos-installer"
path = "src/main.rs"
[[bin]]
name = "rdcore"
path = "src/bin/rdcore/main.rs"
required-features = ["rdcore"]
[profile.release]
# We assume we're being delivered via e.g. RPM which supports split debuginfo
debug = true
[dependencies]
anyhow = ">= 1.0.38, < 2"
base64 = ">= 0.21, < 0.23"
bincode = "^1.3"
bytes = ">= 1.0.1, < 2"
byte-unit = ">= 3.1.0, < 5.0.0"
clap = { version = ">= 4.1, < 5", default-features = false, features = ["std", "cargo", "derive", "error-context", "help", "suggestions", "usage", "wrap_help"] }
clap_mangen = { version = "0.2", optional = true }
cpio = ">= 0.2.1, < 0.5"
flate2 = "^1.0"
glob = "^0.3"
# disable default-enabled cli in gptman 0.x
gptman = { version = ">= 0.7, < 2", default-features = false }
hex = "^0.4"
ignition-config = ">= 0.3, < 0.6"
lazy_static = "^1.4"
libc = "^0.2"
nix = { version = ">= 0.24, < 0.28", "default_features" = false, "features" = [ "dir", "ioctl", "mount", "process", "sched", "signal", "user"] }
nmstate = { version = ">= 2.2.3, < 3", default-features = false, features = ["gen_conf"] }
openssl = "^0.10"
pipe = ">= 0.3, < 0.5"
regex = ">= 1.4, < 2"
reqwest = { version = ">= 0.10, < 0.13", features = ["blocking"] }
serde = { version = "^1.0", features = ["derive"] }
serde_json = "^1.0"
serde_with = ">= 1.9.4, < 4"
serde_yaml = ">= 0.8, < 0.10"
tempfile = ">= 3.1, < 4"
textwrap = { version = ">= 0.15.0, < 0.17.0", default-features = false }
thiserror = "2.0"
url = ">= 2.1, < 3.0"
uuid = { version = ">= 0.8, < 2.0", features = ["v4"] }
walkdir = "^2.4"
xz2 = "^0.1"
zstd = { version = ">= 0.10.0, < 0.14.0", features = ["pkg-config"] }
[target.'cfg(target_arch = "s390x")'.dependencies]
mbrman = ">= 0.5, < 0.6"
rand = ">= 0.7, < 0.9"
[dev-dependencies]
maplit = "^1.0"
# In CoreOS CI we test installation from a compressed image created with
# `cosa compress --fast`. This is unacceptably slow if the gunzip inner
# loops are compiled unoptimized.
[profile.dev.package.adler]
opt-level = 3
[profile.dev.package.crc32fast]
opt-level = 3
[profile.dev.package.miniz_oxide]
opt-level = 3
# If liblzma development headers aren't installed, lzma-sys builds its own
# copy of liblzma. The unoptimized performance is okay but optimizing gives
# a ~2x improvement.
[profile.dev.package.lzma-sys]
opt-level = 3