<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>2 crate 家族 on 编程那些事儿</title><link>https://before80.github.io/prgms/Rust/rustRandom/crates/</link><description>Recent content in 2 crate 家族 on 编程那些事儿</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Sun, 23 Aug 2026 21:05:58 +0800</lastBuildDate><atom:link href="https://before80.github.io/prgms/Rust/rustRandom/crates/index.xml" rel="self" type="application/rss+xml"/><item><title>2.1 特性</title><link>https://before80.github.io/prgms/Rust/rustRandom/crates/2.1-features/</link><pubDate>Sun, 23 Aug 2026 16:44:00 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/rustRandom/crates/2.1-features/</guid><description>&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://rust-random.github.io/book/crate-features.html"&gt;https://rust-random.github.io/book/crate-features.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;建议查看 crate 的 &lt;code&gt;Cargo.toml&lt;/code&gt; 或 &lt;code&gt;README.md&lt;/code&gt; 以了解特性。自 &lt;code&gt;rand v0.9&lt;/code&gt; 起，&lt;code&gt;rust-random&lt;/code&gt; crate 仅使用显式特性（即所有特性都列在 &lt;code&gt;[features]&lt;/code&gt; 下）。&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Cargo.toml&lt;/code&gt; 的发布版本可在 &lt;code&gt;docs.rs&lt;/code&gt; 上查看：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.rs/crate/rand/latest/source/Cargo.toml.orig"&gt;https://docs.rs/crate/rand/latest/source/Cargo.toml.orig&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.rs/crate/rand_core/latest/source/Cargo.toml.orig"&gt;https://docs.rs/crate/rand_core/latest/source/Cargo.toml.orig&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.rs/crate/rand_distr/latest/source/Cargo.toml.orig"&gt;https://docs.rs/crate/rand_distr/latest/source/Cargo.toml.orig&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.rs/crate/chacha20/latest/source/Cargo.toml.orig"&gt;https://docs.rs/crate/chacha20/latest/source/Cargo.toml.orig&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.rs/crate/rand_xoshiro/latest/source/Cargo.toml.orig"&gt;https://docs.rs/crate/rand_xoshiro/latest/source/Cargo.toml.orig&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.rs/crate/rand_pcg/latest/source/Cargo.toml.orig"&gt;https://docs.rs/crate/rand_pcg/latest/source/Cargo.toml.orig&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="通用特性"&gt;通用特性&lt;/h2&gt;
&lt;p&gt;以下特性在 &lt;code&gt;rand_core&lt;/code&gt;、&lt;code&gt;rand&lt;/code&gt;、&lt;code&gt;rand_distr&lt;/code&gt; 以及部分 RNG crate 中通用：&lt;/p&gt;</description></item><item><title>2.2 平台支持</title><link>https://before80.github.io/prgms/Rust/rustRandom/crates/2.2-platform-support/</link><pubDate>Sun, 23 Aug 2026 16:44:00 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/rustRandom/crates/2.2-platform-support/</guid><description>&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://rust-random.github.io/book/crate-platforms.html"&gt;https://rust-random.github.io/book/crate-platforms.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;得益于众多社区贡献，Rand crate 支持多种平台。&lt;/p&gt;
&lt;h2 id="no_std"&gt;no_std&lt;/h2&gt;
&lt;p&gt;使用 &lt;code&gt;default-features = false&lt;/code&gt; 时，&lt;code&gt;rand&lt;/code&gt; 和 &lt;code&gt;rand_distr&lt;/code&gt; 均支持 &lt;code&gt;no_std&lt;/code&gt; 构建。参见&lt;a href="../2.1-features/#common-features"&gt;通用特性&lt;/a&gt;。&lt;/p&gt;
&lt;h2 id="getrandom"&gt;getrandom&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://docs.rs/getrandom/"&gt;&lt;code&gt;getrandom&lt;/code&gt;&lt;/a&gt; crate 提供了围绕平台特定随机数源的低级 API，是 &lt;code&gt;rand&lt;/code&gt; 和 &lt;code&gt;rand_core&lt;/code&gt; 以及若干密码学库的重要构建块。它不打算在低级库之外使用。&lt;/p&gt;</description></item><item><title>2.3 可复现性</title><link>https://before80.github.io/prgms/Rust/rustRandom/crates/2.3-reproducibility/</link><pubDate>Sun, 23 Aug 2026 16:44:00 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/rustRandom/crates/2.3-reproducibility/</guid><description>&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://rust-random.github.io/book/crate-reprod.html"&gt;https://rust-random.github.io/book/crate-reprod.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;code&gt;rust-random&lt;/code&gt; 库对可播种 PRNG 和随机算法的可重现性仅作有限承诺。&lt;/p&gt;
&lt;p&gt;本章涉及使用 &lt;code&gt;rust-random&lt;/code&gt; 库的确定性过程的价值稳定性。&lt;/p&gt;
&lt;h2 id="api-破坏性值破坏性与-semver"&gt;API 破坏性、值破坏性与 SemVer&lt;/h2&gt;
&lt;p&gt;如果某项变更（对库的变更）可能导致与先前 API 版本兼容的代码编译失败，或属于其他不兼容变更，则视为 &lt;strong&gt;API 破坏性&lt;/strong&gt;变更。&lt;/p&gt;</description></item></channel></rss>