-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCargo.toml
38 lines (33 loc) · 964 Bytes
/
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
[package]
name = "rsinit"
version = "0.1.0"
edition = "2021"
license = "GPL-2.0-only"
description = "minimalistic single binary initramfs init for embedded systems"
homepage = "https://github.com/michaelolbrich/rsinit"
repository = "https://github.com/michaelolbrich/rsinit"
keywords = ["initramfs", "init", "rdinit"]
categories = ["embedded"]
readme = "README.md"
[[bin]]
name = "init"
path = "src/main.rs"
[dependencies]
nix = { version = "0.29", features = ["fs", "mount", "process", "term"], default-features = false }
getrandom = { version = "0.2.15" }
log = { version = "0.4.21", features = ["std"], default-features = false}
[features]
default = ["systemd", "dmverity", "usb9pfs", "reboot-on-failure"]
systemd = ["nix/reboot"]
dmverity = ["nix/ioctl"]
usb9pfs = []
reboot-on-failure = ["nix/reboot"]
[profile.release]
opt-level = 'z'
strip = true
lto = "fat"
incremental = false
codegen-units = 1
[profile.minimal]
inherits = "release"
panic = "abort"