Add `std` default feature
Only implement for String if `std` is enabled
Replace std Vec with heapless
This commit is contained in:
Dániel Buga
2020-10-05 11:56:07 +02:00
parent 71a582b31f
commit 2925f56c1f
8 changed files with 149 additions and 21 deletions

View File

@@ -13,6 +13,7 @@ impl AnsiParser for str {
}
}
#[cfg(any(feature = "std", test))]
impl AnsiParser for String {
fn ansi_parse(&self) -> AnsiParseIterator<'_> {
AnsiParseIterator {