forked from coreos/coreos-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
90 lines (79 loc) · 2.37 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
[package]
name = "coreos-installer"
repository = "https://github.com/coreos/coreos-installer"
license = "Apache-2.0"
edition = "2018"
exclude = ["/.cci.jenkinsfile", "/.github", "/.gitignore", "/Dockerfile"]
authors = [ "Benjamin Gilbert <[email protected]>" ]
description = "Installer for Fedora CoreOS and RHEL CoreOS"
version = "0.10.1-alpha.0"
[package.metadata.release]
sign-commit = true
disable-push = true
disable-publish = true
pre-release-commit-message = "cargo: coreos-installer release {{version}}"
post-release-commit-message = "cargo: development version bump"
tag-message = "coreos-installer v{{version}}"
[features]
# rdcore is only useful inside the initrd of a CoreOS system
rdcore = []
[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]
lto = true
# We assume we're being delivered via e.g. RPM which supports split debuginfo
debug = true
[dependencies]
anyhow = ">= 1.0.38, < 2"
bincode = "^1.3"
bytes = ">= 1.0.1, < 1.2.0"
byte-unit = ">= 3.1.0, < 5.0.0"
cpio = "^0.2"
flate2 = "^1.0"
glob = "^0.3"
gptman = { version = ">= 0.7, < 0.9", default-features = false }
hex = "^0.4"
lazy_static = "^1.4"
libc = "^0.2"
nix = ">= 0.22, < 0.24"
openat-ext = ">= 0.1.4, < 0.3"
openssl = "^0.10"
pipe = ">= 0.3, < 0.5"
regex = ">= 1.4, < 1.6"
reqwest = { version = ">= 0.10, < 0.12", features = ["blocking"] }
serde = { version = "^1.0", features = ["derive"] }
serde_json = "^1.0"
structopt = "0.3"
tempfile = ">= 3.1, < 4"
thiserror = "1.0"
url = ">= 2.1, < 3.0"
uuid = { version = "^0.8", features = ["v4"] }
walkdir = "^2.3"
xz2 = "^0.1"
[dev-dependencies]
maplit = "^1.0"
[target.'cfg(target_arch = "s390x")'.dependencies]
mbrman = { version = ">= 0.3, < 0.5", default-features = false }
rand = ">= 0.7, < 0.9"
# 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