130 lines
2.5 KiB
TOML
130 lines
2.5 KiB
TOML
[workspace]
|
|
members = ["bin", "lib/*"]
|
|
default-members = ["bin"]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
keywords = []
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
rust-version = "1.76"
|
|
categories = []
|
|
authors = []
|
|
homepage = ""
|
|
repository = ""
|
|
license = ""
|
|
documentation = ""
|
|
readme = ""
|
|
|
|
#
|
|
# MARK: profiles
|
|
#
|
|
|
|
[profile.dev]
|
|
opt-level = 0
|
|
debug = true
|
|
strip = false
|
|
debug-assertions = true
|
|
overflow-checks = true
|
|
lto = false
|
|
panic = "unwind"
|
|
incremental = true
|
|
codegen-units = 256
|
|
rpath = false
|
|
|
|
# Rapier is a LOT faster with optimizations,
|
|
# make sure they're always enabled
|
|
[profile.dev.package.rapier2d]
|
|
opt-level = 3
|
|
codegen-units = 1
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
debug = false
|
|
debug-assertions = false
|
|
strip = "symbols"
|
|
lto = "fat"
|
|
codegen-units = 1
|
|
panic = "abort"
|
|
incremental = false
|
|
rpath = false
|
|
|
|
|
|
#
|
|
# MARK: lints
|
|
#
|
|
|
|
[workspace.lints.rust]
|
|
unused_import_braces = "deny"
|
|
unit_bindings = "deny"
|
|
single_use_lifetimes = "deny"
|
|
non_ascii_idents = "deny"
|
|
macro_use_extern_crate = "deny"
|
|
elided_lifetimes_in_paths = "deny"
|
|
absolute_paths_not_starting_with_crate = "deny"
|
|
explicit_outlives_requirements = "warn"
|
|
unused_crate_dependencies = "warn"
|
|
variant_size_differences = "warn"
|
|
redundant_lifetimes = "warn"
|
|
missing_docs = "allow"
|
|
|
|
[workspace.lints.clippy]
|
|
needless_return = "allow"
|
|
new_without_default = "allow"
|
|
tabs_in_doc_comments = "allow"
|
|
expect_used = "deny"
|
|
unwrap_used = "deny"
|
|
panic = "deny"
|
|
dbg_macro = "deny"
|
|
allow_attributes = "deny"
|
|
create_dir = "deny"
|
|
filetype_is_file = "deny"
|
|
integer_division = "deny"
|
|
lossy_float_literal = "deny"
|
|
map_err_ignore = "deny"
|
|
mutex_atomic = "deny"
|
|
needless_raw_strings = "deny"
|
|
print_stderr = "deny"
|
|
print_stdout = "deny"
|
|
str_to_string = "deny"
|
|
string_add = "deny"
|
|
string_to_string = "deny"
|
|
unimplemented = "deny"
|
|
use_debug = "deny"
|
|
verbose_file_reads = "deny"
|
|
large_types_passed_by_value = "deny"
|
|
match_on_vec_items = "deny"
|
|
wildcard_dependencies = "deny"
|
|
negative_feature_names = "deny"
|
|
redundant_feature_names = "deny"
|
|
#multiple_crate_versions = "deny"
|
|
|
|
#
|
|
# MARK: dependencies
|
|
#
|
|
|
|
[workspace.dependencies]
|
|
galactica-util = { path = "lib/util" }
|
|
galactica-packer = { path = "lib/packer" }
|
|
galactica-content = { path = "lib/content" }
|
|
|
|
# Utilities
|
|
tracing = "0.1"
|
|
thiserror = "2.0.9"
|
|
smartstring = { version = "1.0.1", features = ["serde"] }
|
|
lazy_static = "1.5.0"
|
|
crossbeam = "0.8.4"
|
|
rand = "0.8.5"
|
|
|
|
# I/O
|
|
walkdir = "2.5.0"
|
|
serde = { version = "1.0.217", features = ["derive"] }
|
|
toml = "0.8.19"
|
|
image = { version = "0.25.5", features = ["png"] }
|
|
|
|
# Math
|
|
nalgebra = "0.33.2"
|
|
rapier2d = "0.22.0"
|
|
|
|
rhai = { version = "1.20.1", features = ["f32_float", "no_custom_syntax"] }
|