diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-08-16 17:42:37 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-08-16 17:42:37 +0200 |
commit | 9e157f453ae674a9f86601142fde91b85485883a (patch) | |
tree | 9ffa787646f5026a2c7d28dc5b1b2246545ae000 /src/compiler.rs | |
parent | fc0f0f9f15574b4f80bda8249c0763d5865cb8b2 (diff) | |
download | markdown-rs-9e157f453ae674a9f86601142fde91b85485883a.tar.gz markdown-rs-9e157f453ae674a9f86601142fde91b85485883a.tar.bz2 markdown-rs-9e157f453ae674a9f86601142fde91b85485883a.zip |
Add `no_std + alloc`
Diffstat (limited to 'src/compiler.rs')
-rw-r--r-- | src/compiler.rs | 8 |
1 files changed, 7 insertions, 1 deletions
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. |