]> git.bitcoin.ninja Git - dnssec-prover/commit
Drop MSRV to 1.63 w/o `RUSTC_BOOTSTRAP` hacks with a bad assumption
authorMatt Corallo <git@bluematt.me>
Wed, 10 Jul 2024 14:09:47 +0000 (14:09 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 10 Jul 2024 14:09:47 +0000 (14:09 +0000)
commit33d722eb0ebb5c87e8b4731a31190b3414429448
treecf1af670be1617aeb7e615d9bb72a63defde5043
parent5f10274bd3f9bd3a95060b2bf07945baa2a23d65
Drop MSRV to 1.63 w/o `RUSTC_BOOTSTRAP` hacks with a bad assumption

While the Rust language reference says "you should not rely on
this", in practice slices are laid out in memory as a two-tuple of
`(pointer, length)`. Here we rely on that assumption to replace
`alloc::slice::from_raw_parts` with a `core::mem::transmute`.
src/crypto/bigint.rs
src/http.rs
src/lib.rs
test.sh