aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 428838a..00f1c5c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -4,6 +4,10 @@
//! `micromark` is a safe way to transform (untrusted?) markdown into HTML.
//! `micromark_with_options` allows you to configure how markdown is turned into
//! HTML, such as by allowing dangerous HTML when you trust it.
+#![no_std]
+
+extern crate alloc;
+
mod compiler;
mod constant;
mod construct;
@@ -18,6 +22,7 @@ mod util;
use crate::compiler::compile;
use crate::parser::parse;
+use alloc::string::String;
/// Type of line endings in markdown.
#[derive(Clone, Debug, Default, Eq, PartialEq)]