-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
38 lines (33 loc) · 1.04 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
[package]
name = "webchat"
description = "WASM code in my web chat (I don't have a name for it yet)"
version = "0.1.1" # now this is independent of the version of the chat
edition = "2021"
authors = ["S.C. Lorentz <113468900+SCLorentz@users.noreply.github.com>"]
[dependencies]
getrandom = { version = "0.2", features = ["js"] }
wasm-bindgen = "0.2"
[dependencies.web-sys]
version = "0.3.4"
features = [
'Document',
'Element',
'HtmlElement',
'Node',
'Window',
]
[dependencies.uuid]
version = "1.10.0"
features = [
"v4", # Lets you generate random UUIDs
"fast-rng", # Use a faster (but still sufficiently random) RNG
"macro-diagnostics", # Enable better diagnostics for compile-time UUIDs
]
[lib]
crate-type = ["cdylib"]
name = "wasm" # The name of the target
path = "src/backend/wasm/lib.rs" # The source file of the target
[profile.dev]
opt-level = "z"
strip = true # Automatically strip symbols from the binary.
lto = true