feat(workspace): initialize Rust workspace with core services and dependencies
This commit is contained in:
parent
c48f7319ca
commit
59f9b66360
@ -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"
|
||||||
|
|||||||
@ -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()
|
||||||
};
|
};
|
||||||
|
|||||||
@ -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()
|
||||||
};
|
};
|
||||||
|
|||||||
@ -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()
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user