+8
-8
@@ -1,15 +1,15 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "slim"
|
name = "slim"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1"
|
anyhow = "1.0.104"
|
||||||
clap = { version = "4", features = ["derive"] }
|
clap = { version = "4.6.6", features = ["derive"] }
|
||||||
flate2 = "1"
|
flate2 = "1.1.9"
|
||||||
walkdir = "2"
|
walkdir = "2.5.0"
|
||||||
cpio = "0.2"
|
cpio = "0.4.1"
|
||||||
xdg = "2"
|
xdg = "3.0.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tempfile = "3"
|
tempfile = "3.27.0"
|
||||||
|
|||||||
+3
-3
@@ -43,9 +43,9 @@ fn main() -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn registry_dir(image: &str) -> PathBuf {
|
fn registry_dir(image: &str) -> PathBuf {
|
||||||
let base = xdg::BaseDirectories::with_prefix("slim-rs").unwrap();
|
let base = xdg::BaseDirectories::with_prefix("slim-rs");
|
||||||
base.place_data_file(format!("registry/{}/vmlinuz", image)).unwrap();
|
let initrd_path = base.place_data_file(format!("registry/{}/initrd", image));
|
||||||
base.place_data_file(format!("registry/{}/initrd", image)).unwrap().parent().unwrap().to_path_buf()
|
initrd_path.unwrap().parent().unwrap().to_path_buf()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn build(image: &str) -> Result<()> {
|
fn build(image: &str) -> Result<()> {
|
||||||
|
|||||||
Reference in New Issue
Block a user