#sass #css #web #scss

rsass

Sass implementation in pure rust (not complete yet)

50 releases (27 breaking)

0.28.8 Jan 1, 2024
0.28.6 Nov 12, 2023
0.28.2 Aug 3, 2023
0.28.0 Jul 9, 2023
0.1.6 Mar 5, 2017

#2 in #scss

Download history 257/week @ 2023-12-23 429/week @ 2023-12-30 499/week @ 2024-01-06 639/week @ 2024-01-13 363/week @ 2024-01-20 654/week @ 2024-01-27 360/week @ 2024-02-03 315/week @ 2024-02-10 281/week @ 2024-02-17 512/week @ 2024-02-24 454/week @ 2024-03-02 399/week @ 2024-03-09 436/week @ 2024-03-16 435/week @ 2024-03-23 1017/week @ 2024-03-30 459/week @ 2024-04-06

2,383 downloads per month
Used in 27 crates (18 directly)

MIT/Apache

655KB
18K SLoC

rsass

Sass reimplemented in rust with nom. The "r" in the name might stand for the Rust programming language, for "re-implemented", or possibly for my name Rasmus.

This is the rsass library crate. To use it, add rsass to your dependencies in a rust project.

cargo add rsass

Crate docs Github build

Sass language and implementation status

The sass language is defined in its reference doc. This implementation is incomplete but getting there, if slowly.

Progress: 5565 of 7637 tests passed.

If you need complete sass support, you'll need to call dart sass. Another alternative is grass which is another incomplete pure rust implementation. That said, this implementation has reached a version where I find it usable for my personal projects, and the number of working tests are improving.

Contributing

Welcome! The first step in any contribution is probably to either try to use the crate or to read some of the documentation. When you do, you might find something broken, not yet implemented, or just plain incomprehensible. If so, please see if there is an issue matching the problem or file a new one.

If you contribute code through a pull request, github will automatically check that the code compiles and passes its tests with all required versions of rust, and that the code is properly formatted according to rustfmt. Hopefully, I will then review the code, and either ask you for changes or merge it. This is a hobby project, so please excuse if the review is delayed.

I, the rsass maintainer, will do my best to follow both the Sass Community Guidelines and the Rust Code of Conduct, and I ask you to do the same.

Dependencies

~2MB
~39K SLoC