mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 14:18:20 +00:00
fix(compiler) Make it compile with no_std + core.
This commit is contained in:
@@ -25,13 +25,15 @@
|
||||
)
|
||||
)]
|
||||
|
||||
mod lib {
|
||||
#[cfg(not(feature = "std"))]
|
||||
pub mod std {
|
||||
#[cfg(feature = "core")]
|
||||
pub use alloc::{boxed, fmt, string, vec};
|
||||
#[cfg(all(not(feature = "std"), feature = "core"))]
|
||||
extern crate alloc;
|
||||
|
||||
#[cfg(feature = "core")]
|
||||
mod lib {
|
||||
#[cfg(all(not(feature = "std"), feature = "core"))]
|
||||
pub mod std {
|
||||
#[macro_use]
|
||||
pub use alloc::{boxed, string, vec};
|
||||
pub use core::fmt;
|
||||
pub use hashbrown as collections;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user