untitaker / html5gum

A WHATWG-compliant HTML5 tokenizer and tag soup parser
MIT License
148 stars 11 forks source link

no_std #6

Open untitaker opened 2 years ago

untitaker commented 2 years ago

Investigate what could be done to make this no_std. After #4 we got rid of most allocations altogether, and therefore the String type.

TheTechRobo commented 1 year ago

no_std can still use types like String through alloc. It's not the most compatible, as it requires a global allocator, but it is much better than not supporting no_std at all.

Cf. https://doc.rust-lang.org/alloc/

There may be some non-alloc compatible types in here, though, I haven't investigated yet.