#sass #ffi #scss #bindings #higher-level

unmaintained bin+lib sass-rs

Higher level binding for the Sass library

22 releases

Uses old Rust 2015

0.2.2 May 22, 2019
0.2.1 Dec 29, 2017
0.2.0 Jul 24, 2017
0.0.18 Dec 20, 2015
0.0.9 Mar 28, 2015

#11 in #scss

Download history 219/week @ 2023-11-24 157/week @ 2023-12-01 261/week @ 2023-12-08 149/week @ 2023-12-15 176/week @ 2023-12-22 154/week @ 2023-12-29 178/week @ 2024-01-05 245/week @ 2024-01-12 226/week @ 2024-01-19 191/week @ 2024-01-26 99/week @ 2024-02-02 176/week @ 2024-02-09 173/week @ 2024-02-16 254/week @ 2024-02-23 195/week @ 2024-03-01 118/week @ 2024-03-08

768 downloads per month
Used in 11 crates

MIT license

1MB
25K SLoC

C++ 23K SLoC // 0.1% comments Rust 1.5K SLoC // 0.0% comments Visual Studio Project 193 SLoC M4 111 SLoC // 0.2% comments C 106 SLoC // 0.2% comments Automake 105 SLoC Bitbake 65 SLoC // 0.1% comments Perl 55 SLoC // 0.4% comments RPM Specfile 42 SLoC Visual Studio Solution 38 SLoC Shell 9 SLoC

sass-rs

Build Status Windows build status

Api documentation on docs.rs

This crate is a wrapper around libsass, currently tracking v3.5.5.

To build this crate on Windows, you will need to have Visual Studio installed.

You can control the number of CPU used to build libsass by setting the MAKE_LIBSASS_JOBS variable to the desired value. It defaults to the number of CPUs in the machine.

Binary

This package also provides a small binary that can be cargo installed to convert Sass files and print the output CSS. Example usage:

$ sass-rs < source/style.scss  # for SCSS
$ sass-rs --sass < source/style.sass  # for SASS
$ sass-rs --sass --expanded < source/style.sass
$ sass-rs --sass --compact < source/style.sass
$ sass-rs --sass --compressed < source/style.sass
$ sass-rs --sass --compressed < source/style.sass > build/style.css

This is a small added feature that isn't meant to fulfill every usecases. If you want to have something added to the binary, do a PR as I will not implement it myself.

Not supported yet

Importers and functions are not supported yet.

Dependencies