Test a full `no-std` build in the `no-std-check` crate in CI 2022-10-rgs-no-std
authorMatt Corallo <git@bluematt.me>
Thu, 6 Oct 2022 15:44:03 +0000 (15:44 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 7 Oct 2022 17:19:12 +0000 (17:19 +0000)
commitada0df2d9ff429a252656cc460e002895f686f11
treed01f35122964ae3fe35c24ad804a2557da443eb2
parent92963ebe521d51e3938295157107accea53f1a2a
Test a full `no-std` build in the `no-std-check` crate in CI

Rust is incredibly forgiving in attempts to access `std`, making it
rather difficult to test `no-std` properly. In practice, the only
decent way to do so is to actually build for a platform that does
not have `std`, which we do here by building the `no-std-check`
crate for `arm-thumbv7m-none-eabi`.
.github/workflows/build.yml
no-std-check/src/lib.rs