Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ exclude = ["*.cpio.gz", "*.cpio", "vmlinux*", "test-*"]

[dependencies]
tokio = { version = "1", features = ["full"] }
clap = { version = "4", features = ["derive"] }
oci-distribution = "0.11"
tar = "0.4"
flate2 = "1.0"
Expand All @@ -25,21 +24,29 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
indicatif = "0.17"
glob = "0.3"
tempfile = "3"
futures = "0.3"
walkdir = "2"
ratatui = "0.30.0"
crossterm = "0.29.0"

# CLI dependencies
clap = { version = "4", features = ["derive"], optional = true }
ratatui = { version = "0.30.0", optional = true }
crossterm = { version = "0.29.0", optional = true }
indicatif = { version = "0.17", optional = true }

[dev-dependencies]
tokio-test = "0.4"

[[bin]]
name = "initramfs-builder"
path = "src/main.rs"
required-features = ["cli"]

[lib]
name = "initramfs_builder"
path = "src/lib.rs"

[features]
default = []
cli = ["clap", "ratatui", "crossterm", "indicatif"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ A Rusty CLI tool to convert Docker/OCI images into bootable initramfs for microV
</div>
</div>

## Installation
## CLI Installation

```bash
cargo install initramfs-builder
cargo install initramfs-builder --bin initramfs-builder -F cli
```

## Quick Start
Expand Down
Loading