-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
58 lines (49 loc) · 1.22 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
[package]
name = "website"
version = "0.1.0"
authors = ["Isaac Clayton <slightknack> (slightknack@gmail.com)"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["console_error_panic_hook"]
[dependencies]
# wasm
cfg-if = "0.1.2"
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
wasm-bindgen-futures = "0.4"
console_error_panic_hook = { version = "0.1", optional = true }
wee_alloc = { version = "0.4", optional = true }
# rendering
pulldown-cmark = { version = "0.7", default-features = false }
sha2 = "0.9" # content addressing
# I'm not using scrypt atm due to WASM incompatibility.
# If this changes in the future, I might migrate to it.
scrypt = "0.3" # authentication
getrandom = { version = "0.1", features = ["wasm-bindgen"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
url = "1.7"
ramhorns = "0.9"
time = "0.2"
# js integration
js-sys = "0.3"
futures = "0.3"
[dependencies.web-sys]
version = "0.3"
features = [
'FetchEvent',
'FormData',
'ReadableStream',
'Request',
'ResponseInit',
'Response',
'Headers',
]
[dependencies.cookie]
version = "0.14"
features = ["secure"]
[dev-dependencies]
wasm-bindgen-test = "0.2"
[profile.release]
opt-level = "s"