-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
50 lines (41 loc) · 1.35 KB
/
Cargo.toml
File metadata and controls
50 lines (41 loc) · 1.35 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
[package]
name = "omnect-os-init"
version = "0.1.0"
edition = "2024"
authors = ["omnect team"]
description = "Rust-based init process for omnect-os initramfs"
license = "MIT OR Apache-2.0"
repository = "https://github.com/omnect/omnect-os-init"
[lib]
name = "omnect_os_init"
path = "src/lib.rs"
[[bin]]
name = "omnect-os-init"
path = "src/main.rs"
[dependencies]
# Error handling
thiserror = { version = "2.0", default-features = false }
# Serialization
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = { version = "1.0", default-features = false, features = ["std"] }
# Syscalls (symlink, mount, reboot, etc.)
nix = { version = "0.29", default-features = false, features = ["fs", "mount", "process", "reboot"] }
# Logging
log = { version = "0.4", default-features = false, features = ["std"] }
[features]
default = ["core"]
core = []
factory-reset = ["core"]
flash-mode-1 = ["factory-reset"]
flash-mode-2 = ["flash-mode-1"]
flash-mode-3 = ["flash-mode-1"]
persistent-var-log = ["core"]
resize-data = ["core"]
[profile.release]
opt-level = "z" # Optimize for size
lto = true # Link-time optimization
codegen-units = 1 # Better optimization
strip = true # Strip symbols
panic = "abort" # Smaller panic handling
[dev-dependencies]
tempfile = { version = "3.20", default-features = false }