diff --git a/decentralized/unused-Cargo.toml b/client/Cargo.toml similarity index 96% rename from decentralized/unused-Cargo.toml rename to client/Cargo.toml index 8af10a1..b930ed5 100644 --- a/decentralized/unused-Cargo.toml +++ b/client/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "decentralized" +name = "communities" version = "0.1.0" edition = "2024" @@ -10,6 +10,7 @@ iota-logger = { path = "../iota-logger" } iota-util = { path = "../iota-util" } iota-storage = { path = "../iota-storage" } iota-state = { path = "../iota-state" } +iota-auth = { path = "../iota-auth" } actix-web = { version = "4", features = ["rustls-0_23"] } actix-web-actors = "4" diff --git a/client/src/lib.rs b/client/src/lib.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/client/src/lib.rs @@ -0,0 +1 @@ + diff --git a/communities/Cargo.toml b/communities/Cargo.toml new file mode 100644 index 0000000..b930ed5 --- /dev/null +++ b/communities/Cargo.toml @@ -0,0 +1,61 @@ +[package] +name = "communities" +version = "0.1.0" +edition = "2024" + +[dependencies] +ttp-core = { git = "https://git.methanium.net/Tensamin/TTP.git", package = "ttp-core" } +ttp-native = { git = "https://git.methanium.net/Tensamin/TTP.git", package = "ttp-native" } +iota-logger = { path = "../iota-logger" } +iota-util = { path = "../iota-util" } +iota-storage = { path = "../iota-storage" } +iota-state = { path = "../iota-state" } +iota-auth = { path = "../iota-auth" } + +actix-web = { version = "4", features = ["rustls-0_23"] } +actix-web-actors = "4" +aes-gcm = "0.10.3" +async-trait = "0.1.89" +base64 = "0.22.1" +chrono = "0.4.43" +crossterm = "*" +dashmap = "6.1.0" +futures = "*" +futures-util = "*" +hex = "*" +hkdf = "0.12.4" +hyper = { version = "1.8.1", features = [ + "capi", + "client", + "full", + "http1", + "http2", + "nightly", + "server", +] } +hyper-util = { version = "*" } +json = "*" +lazy_static = "1.5.0" +once_cell = "1.21.3" +open = "5.3.3" +pnet = "0.35.0" +rand = "0.8" +rand_core = { version = "0.6", features = ["getrandom", "std"] } +ratatui = "0.30.0" +reqwest = "0.13.2" +rusqlite = "0.39.0" +rustls = { version = "0.23.37", features = ["aws-lc-rs"] } +rustls-pemfile = "2.2.0" +serde_json = "1.0.149" +sha2 = "0.10.9" +strum = "0.27.2" +strum_macros = "0.27.2" +sysinfo = "0.38.3" +tokio = { version = "1.50.0", features = ["full"] } +tokio-tungstenite = { version = "*", features = ["native-tls"] } +tungstenite = "*" +uuid = { version = "*", features = ["v4"] } +walkdir = "2.5.0" +warp = "*" +x448 = { version = "*" } +zip = "6.0.0" diff --git a/decentralized/src/communities/community.rs b/communities/src/community.rs similarity index 100% rename from decentralized/src/communities/community.rs rename to communities/src/community.rs diff --git a/decentralized/src/communities/community_connection.rs b/communities/src/community_connection.rs similarity index 100% rename from decentralized/src/communities/community_connection.rs rename to communities/src/community_connection.rs diff --git a/decentralized/src/communities/community_manager.rs b/communities/src/community_manager.rs similarity index 100% rename from decentralized/src/communities/community_manager.rs rename to communities/src/community_manager.rs diff --git a/decentralized/src/communities/interactables/category.rs b/communities/src/interactables/category.rs similarity index 100% rename from decentralized/src/communities/interactables/category.rs rename to communities/src/interactables/category.rs diff --git a/decentralized/src/communities/interactables/interactable.rs b/communities/src/interactables/interactable.rs similarity index 100% rename from decentralized/src/communities/interactables/interactable.rs rename to communities/src/interactables/interactable.rs diff --git a/decentralized/src/communities/interactables/registry.rs b/communities/src/interactables/registry.rs similarity index 100% rename from decentralized/src/communities/interactables/registry.rs rename to communities/src/interactables/registry.rs diff --git a/decentralized/src/communities/interactables/text_chat.rs b/communities/src/interactables/text_chat.rs similarity index 100% rename from decentralized/src/communities/interactables/text_chat.rs rename to communities/src/interactables/text_chat.rs diff --git a/decentralized/src/communities/interactables/voice_chat.rs b/communities/src/interactables/voice_chat.rs similarity index 100% rename from decentralized/src/communities/interactables/voice_chat.rs rename to communities/src/interactables/voice_chat.rs diff --git a/decentralized/src/communities/mod.rs b/communities/src/lib.rs similarity index 95% rename from decentralized/src/communities/mod.rs rename to communities/src/lib.rs index ecad116..237b709 100644 --- a/decentralized/src/communities/mod.rs +++ b/communities/src/lib.rs @@ -1,13 +1,13 @@ -pub mod community_manager; -pub mod interactables { - pub mod category; - pub mod interactable; - pub mod registry; - pub mod text_chat; - pub mod voice_chat; -} -pub mod community; -pub mod community_connection; -pub mod perms { - pub mod permission; -} +pub mod community_manager; +pub mod interactables { + pub mod category; + pub mod interactable; + pub mod registry; + pub mod text_chat; + pub mod voice_chat; +} +pub mod community; +pub mod community_connection; +pub mod perms { + pub mod permission; +} diff --git a/decentralized/src/communities/perms/permission.rs b/communities/src/perms/permission.rs similarity index 100% rename from decentralized/src/communities/perms/permission.rs rename to communities/src/perms/permission.rs diff --git a/decentralized/src/lib.rs b/decentralized/src/lib.rs deleted file mode 100644 index e7896d5..0000000 --- a/decentralized/src/lib.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub mod communities; -pub mod local_auth; diff --git a/decentralized/src/local_auth/mod.rs b/decentralized/src/local_auth/mod.rs deleted file mode 100644 index 73d6442..0000000 --- a/decentralized/src/local_auth/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub mod auth_user; -pub mod local_auth; diff --git a/iota-auth/Cargo.toml b/iota-auth/Cargo.toml new file mode 100644 index 0000000..56f6eac --- /dev/null +++ b/iota-auth/Cargo.toml @@ -0,0 +1,58 @@ +[package] +name = "iota-auth" +version = "0.1.0" +edition = "2024" + +[dependencies] +ttp-core = { git = "https://git.methanium.net/Tensamin/TTP.git", package = "ttp-core" } +ttp-native = { git = "https://git.methanium.net/Tensamin/TTP.git", package = "ttp-native" } +iota-logger = { path = "../iota-logger" } +iota-util = { path = "../iota-util" } +iota-storage = { path = "../iota-storage" } +iota-state = { path = "../iota-state" } + +aes-gcm = "0.10.3" +async-trait = "0.1.89" +base64 = "0.22.1" +chrono = "0.4.43" +crossterm = "*" +dashmap = "6.1.0" +futures = "*" +futures-util = "*" +hex = "*" +hkdf = "0.12.4" +hyper = { version = "1.8.1", features = [ + "capi", + "client", + "full", + "http1", + "http2", + "nightly", + "server", +] } +hyper-util = { version = "*" } +json = "*" +lazy_static = "1.5.0" +once_cell = "1.21.3" +open = "5.3.3" +pnet = "0.35.0" +rand = "0.8" +rand_core = { version = "0.6", features = ["getrandom", "std"] } +ratatui = "0.30.0" +reqwest = "0.13.2" +rusqlite = "0.39.0" +rustls = { version = "0.23.37", features = ["aws-lc-rs"] } +rustls-pemfile = "2.2.0" +serde_json = "1.0.149" +sha2 = "0.10.9" +strum = "0.27.2" +strum_macros = "0.27.2" +sysinfo = "0.38.3" +tokio = { version = "1.50.0", features = ["full"] } +tokio-tungstenite = { version = "*", features = ["native-tls"] } +tungstenite = "*" +uuid = { version = "*", features = ["v4"] } +walkdir = "2.5.0" +warp = "*" +x448 = { version = "*" } +zip = "6.0.0" diff --git a/decentralized/src/local_auth/auth_user.rs b/iota-auth/src/auth_user.rs similarity index 100% rename from decentralized/src/local_auth/auth_user.rs rename to iota-auth/src/auth_user.rs diff --git a/iota-auth/src/lib.rs b/iota-auth/src/lib.rs new file mode 100644 index 0000000..e69de29 diff --git a/decentralized/src/local_auth/local_auth.rs b/iota-auth/src/local_auth.rs similarity index 100% rename from decentralized/src/local_auth/local_auth.rs rename to iota-auth/src/local_auth.rs diff --git a/other_iota/Cargo.toml b/other_iota/Cargo.toml new file mode 100644 index 0000000..b930ed5 --- /dev/null +++ b/other_iota/Cargo.toml @@ -0,0 +1,61 @@ +[package] +name = "communities" +version = "0.1.0" +edition = "2024" + +[dependencies] +ttp-core = { git = "https://git.methanium.net/Tensamin/TTP.git", package = "ttp-core" } +ttp-native = { git = "https://git.methanium.net/Tensamin/TTP.git", package = "ttp-native" } +iota-logger = { path = "../iota-logger" } +iota-util = { path = "../iota-util" } +iota-storage = { path = "../iota-storage" } +iota-state = { path = "../iota-state" } +iota-auth = { path = "../iota-auth" } + +actix-web = { version = "4", features = ["rustls-0_23"] } +actix-web-actors = "4" +aes-gcm = "0.10.3" +async-trait = "0.1.89" +base64 = "0.22.1" +chrono = "0.4.43" +crossterm = "*" +dashmap = "6.1.0" +futures = "*" +futures-util = "*" +hex = "*" +hkdf = "0.12.4" +hyper = { version = "1.8.1", features = [ + "capi", + "client", + "full", + "http1", + "http2", + "nightly", + "server", +] } +hyper-util = { version = "*" } +json = "*" +lazy_static = "1.5.0" +once_cell = "1.21.3" +open = "5.3.3" +pnet = "0.35.0" +rand = "0.8" +rand_core = { version = "0.6", features = ["getrandom", "std"] } +ratatui = "0.30.0" +reqwest = "0.13.2" +rusqlite = "0.39.0" +rustls = { version = "0.23.37", features = ["aws-lc-rs"] } +rustls-pemfile = "2.2.0" +serde_json = "1.0.149" +sha2 = "0.10.9" +strum = "0.27.2" +strum_macros = "0.27.2" +sysinfo = "0.38.3" +tokio = { version = "1.50.0", features = ["full"] } +tokio-tungstenite = { version = "*", features = ["native-tls"] } +tungstenite = "*" +uuid = { version = "*", features = ["v4"] } +walkdir = "2.5.0" +warp = "*" +x448 = { version = "*" } +zip = "6.0.0" diff --git a/other_iota/src/lib.rs b/other_iota/src/lib.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/other_iota/src/lib.rs @@ -0,0 +1 @@ +