Debian Patches
Status for rust-bip39/3.0.0-1
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| 0001-relax-dependencies.patch | Relax dependencies The upstream set the dependencies too strict. Relax some dependencies because Debian has newer version packaged. In particular, Debian only ships bitcoin_hashes 1.0.0 and serde-test 1.0.x, so the 0.12-0.15 and =1.0.117 bounds are dropped. The dev-dependency on bitcoin_hashes also gets the hex feature enabled, which is required to format hashes as hex (Display) in the test suite. =================================================================== |
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> | not-needed | 2026-11-01 | ||
| 0002-port-to-bitcoin-hashes-1.0.patch | Port to bitcoin_hashes 1.0 API Upstream bip39 3.0.0 was written against the bitcoin_hashes 0.12-0.14 API. Debian unstable only ships bitcoin_hashes 1.0.0, whose API is not backwards compatible. Adjust both the library and the test code to the 1.0.0 API: * HmacEngine is now parameterized by the hash engine type, i.e. HmacEngine<sha512::HashEngine> instead of HmacEngine<sha512::Hash>. * The Hash types no longer implement HashEngine and can no longer be indexed; access their bytes via as_byte_array() instead of indexing (this removes the need for the Hash trait import in lib.rs). * Finalize the HmacEngine directly (prfc.finalize()) instead of calling the removed hmac::Hmac::from_engine(). * The hex module re-exported by bitcoin_hashes::hex no longer provides the FromHex trait / Vec::from_hex (it maps to hex-conservative, which uses a different API), so the tests now use a small local from_hex helper instead. * In the language checksum test, drop the now-unused Hash trait import. =================================================================== |
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> | no | 2026-11-01 | ||
| 0003-port-to-rand-0.10.patch | Port to rand 0.10 API Debian unstable ships rand 0.10.3 and rand_core 0.10.1, whose API is incompatible with the rand 0.7/0.8 the upstream crate was written against. The OS RNG is now SysRng and is fallible (TryRng, whose TryRng::Error is not Infallible) instead of the infallible OsRng, so Mnemonic::generate_in_with() now takes a TryCryptoRng and maps RNG failures to the new Error::UnableToGenerateEntropy variant; rand 0.10 also no longer re-exports the RngCore trait, which the rand feature imported. The benchmarks declare one const LANG per language feature, which conflicts when every feature is enabled at once (the @/all-features configuration enables the all-languages feature); they benchmark English in that case and otherwise keep the per-feature LANG. They are also gated on the features whose API they use (parse_in/to_seed need unicode-normalization, generate_in needs rand) so that the crate compiles under every feature combination, as exercised by the Debian autopkgtests. =================================================================== |
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> | not-needed | 2026-11-01 |
All known versions for source package 'rust-bip39'
- 3.0.0-1 (sid, forky)
