From 9e157f453ae674a9f86601142fde91b85485883a Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 16 Aug 2022 17:42:37 +0200 Subject: Add `no_std + alloc` --- src/compiler.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/compiler.rs') diff --git a/src/compiler.rs b/src/compiler.rs index a5b2bf5..bb08745 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -10,7 +10,13 @@ use crate::util::{ slice::{Position, Slice}, }; use crate::{LineEnding, Options}; -use std::str; +use alloc::{ + format, + string::{String, ToString}, + vec, + vec::Vec, +}; +use core::str; /// Link or image, resource or reference. /// Reused for temporary definitions as well, in the first pass. -- cgit