css_forge
A robust and efficient CSS parsing library for Rust
🚀 Features
Selector Parsing
: Parse complex CSS selectors, including class, ID, and attribute selectors.Property Parsing
: Easily parse CSS properties and their values.Value Parsing
: Parse various CSS value types, including colors, lengths, etc.Error Handling
: Gracefully manage parsing errors such as invalid selectors and unexpected tokens.
📦 Installation
To use css_forge
, add the following to your Cargo.toml:
[]
= "0.1.0"
Usage
1. Basic Parsing Example:
Here's how you can parse a simple CSS snippet using css_forge:
use Parser;
use Stylesheet;
2. Handling Errors:
css_forge gracefully handles common errors during parsing:
use ;
👥 Contributing
Contributions are welcome! Feel free to open issues, submit pull requests, or fork the repository to make improvements.
📝 License
This library is open-source and available under the MIT LICENSE.
Happy styling with css_forge! 🎨🚀