-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(blurhash): port to rust and webassembly
- Loading branch information
1 parent
a475c8f
commit d469b24
Showing
12 changed files
with
4,186 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
.DS_Store | ||
*.log | ||
*.log.* | ||
dist | ||
*.tgz | ||
index.d.ts | ||
index.js | ||
node_modules | ||
pkg | ||
target |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[package] | ||
name = "blurhash-to-css" | ||
version = "0.1.0" | ||
authors = ["Jamie Mason <[email protected]>"] | ||
edition = "2018" | ||
|
||
[lib] | ||
crate-type = ["cdylib"] | ||
|
||
[dependencies.web-sys] | ||
version = "0.3" | ||
features = [ | ||
"console", | ||
] | ||
|
||
[dependencies] | ||
blurhash = "0.1.1" | ||
console_error_panic_hook = "0.1.6" | ||
# this disables rayon in the jpeg decoder, otherwise it breaks in WASM | ||
image = { version = "0.21.0", default-features = false, features = ["jpeg"] } | ||
serde = { version = "1.0.123", features = ["derive"] } | ||
serde_json = "1.0.62" | ||
wasm-bindgen = "=0.2.61" |
Oops, something went wrong.