Skip to content

Rust library wrapper for libsass (sass-sys).

License

Notifications You must be signed in to change notification settings

tempbottle/sass-rs

 
 

Repository files navigation

sass-rs

Build Status Windows build status

Api documentation on docs.rs

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

How to use

sass-rs exposes 2 functions that are self-explanatory:

  • compile_file(path: &str, options: Options)
  • compile_file<P: AsRef<Path>>(path: P, options: Options)

Most of the time, you should be able to use the Options::default() but you can change the output style that way for example:

use sass_rs::{Options, OutputStyle};

let mut options = Options::default();
options.output_style = OutputStyle::Compressed;

You can see an example in the examples directory, which can be ran with the following command: cargo run --example compile_sass examples/simple.scss

Not supported yet

Importers and functions are not supported yet.

About

Rust library wrapper for libsass (sass-sys).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%