Crates.io | simplecss |
lib.rs | simplecss |
version | 0.2.2 |
created_at | 2017-01-14 18:14:03.493091+00 |
updated_at | 2025-01-06 13:06:27.458973+00 |
description | A simple CSS 2 parser and selector. |
homepage | |
repository | https://github.com/linebender/simplecss |
max_upload_size | |
id | 8064 |
size | 98,436 |
This is not a browser-grade CSS parser. If you need one, use cssparser + selectors.
Since it's very simple we will start with limitations:
* { width: 5px }
you will get a width
property with a 5px
value as a string.\26
, is not supported.!important
parsing support.This version of SimpleCSS has been verified to compile with Rust 1.65 and later.
Future versions of SimpleCSS might increase the Rust version requirement. It will not be treated as a breaking change and as such can even happen with small patch releases.
As time has passed, some of SimpleCSS's dependencies could have released versions with a higher Rust requirement. If you encounter a compilation issue due to a dependency and don't want to upgrade your Rust toolchain, then you could downgrade the dependency.
# Use the problematic dependency's name and version
cargo update -p package_name --precise 0.1.1
Discussion of SimpleCSS development happens in the Linebender Zulip at https://xi.zulipchat.com/, specifically the #resvg channel. All public content can be read without logging in.
Licensed under either of
at your option.
Contributions are welcome by pull request. The Rust code of conduct applies. Please feel free to add your name to the AUTHORS file in any substantive pull request.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.