feat(workspace): initialize Rust workspace with core services and dependencies
Some checks are pending
CI / Rust Lint & Check (push) Waiting to run
CI / Rust Tests (push) Waiting to run
CI / Frontend Lint & Type Check (push) Waiting to run
CI / Frontend Build (push) Blocked by required conditions

This commit is contained in:
ZhenYi 2026-05-01 00:15:55 +08:00
parent c48f7319ca
commit 59f9b66360
4 changed files with 7 additions and 4 deletions

View File

@ -143,7 +143,7 @@ clap = "4.6.0"
time = "0.3.47" time = "0.3.47"
chrono = "0.4.44" chrono = "0.4.44"
tracing = "0.1.44" tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = ["env-filter", "json"] } tracing-subscriber = { version = "0.3.23", features = ["env-filter", "json", "tracing-log"] }
tracing-opentelemetry = "0.32.1" tracing-opentelemetry = "0.32.1"
tonic = "0.14.5" tonic = "0.14.5"
tonic-build = "0.14.5" tonic-build = "0.14.5"

View File

@ -662,7 +662,8 @@ impl ChatService {
match rx.try_recv() { match rx.try_recv() {
Ok(tc) => { Ok(tc) => {
let args_display = if tc.arguments.len() > 100 { let args_display = if tc.arguments.len() > 100 {
format!("{}...", &tc.arguments[..100]) let end = tc.arguments.char_indices().map(|(i, _)| i).take_while(|&i| i <= 100).last().unwrap_or(100);
format!("{}...", &tc.arguments[..end])
} else { } else {
tc.arguments.clone() tc.arguments.clone()
}; };

View File

@ -58,7 +58,8 @@ impl SSHHandle {
} }
let preview = if private_key_content.len() > 100 { let preview = if private_key_content.len() > 100 {
format!("{}...", &private_key_content[..100]) let end = private_key_content.char_indices().map(|(i, _)| i).take_while(|&i| i <= 100).last().unwrap_or(100);
format!("{}...", &private_key_content[..end])
} else { } else {
private_key_content.clone() private_key_content.clone()
}; };

View File

@ -213,7 +213,8 @@ impl RoomService {
}; };
let preview = if content.len() > 50 { let preview = if content.len() > 50 {
format!("{}...", &content[..50]) let end = content.char_indices().map(|(i, _)| i).take_while(|&i| i <= 50).last().unwrap_or(50);
format!("{}...", &content[..end])
} else { } else {
content.clone() content.clone()
}; };