generated from emilk/eframe_template
-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Cargo.toml
230 lines (196 loc) · 9.43 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
# Setup various shared workspace values
[workspace]
members = ["crates/*"]
default-members = ["crates/launcher"]
resolver = "2"
[workspace.lints.rust]
rust_2018_idioms = "warn"
# unsafe code is sometimes fine but in general we don't want to use it.
unsafe_code = "warn"
# clearly denote where you are using unsafe code in unsafe fns. in a future rust edition this will become a hard error.
unsafe_op_in_unsafe_fn = "forbid"
# will become a hard error in a future rust edition
elided_lifetimes_in_paths = "forbid"
[workspace.lints.clippy]
all = "warn"
# we should turn these on in the future to avoid possible crashes
# panic = "warn"
# panic_in_result_fn = "warn"
# panicking_unwrap = "warn"
unnecessary_wraps = "warn"
missing_errors_doc = "allow"
doc_markdown = "allow"
missing_panics_doc = "allow"
too_many_lines = "allow"
# you must provide a safety doc.
missing_safety_doc = "warn"
[workspace.package]
version = "0.4.0"
authors = [
"Melody Madeline Lyons <[email protected]>",
"Hao Liu <[email protected]>",
"Egor Poleshko <[email protected]>",
]
edition = "2021"
rust-version = "1.78"
license = "GPL-3.0"
readme = "README.md"
repository = "https://github.com/Speak2Erase/Luminol"
keywords = ["gamedev", "rpg", "rpg-maker"]
categories = ["games"]
# Shared dependencies
[workspace.dependencies]
# * Window management, graphical user interface and 3D rendering * #
egui = { version = "0.28.1", features = [
"serde",
] } # Real-time stateless graphical user interface framework
egui_extras = { version = "0.28.1", features = [
"svg",
"image",
] } # Official add-ons to egui, like "Table", "TableBody", "Column", "DatePickerButton", etc.
epaint = "0.28.1" # 2D graphics library for turning simple two dimensional shapes into textured triangles
luminol-eframe = { version = "0.4.0", path = "crates/eframe/", features = [
"wgpu",
"accesskit",
"persistence",
"default_fonts",
"x11",
"wayland",
], default-features = false } # Egui initialisation library. Responsible for creating and managing the main window and all appropriate graphics contexts
luminol-egui-wgpu = { version = "0.4.0", path = "crates/egui-wgpu/" } # Bindings between wgpu and egui
egui-winit = "0.28.1" # Winit event translation library for egui
egui_dock = "0.13.0" # Docking support for egui
egui-notify = "0.15.0" # In-app toast notification library for egui
egui-modal = "0.4.0" # "Modals" for egui. A "Modal" is a window with custom content that requires user's immediate attention
rfd = "0.14.1" # File picker and message dialogs
raw-window-handle = "0.6.0" # Window interoperability library that provides a platform-specific native handle to the specified window
winit = { version = "0.29.4", default-features = false } # Window creation and management library
wgpu = { version = "0.20.0", features = [
"naga-ir",
] } # An abstraction layer for OpenGL, Vulkan, DirectX/Direct3D and Metal
naga = "0.20.0" # Wgpu shader parser
naga_oil = "0.14.0" # An extension to naga. Allows combining and manipulating wgpu shaders (for example, through '#import' statements)
glutin = "0.31" # Cross-platform OpenGL context provider
glutin-winit = "0.4" # Bootstrapping helpers with winit for Glutin
image = { version = "0.25.0", features = [
"png",
] } # Image processing library. Supported image formats: https://crates.io/crates/image#supported-image-formats
alacritty_terminal = "0.22.0" # A library for writing terminal emulators, based on Alacritty, a fast, cross-platform OpenGL terminal emulator
# * Data processing * #
serde = { version = "1.0", features = [
"derive",
] } # Data serialisation/deserialisation framework
serde_json = "1.0" # JSON (de)serialisation library, based on serde
serde_yml = "0.0.10" # YAML (de)serialisation library, based on serde
alox-48 = { version = "0.6.0" } # An in-house Ruby Marshal data format (de)serialisation library
ron = "0.8.1" # RON (de)serialisation library, based on serde
rust-ini = "0.20.0" # INI (de)serialisation library
# * Mathematics * #
glam = { version = "0.24.2", features = [
"bytemuck",
] } # 3D math library, adds types like two/three dimensional vectors and supplementary methods
bytemuck = { version = "1.14.0", features = [
"extern_crate_alloc",
"derive",
"min_const_generics",
] } # Bit casting between data types
# * Logging and diagnostics * #
log = { version = "0.4", features = [
"std",
] } # Logging facade to be replaced by a proper logger
tracing = "0.1.37" # Structured, event-based, application-level diagnostics
color-eyre = "0.6.2" # An error report handler for panics, based on the 'eyre' crate
puffin = "0.19" # Instrumentation profiler
# * Useful procedural macros * #
strum = { version = "0.25.0", features = [
"derive",
] } # Useful 'derive' macros for enumerations, like 'EnumString' which converts strings to enum variants
paste = "1.0.14" # A flexible way ot paste together identifiers in a macro, including using pasted identifiers to define new ones. Does not rely on a nightly feature 'concat_idents'
thiserror = "1.0.37" # derive(Error)
bitflags = "2.4.0" # A way to generate bitflags out of enumerations
document-features = "0.2.8" # Macro that extracts documentation comments from Cargo.toml
# * Platform interoperability interfaces * #
web-time = "0.2" # Drop-in replacement for std::time on WebAssembly platforms
# * Cryptography and hashing * #
ahash = "0.8.11" # A non-cryptographic hash function using AES-NI
murmur3 = "0.5.2" # An implementation of the Murmur3 hash
# * More efficient implementations of individual components of Rust's Standard Library * #
parking_lot = { version = "0.12.3", features = [
"nightly", # This is required for parking_lot to work properly in WebAssembly builds with atomics support
"deadlock_detection",
] } # More compact and efficient implementations of the standard synchronisation primitives (Mutex, RwLock, Condvar and Once)
once_cell = "1.18.0" # Single assignment cells and lazy values
crossbeam = "0.8.2" # Functions for better concurrent programming (replaces functions like std::sync::mpsc:channel)
dashmap = "5.5.3" # More efficient replacement of the HashMap structure
futures-lite = "2.1.0" # Lightweight, more safe replacement of 'futures'
# * Tools to aid concurrent programming * #
flume = "0.11.1" # Fast multi-producer, multi-consumer channel
oneshot = "0.1.6" # Oneshot single-producer, single-consumer channels
async-std = "1.12.0" # Asynchronous version of the Rust Standard Library
fragile = "2.0" # Provides wrapper types for sending non-Send values to other threads
poll-promise = "0.3.0" # A crate for polling the result of an asynchronous operation
# * File system interfaces * #
camino = "1.1.6" # UTF-8 paths
tempfile = "3.8.1" # A crate for creating and managing temporary directories and files
# * Adapters for web APIs * #
wasm-bindgen = "0.2.91" # Easy support for interacting between Javacript and Rust
wasm-bindgen-futures = "0.4.42" # Conversion between Rust's Futures and JavaScript's Promises
web-sys = "0.3.67" # Bindings for all web APIs
js-sys = "0.3" # Bindings for all JS objects and functions
# * Luminol's crates * #
luminol-audio = { version = "0.4.0", path = "crates/audio/" }
luminol-config = { version = "0.4.0", path = "crates/config/" }
luminol-core = { version = "0.4.0", path = "crates/core/" }
luminol-data = { version = "0.4.0", path = "crates/data/" }
luminol-filesystem = { version = "0.4.0", path = "crates/filesystem/" }
luminol-graphics = { version = "0.4.0", path = "crates/graphics/" }
luminol-macros = { version = "0.4.0", path = "crates/macros/" }
luminol-proc-macros = { version = "0.4.0", path = "crates/proc-macros/" }
luminol-term = { version = "0.4.0", path = "crates/term/" }
luminol-ui = { version = "0.4.0", path = "crates/ui/" }
luminol-result = { version = "0.4.0", path = "crates/result" }
# * Misc. * #
pin-project = "1" # Safe and ergonomic pin-projection
slab = { version = "0.4.9", features = [
"serde",
] } # Pre-allocated storage for a uniform data type
qp-trie = "0.8.2" # An idiomatic and fast QP-trie implementation
itertools = "0.11.0" # Extra iterator adaptors, methods, functions and macros
rand = "0.8.5" # Random number generators and other randomness functionality
lexical-sort = "0.3.1" # Functions that compare and sort strings lexicographically
indexmap = "2.2.6" # A hash table with consistent order and fast iteration
# Fast and performant.
[profile.release]
opt-level = 3
# lto = "fat"
# debug = true
# Enable only a small amount of optimization in debug mode
[profile.dev]
opt-level = 1
# Enable max optimizations for certain dependencies, but not for our code
# These dependencies are "hot" in that they are used quite frequently
# Ui
[profile.dev.package.egui]
opt-level = 3
[profile.dev.package.luminol-eframe]
opt-level = 3
# Audio
[profile.dev.package.rodio]
opt-level = 3
[profile.dev.package.rustysynth]
opt-level = 3
# Graphics
[profile.dev.package.wgpu]
opt-level = 3
[profile.dev.package.image]
opt-level = 3
[profile.dev.package.glam]
opt-level = 3
# See why config is set up this way.
# https://bevy-cheatbook.github.io/pitfalls/performance.html#why-not-use---release
# If you want to use the bleeding edge version of egui and eframe:
# egui = { git = "https://github.com/emilk/egui", branch = "master" }
# eframe = { git = "https://github.com/emilk/egui", branch = "master" }
# If you fork https://github.com/emilk/egui you can test with:
# egui = { path = "../egui/crates/egui" }
# eframe = { path = "../egui/crates/eframe" }