diff --git a/Cargo.lock b/Cargo.lock index 1b603bc..d48cc69 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1767,14 +1767,6 @@ dependencies = [ "syn 2.0.117", ] -[[package]] -name = "iota" -version = "0.1.0" -dependencies = [ - "ttp-core", - "ttp-native", -] - [[package]] name = "iota-cli" version = "0.1.0" @@ -1793,10 +1785,14 @@ dependencies = [ "hkdf", "hyper", "hyper-util", - "iota-core", + "iota-logger", "iota-state", + "iota-storage", + "iota-terms", + "iota-util", "json", "lazy_static", + "omikron-connector", "once_cell", "open", "pnet", @@ -1829,8 +1825,14 @@ name = "iota-core" version = "0.1.0" dependencies = [ "dashmap", + "iota-cli", + "iota-logger", "iota-state", + "iota-storage", + "iota-terms", + "iota-util", "json", + "omikron-connector", "once_cell", "pnet", "ratatui", @@ -1838,6 +1840,8 @@ dependencies = [ "tokio", "ttp-core", "ttp-native", + "web-server", + "web-ui", ] [[package]] @@ -1882,6 +1886,28 @@ dependencies = [ "zip", ] +[[package]] +name = "iota-terms" +version = "0.1.0" +dependencies = [ + "iota-state", + "json", + "reqwest", +] + +[[package]] +name = "iota-util" +version = "0.1.0" +dependencies = [ + "json", + "pnet", + "ratatui", + "reqwest", + "tokio", + "ttp-core", + "ttp-native", +] + [[package]] name = "ipnet" version = "2.12.0" @@ -4331,6 +4357,14 @@ dependencies = [ "semver", ] +[[package]] +name = "web-server" +version = "0.1.0" +dependencies = [ + "ttp-core", + "ttp-native", +] + [[package]] name = "web-sys" version = "0.3.94" diff --git a/iota-cli/Cargo.toml b/iota-cli/Cargo.toml index a963a07..99e2051 100644 --- a/iota-cli/Cargo.toml +++ b/iota-cli/Cargo.toml @@ -4,8 +4,12 @@ version = "0.1.0" edition = "2024" [dependencies] +iota-logger = { path = "../iota-logger" } iota-state = { path = "../iota-state" } -iota-core = { path = "../iota-terms" } +iota-storage = { path = "../iota-storage" } +iota-terms = { path = "../iota-terms" } +iota-util = { path = "../iota-util" } +omikron-connector = { path = "../omikron-connector" } ttp-core = { git = "https://github.com/Tensamin/TTP.git", package = "ttp-core" } diff --git a/iota-core/Cargo.toml b/iota-core/Cargo.toml index 7db34a2..5ecc90a 100644 --- a/iota-core/Cargo.toml +++ b/iota-core/Cargo.toml @@ -4,7 +4,16 @@ version = "0.1.0" edition = "2024" [dependencies] +iota-cli = { path = "../iota-cli" } +iota-logger = { path = "../iota-logger" } iota-state = { path = "../iota-state" } +iota-storage = { path = "../iota-storage" } +iota-terms = { path = "../iota-terms" } +iota-util = { path = "../iota-util" } +omikron-connector = { path = "../omikron-connector" } +web-server = { path = "../web-server" } +web-ui = { path = "../web-ui" } + ttp-core = { git = "https://github.com/Tensamin/TTP.git", package = "ttp-core" } ttp-native = { git = "https://github.com/Tensamin/TTP.git", package = "ttp-native" } diff --git a/iota-util/Cargo.toml b/iota-util/Cargo.toml new file mode 100644 index 0000000..369ad84 --- /dev/null +++ b/iota-util/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "iota-util" +version = "0.1.0" +edition = "2024" + +[dependencies] + +ttp-core = { git = "https://github.com/Tensamin/TTP.git", package = "ttp-core" } +ttp-native = { git = "https://github.com/Tensamin/TTP.git", package = "ttp-native" } + +json = "*" +pnet = "0.35.0" +ratatui = "0.30.0" +reqwest = "0.13.2" +tokio = { version = "1.50.0", features = ["full"] } diff --git a/iota-storage/src/util/crypto_helper.rs b/iota-util/src/crypto_helper.rs similarity index 100% rename from iota-storage/src/util/crypto_helper.rs rename to iota-util/src/crypto_helper.rs diff --git a/iota-storage/src/util/crypto_util.rs b/iota-util/src/crypto_util.rs similarity index 100% rename from iota-storage/src/util/crypto_util.rs rename to iota-util/src/crypto_util.rs diff --git a/iota-storage/src/util/file_util.rs b/iota-util/src/file_util.rs similarity index 100% rename from iota-storage/src/util/file_util.rs rename to iota-util/src/file_util.rs diff --git a/iota-util/src/lib.rs b/iota-util/src/lib.rs new file mode 100644 index 0000000..e69de29 diff --git a/web-server/Cargo.toml b/web-server/Cargo.toml index fdeeb44..0e99c39 100644 --- a/web-server/Cargo.toml +++ b/web-server/Cargo.toml @@ -1,6 +1,6 @@ [package] -name = "iota" +name = "web-server" version = "0.1.0" edition = "2024"