-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
75 lines (66 loc) · 1.81 KB
/
Copy pathCargo.toml
File metadata and controls
75 lines (66 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[workspace]
members = [".", "proc-macro", "demo", "test"]
[workspace.package]
description = "Dispatching tasks to a WebWorker without `SharedArrayBuffers`."
authors = ["Pascal Berrang <rust@paberr.net>"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/paberr/wasmworker"
repository = "https://github.com/paberr/wasmworker"
readme = "README.md"
keywords = ["webworker", "parallelism", "wasm"]
[workspace.dependencies]
wasmworker = { version = "0.4", path = ".", default-features = false, features = ["iter-ext", "macros"] }
wasmworker-proc-macro = { version = "0.3", path = "proc-macro" }
[package]
name = "wasmworker"
version = "0.4.0"
edition = "2021"
description.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
readme.workspace = true
keywords.workspace = true
[dependencies]
futures = "0.3"
js-sys = { version = "0.3" }
send_wrapper = "0.6"
serde = { version = "1.0", features = ["derive"] }
serde_bytes = "0.11"
serde-wasm-bindgen = "0.6"
thiserror = "2.0"
tokio = { version = "1.4", features = ["sync"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
log = "0.4"
postcard = { version = "1.1", features = ["alloc"], optional = true }
pot = { version = "3.0.1", optional = true }
[dependencies.web-sys]
features = [
"MessageEvent",
"Window",
"Location",
"Worker",
"WorkerOptions",
"WorkerType",
"Blob",
"BlobPropertyBag",
"Url",
"Navigator",
"MessagePort",
"MessageChannel",
"Response",
]
version = "0.3"
[dev-dependencies]
wasmworker-proc-macro = { workspace = true }
[features]
default = ["iter-ext", "codec-postcard"]
iter-ext = []
codec-postcard = ["dep:postcard"]
codec-pot = ["dep:pot"]
macros = ["wasmworker-proc-macro"]
[dependencies.wasmworker-proc-macro]
workspace = true
optional = true