Skip to content

Commit bfbf80b

Browse files
committed
Adding node.js bindings
1 parent 31b5a6a commit bfbf80b

3 files changed

Lines changed: 10 additions & 13 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
workspace = { members = ["app", "wasm", "app/accelerate", "speedtest", "pic-scale-py", "pic-scale-js"], exclude = ["picscale", "fuzz"] }
1+
workspace = { members = ["app", "wasm", "app/accelerate", "speedtest"], exclude = ["picscale", "fuzz", "pic-scale-py", "pic-scale-js"] }
22

33
[package]
44
name = "pic-scale"
@@ -49,13 +49,4 @@ sve = []
4949
# To build locally:
5050
# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --open
5151
all-features = true
52-
rustdoc-args = ["--cfg", "docsrs"]
53-
54-
[profile.release]
55-
opt-level = 3
56-
lto = "fat"
57-
codegen-units = 1
58-
strip = "symbols"
59-
60-
[package.metadata.wasm-pack.profile.release]
61-
wasm-opt = ["-O", "--enable-simd", "--enable-bulk-memory", "--enable-nontrapping-float-to-int"]
52+
rustdoc-args = ["--cfg", "docsrs"]

pic-scale-js/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ crate-type = ["cdylib"]
1818

1919
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.libheif-rs]
2020
version = "2.7.0"
21-
features = ["v1_21"]
21+
features = ["v1_21", "embedded-libheif"]
2222
default-features = false
2323

2424
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.yuv]

pic-scale-py/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,10 @@ sse = ["pic-scale/sse"]
3535
# Allows to use ARM i8mm when available
3636
nightly_i8mm = ["pic-scale/nightly_i8mm"]
3737
# Allows use nightly SVE2
38-
sve = ["pic-scale/sve"]
38+
sve = ["pic-scale/sve"]
39+
40+
[profile.release]
41+
opt-level = 3
42+
lto = "fat"
43+
codegen-units = 1
44+
strip = "symbols"

0 commit comments

Comments
 (0)