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/lib.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/lib.rs')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)] |