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