Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,15 @@ jobs:
run: ./cargo.sh +${{ matrix.toolchain }} build --package ${{ matrix.crate }} --target ${{ matrix.target }} ${{ matrix.features }} --verbose
if: matrix.target != 'thumbv6m-none-eabi'

# Ensure that, when the standard library is built with `--cfg
# no_fp_fmt_parse`, building zerocopy with the same `--cfg` succeeds (note
# that `RUSTFLAGS='--cfg no_fp_fmt_parse'` is doing double-duty here - it's
# setting the environment variable for both the standard library build and
# for the zerocopy build).
- name: Build without floating point support
run: RUSTFLAGS='--cfg no_fp_fmt_parse' ./cargo.sh +${{ matrix.toolchain }} build -Zbuild-std --package ${{ matrix.crate }} --target ${{ matrix.target }} ${{ matrix.features }} --verbose
if: matrix.target != 'thumbv6m-none-eabi'

# When building tests for the i686 target, we need certain libraries which
# are not installed by default; `gcc-multilib` includes these libraries.
- name: Install gcc-multilib
Expand Down
1 change: 1 addition & 0 deletions src/byteorder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ macro_rules! impl_fmt_trait {

macro_rules! impl_fmt_traits {
($name:ident, $native:ident, "floating point number") => {
#[cfg(not(no_fp_fmt_parse))]
impl_fmt_trait!($name, $native, Display);
};
($name:ident, $native:ident, "unsigned integer") => {
Expand Down
Loading