forked from Ringrev/facebook-api-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
72 lines (55 loc) · 1.33 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
[package]
name = "facebook_api_rs"
version = "0.1.0"
description = "App Description"
categories = ["wasm"]
license = "MIT"
readme = "./README.md"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib","rlib"]
all-features = false
[dev-dependencies]
wasm-bindgen-test = "0.3.18"
[features]
default = ["reqwest"]
reqwest = ["dep:reqwest"]
web-sys = [ "dep:web-sys"]
[dependencies]
serde = { version = "1", features = ["derive","rc"] }
serde_json = "1.0"
async-trait = "0.1.50"
rand = "0.8.4"
urlencoding = "2.1.0"
#futures-util = "0.3.21"
chrono = { version = "0.4.6", features = ["serde", "wasmbind"] }
web-sys = {version = "0.3.40", optional = true,features = [
"File",
"Blob",
"FormData",
'Headers',
'Request',
'RequestInit',
'RequestMode',
'Response',
"XmlHttpRequest",
"XmlHttpRequestUpload",
"XmlHttpRequestEventTarget",
]}
http = "0.2.5"
url = { version = "2"}
thiserror = "1.0.30"
[dependencies.reqwest]
version = "0.11.8"
features = [ "gzip", "json","multipart","stream" ]
optional = true
[dependencies.http-types]
version = "2.10"
optional = true
[profile.release]
lto = true
opt-level = 'z'
codegen-units = 1
#[package.metadata.wasm-pack.profile.release]
#wasm-opt = ['-Os']