-
Notifications
You must be signed in to change notification settings - Fork 10
/
Cargo.toml
72 lines (66 loc) · 1.73 KB
/
Cargo.toml
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
[package]
name = "wasm-streams"
version = "0.4.2"
authors = ["Mattias Buelens <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/MattiasBuelens/wasm-streams/"
description = """
Bridging between web streams and Rust streams using WebAssembly
"""
exclude = [
".github/"
]
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
js-sys = "^0.3.72"
wasm-bindgen = "0.2.95"
wasm-bindgen-futures = "^0.4.45"
futures-util = { version = "^0.3.31", features = ["io", "sink"] }
[dependencies.web-sys]
version = "^0.3.72"
features = [
"AbortSignal",
"QueuingStrategy",
"ReadableStream",
"ReadableStreamType",
"ReadableWritablePair",
"ReadableStreamByobReader",
"ReadableStreamReaderMode",
"ReadableStreamReadResult",
"ReadableStreamByobRequest",
"ReadableStreamDefaultReader",
"ReadableByteStreamController",
"ReadableStreamGetReaderOptions",
"ReadableStreamDefaultController",
"StreamPipeOptions",
"TransformStream",
"TransformStreamDefaultController",
"Transformer",
"UnderlyingSink",
"UnderlyingSource",
"WritableStream",
"WritableStreamDefaultController",
"WritableStreamDefaultWriter",
]
[dev-dependencies]
wasm-bindgen-test = "0.3.45"
tokio = { version = "^1", features = ["macros", "rt"] }
pin-project = "^1"
gloo-timers = { version = "^0.3.0", features = ["futures"] }
[dev-dependencies.web-sys]
version = "^0.3.72"
features = [
"console",
"AbortSignal",
"ErrorEvent",
"PromiseRejectionEvent",
"Response",
"ReadableStream",
"Window",
]
[package.metadata.docs.rs]
# https://blog.rust-lang.org/2020/03/15/docs-rs-opt-into-fewer-targets.html
targets = ["x86_64-unknown-linux-gnu"]