mirror of
https://github.com/deps-rs/deps.rs.git
synced 2024-11-23 18:56:30 +00:00
Compare commits
No commits in common. "cb9903a12b21b879d268155f779aa986bb24f4e3" and "87392c5f2e77e3a4a5a0a8473be3bd5c8d24ec73" have entirely different histories.
cb9903a12b
...
87392c5f2e
4 changed files with 680 additions and 807 deletions
1470
Cargo.lock
generated
1470
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -40,5 +40,5 @@ tokio = { version = "1.24.2", features = ["rt-multi-thread", "macros", "sync", "
|
||||||
toml = "0.8"
|
toml = "0.8"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
grass = { version = "0.13", default-features = false }
|
sass-rs = "0.2"
|
||||||
sha-1 = "0.10"
|
sha-1 = "0.10"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
FROM rust:bookworm as build
|
FROM rust:bookworm as build
|
||||||
|
|
||||||
COPY . /src
|
COPY . /src
|
||||||
RUN cargo install --path /src --locked
|
RUN cargo install --path /src
|
||||||
|
|
||||||
FROM debian:bookworm
|
FROM debian:bookworm
|
||||||
|
|
||||||
|
|
13
build.rs
13
build.rs
|
@ -1,3 +1,5 @@
|
||||||
|
extern crate sass_rs as sass;
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
@ -5,11 +7,12 @@ use std::path::Path;
|
||||||
use sha1::{Digest, Sha1};
|
use sha1::{Digest, Sha1};
|
||||||
|
|
||||||
fn build_style() -> String {
|
fn build_style() -> String {
|
||||||
grass::from_path(
|
let options = sass::Options {
|
||||||
"assets/styles/main.sass",
|
output_style: sass::OutputStyle::Compressed,
|
||||||
&grass::Options::default().style(grass::OutputStyle::Compressed),
|
..Default::default()
|
||||||
)
|
};
|
||||||
.expect("failed to compile style sheet")
|
|
||||||
|
sass::compile_file("./assets/styles/main.sass", options).expect("failed to compile style sheet")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
Loading…
Reference in a new issue