hwio merge requestshttps://gitlab.redox-os.org/redox-os/hwio/-/merge_requests2022-10-21T19:38:58Zhttps://gitlab.redox-os.org/redox-os/hwio/-/merge_requests/5Split stable feature into std+stable2022-10-21T19:38:58ZTim CrawfordSplit stable feature into std+stableAdd a new `std` feature, selected by default. This controls whether the
lib is built for `no_std` and uses features from std.
The `const_fn_trait_bound` feature is stable since Rust 1.61.0, so the
`stable` feature is left unused.
Allow...Add a new `std` feature, selected by default. This controls whether the
lib is built for `no_std` and uses features from std.
The `const_fn_trait_bound` feature is stable since Rust 1.61.0, so the
`stable` feature is left unused.
Allows building for `no_std` by disabling default features.
On x86, PIO does not use `std` and writing to `/dev/port`, and instead
always uses the IN and OUT assembly instructions.
```
cargo +stable build --release
cargo +stable build --release --no-default-features
cargo +nightly-2022-03-18 build --release --no-default-features --target x86_64-unknown-uefi -Zbuild-std=core
```https://gitlab.redox-os.org/redox-os/hwio/-/merge_requests/4Fix using asm on newer nightlies2022-03-09T15:55:07ZTim CrawfordFix using asm on newer nightliesThe `asm` macro will finally be stabilized in 1.59.0. It must now be
imported from the `arch` module.The `asm` macro will finally be stabilized in 1.59.0. It must now be
imported from the `arch` module.https://gitlab.redox-os.org/redox-os/hwio/-/merge_requests/3Replace unaligned ref with raw pointer2021-10-21T15:49:27ZTim CrawfordReplace unaligned ref with raw pointerUnaligned references currently create a warning, and will be a hard
error in the future. Use the `addr_of!()` (Rust 1.51.0+) macro to create
a raw pointer without creating an intermediate reference.
Deprecate `Mmio::new()` as it is unso...Unaligned references currently create a warning, and will be a hard
error in the future. Use the `addr_of!()` (Rust 1.51.0+) macro to create
a raw pointer without creating an intermediate reference.
Deprecate `Mmio::new()` as it is unsound. These values should only be
constructed by transmuting memory.https://gitlab.redox-os.org/redox-os/hwio/-/merge_requests/2Fix or silence clippy warnings2021-10-20T14:34:06ZTim CrawfordFix or silence clippy warningsFix:
- clippy::redundant_field_names
Silence:
- clippy::new_without_default
- clippy::uninit_assumed_initFix:
- clippy::redundant_field_names
Silence:
- clippy::new_without_default
- clippy::uninit_assumed_inithttps://gitlab.redox-os.org/redox-os/hwio/-/merge_requests/1Fix compiling on nightly2021-10-19T15:12:56ZTim CrawfordFix compiling on nightlyconst_fn was removed. New `const_fn_*` features were added for tracking specific implementations.
Replace `llvm_asm!()` with the new `asm!()`. The former may be removed, while the latter is moving towards stabilization.
Fixes compiling...const_fn was removed. New `const_fn_*` features were added for tracking specific implementations.
Replace `llvm_asm!()` with the new `asm!()`. The former may be removed, while the latter is moving towards stabilization.
Fixes compiling on newer toolchains.