Skip to content

Commit

Permalink
fix feature gates
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Feb 26, 2024
1 parent 61e8723 commit d62274f
Show file tree
Hide file tree
Showing 11 changed files with 186 additions and 166 deletions.
2 changes: 2 additions & 0 deletions src/data/byte_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#[cfg(feature = "alloc")]
use alloc::boxed::Box;
#[cfg(feature = "alloc")]
use alloc::vec::Vec;
use core::borrow::{Borrow, BorrowMut};
use core::convert::TryFrom;
Expand Down
4 changes: 2 additions & 2 deletions src/data/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
//! Module defining number layout (integer, signed/unsigned, float etc) and universal in-memory
//! number representation.
#[cfg(feature = "alloc")]
use alloc::format;
#[cfg(feature = "alloc")]
use alloc::string::{String, ToString};
use core::fmt::{
self, Debug, Display, Formatter, LowerExp, LowerHex, Octal, UpperExp, UpperHex, Write,
Expand Down Expand Up @@ -1495,8 +1497,6 @@ impl_number_int_conv!(u1024, 128, false);

mod _float_impl {
use amplify::num::apfloat::ieee::*;
use amplify::num::apfloat::Float;
use half::bf16;

use super::*;

Expand Down
1 change: 1 addition & 0 deletions src/isa/bytecode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

//! Instruction serialization and deserialization from bytecode.
#[cfg(feature = "alloc")]
use alloc::boxed::Box;
use core::ops::RangeInclusive;

Expand Down
Loading

0 comments on commit d62274f

Please sign in to comment.