~starkingdoms/starkingdoms

ref: 08c1b75115f33a9d7d01a1cf9d13dc0e402e39b1 starkingdoms/client/Cargo.toml -rw-r--r-- 1.4 KiB
08c1b751 — c0repwn3r fix build script for client 2 years ago
                                                                                
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
[package]
name = "starkingdoms-client"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
crate-type = ["cdylib"]

[dependencies]
wasm-bindgen = "0.2"
js-sys = "0.3"
console_log = { version = "1", features = ["color"] }
log = "0.4"
futures = { version = "0.3", default-features = false }
wasm-bindgen-futures = "0.4"
url = "2.3"
starkingdoms-protocol = { version = "0.1.0", path = "../protocol" }
rmp-serde = "1.1"
ws_stream_wasm = "0.7"
serde = { version = "1", features = ["derive"] }
lazy_static = "1.4"
markdown = "1.0.0-alpha.7" # DO NOT DOWNGRADE
async-recursion = "1"
console_error_panic_hook = "0.1"
async-trait = "0.1.68"
image = { version = "0.24.6", optional = true }
ron = { version = "0.8", optional = true }
base64 = { version = "0.21.0", optional = true }

[dependencies.web-sys]
version = "0.3.4"
features = [
    'Document',
    'Element',
    'HtmlCanvasElement',
    'Window',
    'CanvasRenderingContext2d',
    'HtmlImageElement',
    'SvgImageElement',
    'HtmlVideoElement',
    'ImageBitmap',
    'OffscreenCanvas',
    'VideoFrame',
    'CanvasWindingRule',
    'Path2d',
    'CanvasPattern',
    'CanvasGradient',
    'HitRegionOptions',
    'ImageData',
    'TextMetrics',
    'DomMatrix'
]

[features]
default = ['textures-slow']
textures-slow = []
textures-fast = ['image', 'ron', 'base64']