sass_rs/
options.rs

1#[derive(Debug, Clone, Copy, PartialEq)]
2/// See the [Sass docs](https://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style) 
3/// for examples of how each style looks.
4pub enum OutputStyle {
5    Nested,
6    Expanded,
7    Compact,
8    Compressed,
9}
10
11/// The user facing Options struct, where they can select the libsass
12/// options
13#[derive(Debug, PartialEq, Clone)]
14pub struct Options {
15    /// The output format of the final CSS style.
16    pub output_style: OutputStyle,
17    /// How many digits after the decimal will be allowed.
18    pub precision: usize,
19    /// `true` values enable Sass Indented Syntax for parsing the data string or file.
20    pub indented_syntax: bool,
21    /// An array of paths that LibSass can look in to attempt to resolve your @import declarations.
22    pub include_paths: Vec<String>,
23}
24
25impl Default for Options {
26    fn default() -> Self {
27        Options {
28            output_style: OutputStyle::Nested,
29            precision: 5,
30            indented_syntax: false,
31            include_paths: vec![],
32        }
33    }
34}