diff --git a/Cargo.toml b/Cargo.toml index 8741a1e..e612500 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [workspace] resolver = "2" members = [ - ".", + "ciel/", "cli/", ] @@ -13,44 +13,6 @@ authors = ["liushuyu ", "xtex "] repository = "https://github.com/AOSC-Dev/ciel-rs" edition = "2021" -[package] -name = "ciel" -version.workspace = true -description.workspace = true -license.workspace = true -authors.workspace = true -repository.workspace = true -edition.workspace = true - -[dependencies] -zbus = { version = "^5", features = ["blocking"] } -nix = { version = "0.29", features = ["fs", "hostname", "mount", "signal", "user"] } -toml = "0.8" -bincode = "1.3" -serde = { version = "1.0", features = ["derive"] } -git2 = "0.19" -libmount = { git = "https://github.com/liushuyu/libmount", rev = "6fe8dba03a6404dfe1013995dd17af1c4e21c97b" } -adler32 = "1.2" -rayon = "1.10" -tempfile = "3.14" -libsystemd-sys = "0.9" -walkdir = "2" -xattr = "^1" -rand = { version = "0.8", default-features = false, features = ["std", "std_rng"] } -time = { version = "0.3", default-features = false, features = ["serde-human-readable", "macros"] } -fs3 = "0.5" -ar = "0.9" -faster-hex = "0.10" -flate2 = "1.0" -inotify = "0.11" -zstd = "0.13.2" -thiserror = "2.0.8" -log = "0.4.22" -test-log = { version = "0.2.16", features = ["log"] } -sha2 = "0.10.8" -tar = "0.4.43" -xz2 = "0.1.7" - [profile.release] lto = true diff --git a/ciel/Cargo.toml b/ciel/Cargo.toml new file mode 100644 index 0000000..07236b6 --- /dev/null +++ b/ciel/Cargo.toml @@ -0,0 +1,37 @@ +[package] +name = "ciel" +version.workspace = true +description.workspace = true +license.workspace = true +authors.workspace = true +repository.workspace = true +edition.workspace = true + +[dependencies] +zbus = { version = "^5", features = ["blocking"] } +nix = { version = "0.29", features = ["fs", "hostname", "mount", "signal", "user"] } +toml = "0.8" +bincode = "1.3" +serde = { version = "1.0", features = ["derive"] } +git2 = "0.19" +libmount = { git = "https://github.com/liushuyu/libmount", rev = "6fe8dba03a6404dfe1013995dd17af1c4e21c97b" } +adler32 = "1.2" +rayon = "1.10" +tempfile = "3.14" +libsystemd-sys = "0.9" +walkdir = "2" +xattr = "^1" +rand = { version = "0.8", default-features = false, features = ["std", "std_rng"] } +time = { version = "0.3", default-features = false, features = ["serde-human-readable", "macros"] } +fs3 = "0.5" +ar = "0.9" +faster-hex = "0.10" +flate2 = "1.0" +inotify = "0.11" +zstd = "0.13.2" +thiserror = "2.0.8" +log = "0.4.22" +test-log = { version = "0.2.16", features = ["log"] } +sha2 = "0.10.8" +tar = "0.4.43" +xz2 = "0.1.7" diff --git a/src/build.rs b/ciel/src/build.rs similarity index 100% rename from src/build.rs rename to ciel/src/build.rs diff --git a/src/container.rs b/ciel/src/container.rs similarity index 100% rename from src/container.rs rename to ciel/src/container.rs diff --git a/src/dbus_machine1_machine.rs b/ciel/src/dbus_machine1_machine.rs similarity index 100% rename from src/dbus_machine1_machine.rs rename to ciel/src/dbus_machine1_machine.rs diff --git a/src/dbus_machine1_manager.rs b/ciel/src/dbus_machine1_manager.rs similarity index 100% rename from src/dbus_machine1_manager.rs rename to ciel/src/dbus_machine1_manager.rs diff --git a/src/fs/mod.rs b/ciel/src/fs/mod.rs similarity index 100% rename from src/fs/mod.rs rename to ciel/src/fs/mod.rs diff --git a/src/fs/overlayfs.rs b/ciel/src/fs/overlayfs.rs similarity index 100% rename from src/fs/overlayfs.rs rename to ciel/src/fs/overlayfs.rs diff --git a/src/fs/tmpfs.rs b/ciel/src/fs/tmpfs.rs similarity index 100% rename from src/fs/tmpfs.rs rename to ciel/src/fs/tmpfs.rs diff --git a/src/instance.rs b/ciel/src/instance.rs similarity index 100% rename from src/instance.rs rename to ciel/src/instance.rs diff --git a/src/lib.rs b/ciel/src/lib.rs similarity index 100% rename from src/lib.rs rename to ciel/src/lib.rs diff --git a/src/machine.rs b/ciel/src/machine.rs similarity index 100% rename from src/machine.rs rename to ciel/src/machine.rs diff --git a/src/repo/mod.rs b/ciel/src/repo/mod.rs similarity index 100% rename from src/repo/mod.rs rename to ciel/src/repo/mod.rs diff --git a/src/repo/monitor.rs b/ciel/src/repo/monitor.rs similarity index 100% rename from src/repo/monitor.rs rename to ciel/src/repo/monitor.rs diff --git a/src/repo/scan.rs b/ciel/src/repo/scan.rs similarity index 100% rename from src/repo/scan.rs rename to ciel/src/repo/scan.rs diff --git a/src/workspace.rs b/ciel/src/workspace.rs similarity index 100% rename from src/workspace.rs rename to ciel/src/workspace.rs diff --git a/cli/Cargo.toml b/cli/Cargo.toml index ce0ce24..c3fe43d 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -9,7 +9,7 @@ edition.workspace = true [dependencies] anyhow = "1.0.94" -ciel = { version = "4.0.0", path = ".." } +ciel = { version = "4.0.0", path = "../ciel" } clap = { version = "^4", features = ["string", "env"] } console = "0.15.10" dialoguer = { version = "0.11.0", features = ["fuzzy-select"] }