-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (66 loc) · 2.1 KB
/
Copy pathCargo.toml
File metadata and controls
72 lines (66 loc) · 2.1 KB
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
68
69
70
71
72
[package]
name = "oppai-iced"
version = "0.1.0"
authors = ["Evgeny Kurnevsky <kurnevsky@gmail.com>"]
license = "AGPL-3.0+"
description = "Open Points Artificial Intelligence"
edition = "2024"
default-run = "oppai-iced"
[dependencies]
futures.workspace = true
iced = { version = "0.14", features = ["canvas", "image"] }
rand.workspace = true
log.workspace = true
strum.workspace = true
clap = { workspace = true, features = ["cargo"] }
humantime.workspace = true
rfd = { version = "0.17", default-features = false, features = ["xdg-portal"] }
sgf-parse.workspace = true
postcard = { workspace = true, features = [ "use-std" ] }
oppai-field = { path = "../field" }
oppai-initial = { path = "../initial" }
oppai-patterns = { path = "../patterns" }
oppai-ai = { path = "../ai" }
oppai-ais = { path = "../ais", default-features = false }
oppai-sgf = { path = "../sgf" }
oppai-zero = { path = "../zero" }
oppai-zero-sgf = { path = "../zero-sgf" }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger.workspace = true
either.workspace = true
burn = { workspace = true }
oppai-zero-burn = { path = "../zero-burn", default-features = false }
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { version = "0.3", features = [
"Worker",
"MessageEvent",
"Url",
"Location",
"Blob",
"BlobPropertyBag",
"DedicatedWorkerGlobalScope"
] }
js-sys = "0.3"
wasm-bindgen = "0.2"
wasm-logger = "0.2"
console_error_panic_hook = "0.1"
serde = { workspace = true, features = ["derive"] }
serde-wasm-bindgen = "0.6"
oppai-field = { path = "../field", features = ["serde"] }
# for wasm_js feature
getrandom = { version = "0.4", features = ["wasm_js"] }
[features]
default = ["dsu", "ndarray", "vulkan"]
dsu = ["oppai-field/dsu", "oppai-ais/dsu"]
cuda = ["oppai-zero-burn/cuda", "burn/cuda"]
rocm = ["oppai-zero-burn/rocm", "burn/rocm"]
flex = ["oppai-zero-burn/flex", "burn/flex"]
ndarray = ["oppai-zero-burn/ndarray", "burn/ndarray"]
vulkan = ["oppai-zero-burn/vulkan", "burn/vulkan"]
webgpu = ["oppai-zero-burn/webgpu", "burn/webgpu"]
[[bin]]
name = "oppai-iced"
path = "src/main.rs"
[[bin]]
name = "worker"
path = "src/worker.rs"