Skip to content

Commit

Permalink
Replace sass-rs with grass (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobarbolini authored Nov 26, 2023
1 parent 69ed102 commit 1e23f5e
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 38 deletions.
201 changes: 172 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ tokio = { version = "1.24.2", features = ["rt-multi-thread", "macros", "sync", "
toml = "0.8"

[build-dependencies]
sass-rs = "0.2"
grass = { version = "0.13", default-features = false }
sha-1 = "0.10"
13 changes: 5 additions & 8 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
extern crate sass_rs as sass;

use std::env;
use std::fs;
use std::path::Path;

use sha1::{Digest, Sha1};

fn build_style() -> String {
let options = sass::Options {
output_style: sass::OutputStyle::Compressed,
..Default::default()
};

sass::compile_file("./assets/styles/main.sass", options).expect("failed to compile style sheet")
grass::from_path(
"assets/styles/main.sass",
&grass::Options::default().style(grass::OutputStyle::Compressed),
)
.expect("failed to compile style sheet")
}

fn main() {
Expand Down

0 comments on commit 1e23f5e

Please sign in to comment.