aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct
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/construct
parentfc0f0f9f15574b4f80bda8249c0763d5865cb8b2 (diff)
downloadmarkdown-rs-9e157f453ae674a9f86601142fde91b85485883a.tar.gz
markdown-rs-9e157f453ae674a9f86601142fde91b85485883a.tar.bz2
markdown-rs-9e157f453ae674a9f86601142fde91b85485883a.zip
Add `no_std + alloc`
Diffstat (limited to 'src/construct')
-rw-r--r--src/construct/attention.rs1
-rw-r--r--src/construct/document.rs1
-rw-r--r--src/construct/heading_atx.rs1
-rw-r--r--src/construct/heading_setext.rs1
-rw-r--r--src/construct/label_end.rs1
-rw-r--r--src/construct/list_item.rs1
-rw-r--r--src/construct/paragraph.rs1
-rw-r--r--src/construct/partial_data.rs1
-rw-r--r--src/construct/partial_whitespace.rs1
9 files changed, 9 insertions, 0 deletions
diff --git a/src/construct/attention.rs b/src/construct/attention.rs
index 21407b7..8df0f61 100644
--- a/src/construct/attention.rs
+++ b/src/construct/attention.rs
@@ -64,6 +64,7 @@ use crate::state::{Name as StateName, State};
use crate::tokenizer::Tokenizer;
use crate::unicode::PUNCTUATION;
use crate::util::slice::Slice;
+use alloc::{string::String, vec, vec::Vec};
/// Character code kinds.
#[derive(Debug, PartialEq)]
diff --git a/src/construct/document.rs b/src/construct/document.rs
index 2cc170d..4ef6acc 100644
--- a/src/construct/document.rs
+++ b/src/construct/document.rs
@@ -13,6 +13,7 @@ use crate::state::{Name as StateName, State};
use crate::subtokenize::divide_events;
use crate::tokenizer::{Container, ContainerState, Tokenizer};
use crate::util::skip;
+use alloc::{boxed::Box, vec::Vec};
/// Phases where we can exit containers.
#[derive(Debug, PartialEq)]
diff --git a/src/construct/heading_atx.rs b/src/construct/heading_atx.rs
index 960ae32..4ff0143 100644
--- a/src/construct/heading_atx.rs
+++ b/src/construct/heading_atx.rs
@@ -68,6 +68,7 @@ use crate::event::{Content, Event, Kind, Link, Name};
use crate::resolve::Name as ResolveName;
use crate::state::{Name as StateName, State};
use crate::tokenizer::Tokenizer;
+use alloc::vec;
/// Start of a heading (atx).
///
diff --git a/src/construct/heading_setext.rs b/src/construct/heading_setext.rs
index bad781c..3adeb38 100644
--- a/src/construct/heading_setext.rs
+++ b/src/construct/heading_setext.rs
@@ -76,6 +76,7 @@ use crate::resolve::Name as ResolveName;
use crate::state::{Name as StateName, State};
use crate::tokenizer::Tokenizer;
use crate::util::skip::opt_back as skip_opt_back;
+use alloc::vec;
/// At start of heading (setext) underline.
///
diff --git a/src/construct/label_end.rs b/src/construct/label_end.rs
index 5e31444..41f16d7 100644
--- a/src/construct/label_end.rs
+++ b/src/construct/label_end.rs
@@ -169,6 +169,7 @@ use crate::util::{
skip,
slice::{Position, Slice},
};
+use alloc::vec;
/// Start of label end.
///
diff --git a/src/construct/list_item.rs b/src/construct/list_item.rs
index 3e632fb..13c287a 100644
--- a/src/construct/list_item.rs
+++ b/src/construct/list_item.rs
@@ -68,6 +68,7 @@ use crate::util::{
skip,
slice::{Position, Slice},
};
+use alloc::{vec, vec::Vec};
/// Start of list item.
///
diff --git a/src/construct/paragraph.rs b/src/construct/paragraph.rs
index 0ddd0c4..9e20643 100644
--- a/src/construct/paragraph.rs
+++ b/src/construct/paragraph.rs
@@ -44,6 +44,7 @@ use crate::event::{Content, Kind, Link, Name};
use crate::resolve::Name as ResolveName;
use crate::state::{Name as StateName, State};
use crate::tokenizer::Tokenizer;
+use alloc::vec;
/// Before paragraph.
///
diff --git a/src/construct/partial_data.rs b/src/construct/partial_data.rs
index 19f5f3b..bc6d7f4 100644
--- a/src/construct/partial_data.rs
+++ b/src/construct/partial_data.rs
@@ -10,6 +10,7 @@ use crate::event::{Kind, Name};
use crate::resolve::Name as ResolveName;
use crate::state::{Name as StateName, State};
use crate::tokenizer::Tokenizer;
+use alloc::vec;
/// At beginning of data.
///
diff --git a/src/construct/partial_whitespace.rs b/src/construct/partial_whitespace.rs
index faaff73..707107d 100644
--- a/src/construct/partial_whitespace.rs
+++ b/src/construct/partial_whitespace.rs
@@ -61,6 +61,7 @@ use crate::constant::HARD_BREAK_PREFIX_SIZE_MIN;
use crate::event::{Event, Kind, Name};
use crate::tokenizer::Tokenizer;
use crate::util::slice::{Position, Slice};
+use alloc::vec;
/// Resolve whitespace.
pub fn resolve_whitespace(tokenizer: &mut Tokenizer, hard_break: bool, trim_whole: bool) {