Compare commits

..

No commits in common. "cb9903a12b21b879d268155f779aa986bb24f4e3" and "87392c5f2e77e3a4a5a0a8473be3bd5c8d24ec73" have entirely different histories.

4 changed files with 680 additions and 807 deletions

1470
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -40,5 +40,5 @@ tokio = { version = "1.24.2", features = ["rt-multi-thread", "macros", "sync", "
toml = "0.8"
[build-dependencies]
grass = { version = "0.13", default-features = false }
sass-rs = "0.2"
sha-1 = "0.10"

View file

@ -1,7 +1,7 @@
FROM rust:bookworm as build
COPY . /src
RUN cargo install --path /src --locked
RUN cargo install --path /src
FROM debian:bookworm

View file

@ -1,3 +1,5 @@
extern crate sass_rs as sass;
use std::env;
use std::fs;
use std::path::Path;
@ -5,11 +7,12 @@ use std::path::Path;
use sha1::{Digest, Sha1};
fn build_style() -> String {
grass::from_path(
"assets/styles/main.sass",
&grass::Options::default().style(grass::OutputStyle::Compressed),
)
.expect("failed to compile style sheet")
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")
}
fn main() {