forgot the no_std attr

This commit is contained in:
Able 2024-12-04 02:44:59 -06:00
parent be24d49c77
commit ed3d696ebe
4 changed files with 33 additions and 11 deletions

View file

@ -1,8 +1,10 @@
use alloc::string::String;
use crate::alloc::string::ToString;
use crate::parse_list_of_floats;
use crate::Expr;
use crate::HashMap;
use crate::RispError;
macro_rules! ensure_tonicity {
($check_fn:expr) => {{
|args: &[Expr]| -> Result<Expr, RispError> {

View file

@ -1,10 +1,15 @@
use crate::lib::environ::env_get;
use crate::lib::Environ;
use crate::lib::Expr;
use crate::lib::HashMap;
use crate::lib::RLambda;
use crate::lib::Rc;
use crate::lib::RispError;
use alloc::format;
use alloc::string::String;
use alloc::string::ToString;
use alloc::vec::Vec;
use crate::environ::env_get;
use crate::Environ;
use crate::Expr;
use crate::HashMap;
use crate::RLambda;
use crate::Rc;
use crate::RispError;
pub fn eval(exp: &Expr, env: &mut Environ) -> Result<Expr, RispError> {
match exp {

View file

@ -1,12 +1,23 @@
#![feature(slice_take)]
#![allow(special_module_name)]
#![feature(build_hasher_default_const_new)]
#![no_std]
use core::fmt;
use core::num::ParseFloatError;
// use std::hash::DefaultHasher;
use alloc::fmt::format;
use alloc::rc::Rc;
use alloc::string::String;
use alloc::string::ToString;
use alloc::vec::Vec;
pub use hashbrown::hash_map::HashMap;
pub use std::io::Write;
pub use std::rc::Rc;
pub extern crate alloc;
use alloc::format;
use alloc::vec;
// pub use alloc::;
// pub use core::rc::Rc;
mod environ;
pub use environ::default_env;

View file

@ -1,3 +1,7 @@
use alloc::string::String;
use alloc::string::ToString;
use alloc::vec::Vec;
use crate::evaluate::eval;
use crate::read_seq;
use crate::Environ;