mirror of
https://github.com/aya-rs/aya.git
synced 2026-03-03 18:23:55 +01:00
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 ```
39 lines
829 B
TOML
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.
|