mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-27 01:13:09 +00:00
Add bundle <dir> [--out <dir>] and unbundle <archive> [--out <dir>] subcommands to weft-pack. bundle: validates the package, reads app_id from wapp.toml, writes <app_id>.app.tar.zst to the output directory (default: current dir). Archive root is <app_id>/ so extraction reproduces the package directory. Fails if the archive already exists. unbundle: decompresses and extracts a .app.tar.zst into the output directory (default: current dir). Compression level 0 (zstd default). No symlinks followed. Dependencies added: tar 0.4, zstd 0.13. Test: bundle_and_unbundle_roundtrip.
20 lines
376 B
TOML
20 lines
376 B
TOML
[package]
|
|
name = "weft-pack"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[[bin]]
|
|
name = "weft-pack"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
serde = { version = "1", features = ["derive"] }
|
|
toml = "0.8"
|
|
ed25519-dalek = { version = "2", features = ["rand_core"] }
|
|
sha2 = "0.10"
|
|
rand = "0.8"
|
|
hex = "0.4"
|
|
tar = "0.4"
|
|
zstd = "0.13"
|