re-add core crates packages on no_std which is not imported
This commit is contained in:
parent
ec5511fecf
commit
6be9301a26
@ -5,6 +5,9 @@ use crate::token::Position;
|
|||||||
|
|
||||||
use crate::stdlib::{boxed::Box, char, error::Error, fmt, string::String};
|
use crate::stdlib::{boxed::Box, char, error::Error, fmt, string::String};
|
||||||
|
|
||||||
|
#[cfg(feature = "no_std")]
|
||||||
|
use crate::alloc::string::ToString;
|
||||||
|
|
||||||
/// Error when tokenizing the script text.
|
/// Error when tokenizing the script text.
|
||||||
#[derive(Debug, Eq, PartialEq, Clone, Hash)]
|
#[derive(Debug, Eq, PartialEq, Clone, Hash)]
|
||||||
pub enum LexError {
|
pub enum LexError {
|
||||||
|
@ -10,6 +10,9 @@ use crate::token::Position;
|
|||||||
|
|
||||||
use crate::stdlib::{any::TypeId, boxed::Box};
|
use crate::stdlib::{any::TypeId, boxed::Box};
|
||||||
|
|
||||||
|
#[cfg(feature = "no_std")]
|
||||||
|
use crate::alloc::string::ToString;
|
||||||
|
|
||||||
// Register array utility functions
|
// Register array utility functions
|
||||||
fn push<T: Variant + Clone>(list: &mut Array, item: T) -> FuncReturn<()> {
|
fn push<T: Variant + Clone>(list: &mut Array, item: T) -> FuncReturn<()> {
|
||||||
list.push(Dynamic::from(item));
|
list.push(Dynamic::from(item));
|
||||||
|
@ -10,6 +10,9 @@ use crate::utils::StaticVec;
|
|||||||
#[cfg(not(feature = "no_index"))]
|
#[cfg(not(feature = "no_index"))]
|
||||||
use crate::engine::Array;
|
use crate::engine::Array;
|
||||||
|
|
||||||
|
#[cfg(feature = "no_std")]
|
||||||
|
use crate::alloc::boxed::Box;
|
||||||
|
|
||||||
use crate::stdlib::{
|
use crate::stdlib::{
|
||||||
any::TypeId,
|
any::TypeId,
|
||||||
fmt::Display,
|
fmt::Display,
|
||||||
|
Loading…
Reference in New Issue
Block a user