rust-cssparser icon indicating copy to clipboard operation
rust-cssparser copied to clipboard

Make crate no_std compatible

Open olanod opened this issue 1 year ago • 5 comments

Make crate no_std while keeping it backwards compatible with a default std feature enabled(only used to impl Error for ParseError).

olanod avatar May 31 '24 10:05 olanod

It seems that the changes are not complete. I still find some deps need changes or default-features = false .

LastLeaf avatar Jun 07 '24 10:06 LastLeaf

I tested it with cargo build --no-default-features and cargo test with default features on purpose to use std. Is that what you tried?

olanod avatar Jun 07 '24 12:06 olanod

I tested it with cargo build --no-default-features and cargo test with default features on purpose to use std. Is that what you tried?

I built with --target armv7a-none-eabi (which does not have a std) and fixed some of the compilation errors. You can take a look at my branch. It also requires a dep change.

LastLeaf avatar Jun 07 '24 15:06 LastLeaf

Merged your branch as your PR for the dependency was merged and released.

olanod avatar Jun 10 '24 10:06 olanod

More changes are needed in the cssparser-color crate. My branch has been updated.

LastLeaf avatar Jun 17 '24 13:06 LastLeaf