Migrated to TTP.

This commit is contained in:
Ben Markendorf 2026-03-19 22:26:34 +01:00
commit efc4bc9aa4
10 changed files with 40 additions and 40 deletions

56
Cargo.lock generated
View file

@ -979,32 +979,6 @@ dependencies = [
"cfg-if", "cfg-if",
] ]
[[package]]
name = "epsilon-core"
version = "0.1.0"
source = "git+https://github.com/Tensamin/Epsilon.git#d5edc693a91954834a38c39517b79092983eac5c"
dependencies = [
"base64",
"byteorder",
"rand 0.8.5",
"strum 0.28.0",
"strum_macros 0.28.0",
]
[[package]]
name = "epsilon-native"
version = "0.1.0"
source = "git+https://github.com/Tensamin/Epsilon.git#d5edc693a91954834a38c39517b79092983eac5c"
dependencies = [
"epsilon-core",
"quinn",
"rustls",
"rustls-native-certs",
"thiserror 2.0.18",
"tokio",
"wtransport",
]
[[package]] [[package]]
name = "equivalent" name = "equivalent"
version = "1.0.2" version = "1.0.2"
@ -1758,8 +1732,6 @@ dependencies = [
"chrono", "chrono",
"crossterm", "crossterm",
"dashmap", "dashmap",
"epsilon-core",
"epsilon-native",
"futures", "futures",
"futures-util", "futures-util",
"hex", "hex",
@ -1784,6 +1756,8 @@ dependencies = [
"sysinfo", "sysinfo",
"tokio", "tokio",
"tokio-tungstenite", "tokio-tungstenite",
"ttp-core",
"ttp-native",
"tungstenite", "tungstenite",
"uuid", "uuid",
"walkdir", "walkdir",
@ -3877,6 +3851,32 @@ version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
[[package]]
name = "ttp-core"
version = "0.1.0"
source = "git+https://github.com/t3kkm0tt/TTP.git#8a3cd5cea756d62e7f85824ebfa1e64c7594c7de"
dependencies = [
"base64",
"byteorder",
"rand 0.8.5",
"strum 0.28.0",
"strum_macros 0.28.0",
]
[[package]]
name = "ttp-native"
version = "0.1.0"
source = "git+https://github.com/t3kkm0tt/TTP.git#8a3cd5cea756d62e7f85824ebfa1e64c7594c7de"
dependencies = [
"quinn",
"rustls",
"rustls-native-certs",
"thiserror 2.0.18",
"tokio",
"ttp-core",
"wtransport",
]
[[package]] [[package]]
name = "tungstenite" name = "tungstenite"
version = "0.28.0" version = "0.28.0"

View file

@ -4,8 +4,8 @@ version = "0.1.0"
edition = "2024" edition = "2024"
[dependencies] [dependencies]
epsilon-core = { git = "https://github.com/Tensamin/Epsilon.git", package = "epsilon-core" } ttp-core = { git = "https://github.com/Tensamin/TTP.git", package = "ttp-core" }
epsilon-native = { git = "https://github.com/Tensamin/Epsilon.git", package = "epsilon-native" } ttp-native = { git = "https://github.com/Tensamin/TTP.git", package = "ttp-native" }
actix-web = { version = "4", features = ["rustls-0_23"] } actix-web = { version = "4", features = ["rustls-0_23"] }
actix-web-actors = "4" actix-web-actors = "4"

View file

@ -1,9 +1,9 @@
use crate::communities::{community::Community, interactables::interactable::Interactable}; use crate::communities::{community::Community, interactables::interactable::Interactable};
use async_trait::async_trait; use async_trait::async_trait;
use epsilon_core::CommunicationValue;
use json::JsonValue; use json::JsonValue;
use std::any::Any; use std::any::Any;
use std::sync::Arc; use std::sync::Arc;
use ttp_core::CommunicationValue;
use uuid::Uuid; use uuid::Uuid;
pub struct Category { pub struct Category {

View file

@ -1,9 +1,9 @@
use crate::communities::community::Community; use crate::communities::community::Community;
use async_trait::async_trait; use async_trait::async_trait;
use epsilon_core::CommunicationValue;
use json::JsonValue; use json::JsonValue;
use std::any::Any; use std::any::Any;
use std::sync::Arc; use std::sync::Arc;
use ttp_core::CommunicationValue;
use uuid::Uuid; use uuid::Uuid;
pub type InteractableFactory = fn() -> Box<dyn Interactable>; pub type InteractableFactory = fn() -> Box<dyn Interactable>;

View file

@ -7,11 +7,11 @@ use crate::{
util::file_util::{get_children, load_file, save_file}, util::file_util::{get_children, load_file, save_file},
}; };
use async_trait::async_trait; use async_trait::async_trait;
use epsilon_core::{CommunicationType, CommunicationValue, DataTypes};
use json::{JsonValue, array, object}; use json::{JsonValue, array, object};
use std::fs; use std::fs;
use std::sync::Arc; use std::sync::Arc;
use std::{any::Any, collections::HashMap}; use std::{any::Any, collections::HashMap};
use ttp_core::{CommunicationType, CommunicationValue, DataTypes};
use uuid::Uuid; use uuid::Uuid;
pub struct TextChat { pub struct TextChat {
id: Uuid, id: Uuid,

View file

@ -1,5 +1,4 @@
use crossterm::event::{KeyCode, KeyEvent}; use crossterm::event::{KeyCode, KeyEvent};
use epsilon_core::{CommunicationType, CommunicationValue};
use ratatui::{ use ratatui::{
Frame, Frame,
layout::Rect, layout::Rect,
@ -7,6 +6,7 @@ use ratatui::{
text::{Line, Span}, text::{Line, Span},
widgets::{Block, Borders, Paragraph}, widgets::{Block, Borders, Paragraph},
}; };
use ttp_core::{CommunicationType, CommunicationValue};
use uuid::Uuid; use uuid::Uuid;
use crate::{ use crate::{

View file

@ -8,8 +8,6 @@ use crate::util::{chat_files, chats_util};
use crate::util::{config_util::CONFIG, crypto_helper}; use crate::util::{config_util::CONFIG, crypto_helper};
use crate::{ACTIVE_TASKS, SHUTDOWN, log, log_cv_in, log_cv_out, log_t}; use crate::{ACTIVE_TASKS, SHUTDOWN, log, log_cv_in, log_cv_out, log_t};
use dashmap::DashMap; use dashmap::DashMap;
use epsilon_core::{CommunicationType, CommunicationValue, DataTypes, DataValue};
use epsilon_native::{Receiver, Sender};
use json::JsonValue; use json::JsonValue;
use std::collections::HashMap; use std::collections::HashMap;
use std::sync::{Arc, LazyLock}; use std::sync::{Arc, LazyLock};
@ -17,6 +15,8 @@ use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH};
use tokio::sync::{Mutex, RwLock, mpsc, watch}; use tokio::sync::{Mutex, RwLock, mpsc, watch};
use tokio::task::JoinHandle; use tokio::task::JoinHandle;
use tokio::time::sleep; use tokio::time::sleep;
use ttp_core::{CommunicationType, CommunicationValue, DataTypes, DataValue};
use ttp_native::{Receiver, Sender};
use uuid::Uuid; use uuid::Uuid;
// ============================================================================ // ============================================================================
@ -213,7 +213,7 @@ impl OmikronConnection {
let addr_str = format!("https://{}:{}/ws/iota/", self.host, self.port); let addr_str = format!("https://{}:{}/ws/iota/", self.host, self.port);
let (sender, mut receiver) = epsilon_native::client::connect(&addr_str, None) let (sender, mut receiver) = ttp_native::client::connect(&addr_str, None)
.await .await
.map_err(|e| format!("Connection failed: {}", e))?; .map_err(|e| format!("Connection failed: {}", e))?;

View file

@ -1,10 +1,10 @@
use crate::APP_STATE; use crate::APP_STATE;
use crate::omikron::omikron_connection::OmikronConnection; use crate::omikron::omikron_connection::OmikronConnection;
use dashmap::DashMap; use dashmap::DashMap;
use epsilon_core::{CommunicationType, CommunicationValue, DataTypes, DataValue, rand_u32};
use std::sync::LazyLock; use std::sync::LazyLock;
use std::time::Instant; use std::time::Instant;
use tokio::time::Duration; use tokio::time::Duration;
use ttp_core::{CommunicationType, CommunicationValue, DataTypes, DataValue, rand_u32};
// Dedicated lightweight ping tracking // Dedicated lightweight ping tracking
static PING_TIMES: LazyLock<DashMap<u32, Instant>> = LazyLock::new(|| DashMap::new()); static PING_TIMES: LazyLock<DashMap<u32, Instant>> = LazyLock::new(|| DashMap::new());

View file

@ -6,7 +6,6 @@ use crate::util::logger::PrintType;
use crate::{RELOAD, SHUTDOWN}; use crate::{RELOAD, SHUTDOWN};
use crate::{log, log_cv}; use crate::{log, log_cv};
use base64::{Engine as _, engine::general_purpose::STANDARD}; use base64::{Engine as _, engine::general_purpose::STANDARD};
use epsilon_core::{CommunicationType, CommunicationValue, DataTypes, DataValue};
use hex::{self}; use hex::{self};
use json::JsonValue; use json::JsonValue;
use once_cell::sync::Lazy; use once_cell::sync::Lazy;
@ -17,6 +16,7 @@ use sha2::{Digest, Sha256};
use std::io::{self}; use std::io::{self};
use std::sync::Mutex; use std::sync::Mutex;
use std::time::Duration; use std::time::Duration;
use ttp_core::{CommunicationType, CommunicationValue, DataTypes, DataValue};
use x448::{PublicKey, Secret}; use x448::{PublicKey, Secret};
static USERS: Lazy<Mutex<Vec<UserProfile>>> = Lazy::new(|| Mutex::new(Vec::new())); static USERS: Lazy<Mutex<Vec<UserProfile>>> = Lazy::new(|| Mutex::new(Vec::new()));

View file

@ -8,8 +8,8 @@ use std::{
time::{SystemTime, UNIX_EPOCH}, time::{SystemTime, UNIX_EPOCH},
}; };
use epsilon_core::{CommunicationValue, DataTypes, DataValue};
use ratatui::style::Color; use ratatui::style::Color;
use ttp_core::{CommunicationValue, DataTypes, DataValue};
use crate::{ use crate::{
APP_STATE, APP_STATE,