aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-16 17:42:37 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-16 17:42:37 +0200
commit9e157f453ae674a9f86601142fde91b85485883a (patch)
tree9ffa787646f5026a2c7d28dc5b1b2246545ae000 /src/lib.rs
parentfc0f0f9f15574b4f80bda8249c0763d5865cb8b2 (diff)
downloadmarkdown-rs-9e157f453ae674a9f86601142fde91b85485883a.tar.gz
markdown-rs-9e157f453ae674a9f86601142fde91b85485883a.tar.bz2
markdown-rs-9e157f453ae674a9f86601142fde91b85485883a.zip
Add `no_std + alloc`
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)]