-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
90 lines (75 loc) · 2.02 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
# note that this is unstable in this version of cargo
# 1.65.0-nightly (4ed54cecc 2022-08-27)
cargo-features = ["profile-rustflags"]
[package]
name = "typeracer"
version = "0.0.1"
edition = "2021"
default-run = "typeracer"
authors = [ "alexzanderr <alexzander.dot.dev@gmail.com>" ]
exclude = [
"python_version"
]
[features]
music = []
[dependencies.core-dev]
git = "https://github.com/alexzanderr/rust-core-dev"
features = [
"datetime",
"traits",
"terminal",
"audio"
]
[dev-dependencies]
assert2 = { workspace = true }
# https://github.com/rust-lang/rust/blob/master/RELEASES.md#cargo
# https://doc.rust-lang.org/nightly/cargo/reference/workspaces.html#the-dependencies-table
[workspace.dependencies]
# the good part is that i have the same version of crossterm for the entire workspace
# and if i manually change the version here its propagated to the entire workspace
# instead of manually changing the version of crossterm for every member of the workspace
# cool
crossterm = "0.25.0"
assert2 = "0.3.6"
colored = "2.0.0"
dotenv = "0.15.0"
soloud = "1.0.2"
rand = "0.8.5"
[dependencies]
ansi_term = "0.12.1"
termion = "1.5.6"
derive_builder = "0.11.2"
thiserror = "1.0.37"
pad = "0.1.6"
ansi-parser = "0.8.0"
pancurses = "0.17.0"
rand = { workspace = true }
soloud = { workspace = true }
colored = { workspace = true }
dotenv = { workspace = true }
assert2 = { workspace = true }
crossterm = { workspace = true }
getset = "0.1.2"
lazy_static = "1.4.0"
[workspace]
members = [
"dev-ideas",
"examples/music"
]
exclude = [
]
# ultra specs
[profile.release]
# https://github.com/johnthagen/min-sized-rust
# compilation takes longer here
lto = true
# compilation takes longer here too
codegen-units = 1
# optimize for speed
opt-level = 's'
# when it will panic, it will segfaults, why?
panic = "abort"
# its like strip all
strip = true # Automatically strip symbols from the binary.
# for this you need cargo feature `cargo-features = ["profile-rustflags"]` at the top of Cargo.toml
rustflags = ["-C", "target-cpu=native"]