-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml.liquid
51 lines (43 loc) · 2.33 KB
/
Cargo.toml.liquid
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
[package]
name = "{{project-name}}"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
asr = { git = "https://github.com/LiveSplit/asr", features = [
{% if std_layer == "core" %}# {% endif %}"alloc", # Working with allocations.
{% unless has_settings %}# {% endunless %}"derive", # Defining your own settings structs, converting endianness, and binding to .NET classes.
# "flags", # Working with bit flags.
# "float-vars", # Setting floating point variables.
# "float-vars-small", # Setting floating point variables (small binary size).
# "integer-vars", # Setting integer variables.
# "signature", # Scanning signatures.
{% if use_wasi == false or std_layer == "std" %}# {% endif %}"wasi-no-std", # Support for no_std on WASI.
{% unless platform == "Unity" %}# {% endunless %}"unity", # Accessing games using the Unity engine.
{% unless platform == "Game Boy Advance" %}# {% endunless %}"gba", # Accessing Game Boy Advance emulators.
{% unless platform == "GameCube" %}# {% endunless %}"gcn", # Accessing GameCube emulators.
{% unless platform == "SEGA Genesis" %}# {% endunless %}"genesis", # Accessing SEGA Genesis emulators.
{% unless platform == "PlayStation 1" %}# {% endunless %}"ps1", # Accessing PlayStation 1 emulators.
{% unless platform == "PlayStation 2" %}# {% endunless %}"ps2", # Accessing PlayStation 2 emulators.
{% unless platform == "SEGA Master System / GameGear" %}# {% endunless %}"sms", # Accessing SEGA Master System / GameGear emulators.
{% unless platform == "Wii" %}# {% endunless %}"wii", # Accessing Wii emulators.
] }
# Bytemuck can be used to define structs that are being read from the game's process.
bytemuck = { version = "1", features = ["derive", "min_const_generics"] }{% if std_layer == "alloc" %}
# Heap allocator
dlmalloc = { version = "0.2.4", features = ["global"] }{% endif %}
[lib]
crate-type = ["cdylib"]{% if toolchain == "nightly" %}
# LTO is required on nightly, even for the dev profile, because of the rustflags.
[profile.dev]
lto = true{% endif %}
[profile.release]
lto = true
panic = "abort"
codegen-units = 1
strip = true{% if toolchain == "nightly" %}
trim-paths = true
[unstable]
trim-paths = true{% endif %}
[profile.release.build-override]
opt-level = 0