Skip to content

Commit

Permalink
improvement: More explicit zip features
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomaz-Vieira committed Sep 24, 2024
1 parent 7c64c0a commit 4c90fbb
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ image = {version = "0.24.8", features = ["png"]}
iso8601-timestamp = "0.2.17"
ndarray = "0.15.6"
ndarray-npy = "0.8.1"
zip = {version = "2.1"}
zip = {version = "2.2", default-features = false}
serde = "1.0.210"
serde_json = "1.0.128"
serde_yaml = "0.9.34+deprecated"
Expand All @@ -17,6 +17,7 @@ url = "2.5.2"
uuid = "1.10.0"



# FIXME: this is from the egui example app
[profile.release]
opt-level = 2 # fast and small wasm
Expand Down
12 changes: 11 additions & 1 deletion bioimg_gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ndarray-npy = "0.8.1"
paste = "1.0.14"
poll-promise = "0.3.0"
serde_json = "1.0.116"
zip = { workspace = true }
zip = { workspace = true, default-features = true }
uuid = { version = "1.8.0", features = ["v4"] }
bioimg_codegen = { path = "../bioimg_codegen" }
bson = "2.11.0"
Expand All @@ -43,3 +43,13 @@ env_logger = "0.10"
# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4"
zip = {workspace = true, default-features = false, features=[
"aes-crypto",
# "bzip2",
"deflate",
"deflate64",
"lzma",
"time",
"xz",
"zstd",
]}
15 changes: 14 additions & 1 deletion bioimg_runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,24 @@ paste = "1.0.14"
thiserror = "1.0.57"
bioimg_spec = { path = "../bioimg_spec" }
image.workspace = true
zip = { workspace = true }
zip = { workspace = true, default-features = true }
serde_json = "1.0.114"
serde = "1.0.197"
uuid = { version = "1.7.0", features = ["v4"] }
iso8601-timestamp = { workspace = true }
serde_yaml = "0.9.32"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
ureq = "2.9.7"

[target.'cfg(target_arch = "wasm32")'.dependencies]
zip = {workspace = true, default-features = false, features=[
"aes-crypto",
# "bzip2",
"deflate",
"deflate64",
"lzma",
"time",
"xz",
"zstd",
]}

0 comments on commit 4c90fbb

Please sign in to comment.