Skip to content

Commit 75d8697

Browse files
authored
Refactor: remove async runtime and utils (#1)
* feat: version request * chore: update embedded version * update * fix: dead lock, protobuf decode * feat: error * feat: logger and importer * chore: docs and fix build.rs
1 parent 24ab82e commit 75d8697

34 files changed

+1149
-2512
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ Cargo.lock
88

99
# These are backup files generated by rustfmt
1010
**/*.rs.bk
11+
12+
# Local sass
13+
/sass_embedded
14+
15+
.DS_Store

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "examples/bootstrap5/bootstrap"]
2+
path = examples/bootstrap5/bootstrap
3+
url = https://github.com/twbs/bootstrap.git

Cargo.toml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,11 @@ edition = "2021"
66
[dependencies]
77
prost = "0.10"
88
url = "2"
9-
async-trait = "0.1"
10-
futures = "0.3"
11-
tokio = { version = "1", features = [
12-
"io-util",
13-
"process",
14-
"macros",
15-
"rt",
16-
"rt-multi-thread",
17-
] }
18-
tokio-stream = "0.1"
19-
tokio-util = { version = "0.7", features = ["io"] }
209
supports-color = "1"
10+
parking_lot = "0.12"
11+
dashmap = "5"
12+
crossbeam-channel = "0.5"
2113

22-
[dev-dependencies]
23-
tokio = { version = "1", features = [
24-
"io-util",
25-
"process",
26-
"macros",
27-
"rt",
28-
"rt-multi-thread",
29-
] }
3014

3115
[build-dependencies]
3216
prost-build = "0.10"

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
# sass-embedded-host-rust
2+
3+
🦀 A Rust library that will communicate with [Embedded Dart Sass](https://github.com/sass/dart-sass-embedded) using the [Embedded Sass Protocol](https://github.com/sass/embedded-protocol).
4+
5+
## Contributing
6+
7+
1. Download the [[email protected]](https://github.com/sass/dart-sass-embedded/releases/tag/1.54.0) and unpack it, the exe path should be `sass_embedded/dart-sass-embedded`.
8+
2. Install the [Protocol Buffer Compiler](https://grpc.io/docs/protoc-installation/).
9+
3. Find issues and welcome PRs.

build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ fn main() {
66
println!("cargo:rerun-if-changed=build.rs");
77
println!("cargo:rerun-if-changed=embedded_sass.proto");
88
Config::new()
9-
.out_dir("src/pb")
9+
.out_dir("src/protocol")
1010
.compile_protos(&["embedded_sass.proto"], &["."])
1111
.unwrap();
1212
Command::new("rustfmt")
13-
.arg("./src/pb/sass_embedded_protocol.rs")
13+
.arg("./src/protocol/sass.embedded_protocol.rs")
1414
.spawn()
1515
.unwrap();
1616
}

dart-sass-embedded/dart-sass-embedded

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)