Skip to content

Commit

Permalink
Qualify crate as no_std
Browse files Browse the repository at this point in the history
Since this crate is now compiled into the embedded system -- not just
something that runs at build time -- the crate is now no_std.

This commit was tested in the teensy4-fcb crate. It works as
expected.
  • Loading branch information
mciantyre committed Nov 15, 2020
1 parent 1b7ab40 commit cc8a4be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/flexspi_lut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! Derived from the iMXRT1060 Reference Manual (Rev 2),
//! section 27.5.8.
use std::fmt;
use core::fmt;

pub(crate) const INSTRUCTION_SIZE: usize = 2;

Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,7 @@
//! The name is not mangled. It may be referenced in a linker script by its section,
//! `".fcb"`. Given the ABI guarantees, the FCB should be usable from both Rust and C.
#![cfg_attr(not(test), no_std)]

mod flexspi_lut;
pub mod serial_flash;

0 comments on commit cc8a4be

Please sign in to comment.