摘要:
RUST 基于map_err的卫语句错误处理方式 使用扩展方法 use tracing::error; use eyre::Result; pub trait LogErrExt<T> { /// 记录错误日志后返回原 Result /// /// error!("[{}] 错误详情: {}", c 阅读全文
posted @ 2025-03-28 23:03
等你下课啊
阅读(233)
评论(0)
推荐(0)
摘要:
RUST cargo 换源 # ~/.cargo/config 被弃用, 使用 ~/.cargo/config.toml vim ~/.cargo/config.toml [source.crates-io] #registry = "https://github.com/rust-lang/cra 阅读全文
posted @ 2025-03-28 22:47
等你下课啊
阅读(81)
评论(0)
推荐(0)

浙公网安备 33010602011771号