m4rw3r / chomp

A fast monadic-style parser combinator designed to work on stable Rust.
Apache License 2.0
243 stars 19 forks source link

Support for `no_std` #54

Closed m4rw3r closed 7 years ago

m4rw3r commented 8 years ago

Support for using Chomp without Rust's standard library, instead relying solely on the core module.

m4rw3r commented 8 years ago

Decided to skip the buffer module for now, #57 should hopefully enable at least limited helper functionality for buffers without requiring std.

m4rw3r commented 7 years ago

Does not play well with examples since they require std. And cargo doesn't seem to have any feature which enables examples to depend on a feature defined in Cargo.toml. Temporarily renaming the examples/ directory when running cargo test works but is suboptimal, and adding feature-tests in examples is also a bad idea since they require certain features to function and #[cfg(feature="std")] all over the place would be distracting and not representative of the normal usage of Chomp.

m4rw3r commented 7 years ago

When https://github.com/rust-lang/cargo/issues/1570 has been resolved we can also add --no-default-features to automatic tests. Until then manual testing is required.