-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
62 lines (52 loc) · 1.63 KB
/
Cargo.toml
File metadata and controls
62 lines (52 loc) · 1.63 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
[package]
name = "rust_multibackend_app"
version = "0.1.0"
edition = "2021"
# wasm-bindgenがライブラリとしてクレートをコンパイルするために必要
[lib]
crate-type = ["cdylib", "rlib"]
[features]
# デフォルトでgui featureを有効にする
default = []
gui = ["dep:minifb"]
tui = ["dep:crossterm"]
wasm = [
"dep:wasm-bindgen",
"dep:web-sys",
"dep:console_error_panic_hook",
"getrandom/js"
]
uefi = ["dep:uefi", "dep:log", "dep:core_maths"]
[dependencies]
ab_glyph = { version = "0.2.31", default-features = false, features = ["libm"] }
# バックエンドごとのオプショナルな依存関係
minifb = { version = "0.28.0", optional = true }
crossterm = { version = "0.29.0", optional = true }
core_maths = { version = "0.1.1", optional = true }
# WASM用のオプショナルな依存関係
wasm-bindgen = { version = "0.2.87", optional = true }
console_error_panic_hook = { version = "0.1.7", optional = true }
getrandom = { version = "0.2", optional = true }
# UEFI用のオプショナルな依存関係
uefi = { version = "0.35.0", optional = true, features = ["alloc","panic_handler", "logger" ] }
log = { version = "0.4", optional = true }
[dependencies.web-sys]
version = "0.3.64"
optional = true
features = [
'Document',
'Window',
'Element',
'HtmlCanvasElement',
'CanvasRenderingContext2d',
'ImageData',
'KeyboardEvent',
'Blob',
'Url',
]
# UEFIターゲット用のリリースプロファイル設定
# パニックした際にスタックを巻き戻すのではなく、即座に停止させる
[profile.release]
panic = "abort"
[profile.dev]
panic = "abort"