Skip to content

Commit

Permalink
feat(blurhash): port to rust and webassembly
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Feb 6, 2021
1 parent a475c8f commit d469b24
Show file tree
Hide file tree
Showing 12 changed files with 4,186 additions and 432 deletions.
6 changes: 5 additions & 1 deletion .gitignore
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
293 changes: 293 additions & 0 deletions Cargo.lock

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

23 changes: 23 additions & 0 deletions Cargo.toml
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"
Loading

0 comments on commit d469b24

Please sign in to comment.