在 Rust 中实时重载动态库
重新加载动态库可以让我们在程序不退出的情况下达到升级的效果.
想在 Rust 中实时重新加载动态库 ? 这篇文章详细到令人发指, 绝对包教包会.
https://fasterthanli.me/articles/so-you-want-to-live-reload-rust
我们可以观测了吗 ? Rust 的遥测介绍
这是 <<从零到生产>>
系列的第四章.
首先介绍了程序的观测性的重要性, 然后从 log
到 tracing
等 crate 都有深入的介绍和演示.
https://www.lpalmieri.com/posts/2020-09-27-zero-to-production-4-are-we-observable-yet/
go 标准库在 rust 中的对应 crates
如果你是从 golang 转到 rust, 这篇文章会有所帮助.
文章列出了 go 中常用的一些标准库中所对应的 rust 中的 crates.
例如:
go 中的 log 对应 rust 中的 log.
go 中的 flag 对应 rust 中的 structopt 等.
go 中的 erorr 对应 rust 中的 thiserror.
go 中的 encoding/json 对应 rust 中的 serde 等.
...等等
https://christine.website/blog/rust-crates-go-stdlib-2020-09-27