Files
aya-mirror/test-distro/Cargo.toml
Tamir Duberstein 5732b2c203 test-distro: build without cross toolchain
Make the xz2 dependency optional to allow building without a C cross
compiler. This allows clippy.sh to be used on e.g. macOS more easily:

```
./clippy.sh --target x86_64-unknown-linux-gnu --exclude-features xz2
```
2025-04-08 07:59:35 -04:00

39 lines
829 B
TOML

[package]
name = "test-distro"
publish = false
version = "0.1.0"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
[[bin]]
name = "init"
path = "src/init.rs"
[[bin]]
name = "modprobe"
path = "src/modprobe.rs"
[[bin]]
name = "depmod"
path = "src/depmod.rs"
[dependencies]
anyhow = { workspace = true, features = ["std"] }
clap = { workspace = true, default-features = true, features = ["derive"] }
glob = { workspace = true }
nix = { workspace = true, features = [
"user",
"fs",
"mount",
"reboot",
"kmod",
"feature",
] }
object = { workspace = true, features = ["elf", "read_core", "std"] }
walkdir = { workspace = true }
xz2 = { workspace = true, optional = true } # Optional to allow building without a cross toolchain.