-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
121 lines (110 loc) · 3.17 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[package]
name = "chiptrack"
version = "0.5.0"
authors = ["Jocelyn Turcotte <turcotte.j@gmail.com>"]
edition = "2021"
## wasm build stuff
## Uncomment and build with: wasm-pack build --release --target web -- --no-default-features --features=desktop_web
# [lib]
# crate-type = ["cdylib"]
# path = "src/main.rs"
# [target.'cfg(target_arch = "wasm32")'.dependencies]
# wasm-bindgen = { version = "0.2" }
# wasm-bindgen-futures = { version = "0.4" }
# js-sys = { version = "0.3" }
# web-sys = { version = "0.3", features = [
# "console",
# "Location",
# "UrlSearchParams",
# ] }
# console_error_panic_hook = "0.1"
# [patch.crates-io]
# blip_buf = { path = "../blip_buf-rs" }
[features]
default = ["desktop_native"]
std = ["slint/std"]
desktop = [
"std",
"slint/backend-winit",
"cpal",
"rboy",
"once_cell",
"serde_json",
"wat",
"notify",
"midir",
"midly",
"url",
"ehttp",
"pulldown-cmark",
"regex",
]
desktop_native = [
"desktop",
"slint/renderer-winit-skia",
"wamr-sys/std",
"native-dialog",
]
desktop_web = ["desktop", "slint/renderer-winit-femtovg"]
gba = [
"dep:gba",
"voladdress",
"wamr-sys",
"libm",
"slint/unsafe-single-threaded",
"i-slint-core/unsafe-single-threaded",
"slint/libm",
"embedded-alloc",
"critical-section/restore-state-bool",
]
[build-dependencies]
winresource = "0.1"
[build-dependencies.slint-build]
version = "1.8.0"
[dependencies.slint]
version = "1.8.0"
default-features = false
features = ["compat-1-0"]
[dependencies.i-slint-core]
version = "=1.8.0"
default-features = false
optional = true
[dependencies.rboy]
git = "https://github.com/jturcotte/rboy.git"
rev = "e9c0075d3e6b20419c011b271b4f70a968291678"
# Use as a lib, features are used by its bin's main.rs only.
default-features = false
optional = true
[dependencies.wamr-sys]
git = "https://github.com/jturcotte/wamr-sys.git"
rev = "73efa0995874882bef84f132551f8216c826d391"
default-features = false
optional = true
[dependencies]
cpal = { version = "0.15", features = ["wasm-bindgen"], optional = true }
once_cell = { version = "1", optional = true }
serde = { version = "1", default-features = false, features = ["derive"] }
serde_json = { version = "1", optional = true }
postcard = { version = "1", default-features = false, features = ["alloc"] }
wat = { version = "1", optional = true }
notify = { version = "4", optional = true }
midir = { version = "0.9", optional = true }
midly = { version = "0.5", optional = true }
url = { version = "2", optional = true }
ehttp = { version = "0.2", optional = true }
pulldown-cmark = { version = "0.9", optional = true }
regex = { version = "1", optional = true }
native-dialog = { version = "0.6", optional = true }
gba = { version = "0.13", optional = true }
voladdress = { version = "1", optional = true }
libm = { version = "0.2", optional = true }
critical-section = { version = "1", optional = true }
embedded-alloc = { version = "0.5", optional = true }
# Build for macOS using: cargo bundle --release
[package.metadata.bundle]
name = "Chiptrack"
icon = ["pkg/128x128.png", "pkg/256x256.png"]
[package.metadata.winresource]
ProductName = "Chiptrack"
# [profile.release]
# debug = true