-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
63 lines (58 loc) · 1.56 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
[package]
name = "uni-app"
version = "0.5.0"
authors = [
"Edwin Cheng <edwin0cheng@gmail.com>",
"jice <jice.nospam@gmail.com>"
]
description = "native/wasm compatibility layer for window creation, input and filesystem"
license = "MIT"
documentation = "https://docs.rs/uni-app"
repository = "https://github.com/unrust/uni-app"
keywords = ["windowing", "input", "filesystem", "wasm"]
edition = "2021"
exclude = ["www/*"]
[lib]
crate-type = ["cdylib", "rlib"]
[features]
# enable this on native targets to be able to read data from URL with Filesystem::open
http = ["reqwest", "bytes"]
[dependencies]
[target.wasm32-unknown-unknown.dependencies]
wasm-bindgen = "0.2.83"
js-sys = "0.3.60"
web-sys = { version = "0.3.60", features = [
"HtmlCanvasElement",
"Document",
"HtmlElement",
"Event",
"MouseEvent",
"KeyboardEvent",
"DragEvent",
"ProgressEvent",
"EventTarget",
"DataTransfer",
"File",
"FileReader",
"FileList",
"DomRect",
"Window",
"Performance",
"Location",
"console",
"Element",
"CssStyleDeclaration",
"XmlHttpRequest",
"XmlHttpRequestResponseType",
] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
glutin = "0.29.1"
time = "0.1.44"
# fix for missing features in rust 2021 (https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html)
winapi = { version = "0.3.9", features = [
"winerror",
"winbase",
"errhandlingapi"
] }
reqwest = { version = "0.11", optional = true, features = ["blocking"] }
bytes = { version = "1.*", optional = true }