如何看待 Rust 这门语言?

Views :
Update time : 2025-06-21 23:15:16

最近学习了一个特别有意思的 rust 库,叫 secrecy 。

这个库非常简单,简单说,就是一个 wr***er,例如 // configuration.rs use secrecy::Secret; #[derive(serde::Deserialize)] pub struct Settings { pub password: Secret, }这个类型默认故意不实现 std::fmt::Display。

所以,如果你要用一个属性,需要显示声明,例如如果需要使用这个 setting 的 password // configuration.rs use secrecy::ExposeSecret; impl Sett…。

如何看待 Rust 这门语言?
Related News
Read More >>
Blog Post With Youtube Video 将 Windows Server 作为个人 PC 操作系统来用是怎样的体验?
2025-06-20 18:30:15
将 Windows Server 作为个人 PC 操作系统来用是怎样的体验?...
Blog Post With Youtube Video 腰肌劳损怎嘛治啊?
2025-06-20 18:25:15
腰肌劳损怎嘛治啊?...
Blog Post With Youtube Video 各位都在用Docker跑些什么呢?
2025-06-20 17:35:17
各位都在用Docker跑些什么呢?...
Blog Post With Youtube Video 网红都那么美,为什么当不了明星?
2025-06-20 18:40:15
网红都那么美,为什么当不了明星?...

Leave Your Message