externally-driven-async-rt 0.5.0

Async runtime that is meant to be embedded
Documentation
1
2
3
4
5
6
7
const _: () = assert!(usize::BITS == 64, "only 64-bit targets are supported");

#[must_use]
pub(crate) const fn u32_to_usize(value: u32) -> usize {
    let [b0, b1, b2, b3] = value.to_le_bytes();
    usize::from_le_bytes([b0, b1, b2, b3, 0, 0, 0, 0])
}