-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
74 lines (65 loc) · 1.76 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
[package]
name = "rust-gb"
version = "0.1.0-alpha.2"
edition = "2021"
authors = ["zlfn <ung@zlfn.space>"]
license = "MIT AND GPL-2.0-with-GCC-exception"
readme = "README.md"
description = """
Compile Rust code to Nintendo GameBoy
"""
keywords = ["gameboy", "retro", "cross-compiler"]
repository = "https://github.com/zlfn/rust-gb"
exclude = [
"ext/*",
"media/*",
"examples/*"
]
# rust-gb library
[lib]
name = "gb"
path = "src/lib/lib.rs"
# rust-gb compiler
[[bin]]
name = "cargo-build-rom"
path = "src/bin/build-rom/main.rs"
required-features = ["compiler"]
[dependencies]
# Binary dependencies
clap = { version = "4.5.17", features = ["derive", "cargo"], optional = true }
colored = { version = "2.1.0", optional = true }
tree-sitter = { version = "0.23.0", optional = true }
tree-sitter-c = { version = "0.23.0", optional = true }
include_dir = { version = "0.7.4", optional = true }
# Library dependencies
document-features = "0.2"
voladdress = "1.4.0"
[features]
#! ### Library features
## GameBoy Color feature
##
## This feature enables GameBoy Color only features.
## Such as VRAM bank or color palette.
##
## Since the compiler does not yet support compilation in to GameBoy Color ROM,
## this will not actually work.
color = []
## Prototype feature
##
## This feature enables the prototype APIs of Rust-GB.
## Because it's a prototype, it won't work properly.
prototype = []
#! ### Binary features
## Feature for compiler
##
## This feature needed to enabled when you install Rust-GB compiler with `cargo install`.
##
## DO NOT enable this feature in your GameBoy ROM package. It will cause compile error.
## This is because the Rust-GB compiler cannot be compiled for ATMega328 target.
compiler = [
"clap",
"colored",
"tree-sitter",
"tree-sitter-c",
"include_dir"
]