[package]
edition = "2024"
rust-version = "1.95.0"
name = "chuot"
version = "0.3.2"
authors = ["Thomas Versteeg <t@versteeg.email>"]
build = "build.rs"
include = [
"/src",
"build.rs",
"/shaders",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AGPL licensed and opinionated game engine for pixel-art games"
homepage = "https://tversteeg.nl/chuot"
documentation = "https://docs.rs/chuot"
readme = "README.md"
keywords = [
"gamedev",
"utility",
]
categories = [
"games",
"game-engines",
]
license = "AGPL-3.0"
repository = "https://codeberg.com/fosk/chuot.git"
[package.metadata.docs.rs]
features = ["read-texture"]
targets = [
"x86_64-unknown-linux-gnu",
"wasm32-unknown-unknown",
"x86_64-pc-windows-msvc",
"x86_64-apple-darwin",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["read-texture"]
embed-assets = [
"chuot-macros/embed-assets",
"dep:imgref",
]
read-texture = []
[lib]
name = "chuot"
path = "src/lib.rs"
[dependencies.bytemuck]
version = "1.25.0"
features = ["derive"]
[dependencies.chuot-macros]
version = "0.2.4"
[dependencies.chuot-packer]
version = "0.2.2"
[dependencies.downcast-rs]
version = "2.0.2"
[dependencies.fastrand]
version = "2.4.1"
[dependencies.gilrs]
version = "0.11.1"
[dependencies.glam]
version = "0.32.1"
features = [
"bytemuck",
"fast-math",
]
[dependencies.hashbrown]
version = "0.17.0"
[dependencies.imgref]
version = "1.12.0"
optional = true
default-features = false
[dependencies.kira]
version = "0.12.0"
features = [
"cpal",
"ogg",
"vorbis",
]
default-features = false
[dependencies.nanoserde]
version = "0.2.1"
[dependencies.num-integer]
version = "0.1.46"
[dependencies.phf]
version = "0.13.1"
[dependencies.png]
version = "0.18.1"
[dependencies.rgb]
version = "0.8.53"
features = ["bytemuck"]
default-features = false
[dependencies.smallvec]
version = "1.15.1"
features = [
"const_new",
"union",
]
[dependencies.smol_str]
version = "0.3.6"
[dependencies.web-time]
version = "1.1.0"
[dependencies.winit]
version = "0.30.13"
[build-dependencies.naga]
version = "29.0.1"
features = [
"wgsl-in",
"wgsl-out",
]
default-features = false
[build-dependencies.wgsl-minifier]
version = "0.7.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.notify-debouncer-mini]
version = "0.7.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.pollster]
version = "0.4.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgpu]
version = "29.0.1"
features = [
"wgsl",
"vulkan",
]
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.console_error_panic_hook]
version = "0.1.7"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4.68"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.95"
features = [
"Document",
"Window",
"Element",
]
[target.'cfg(target_arch = "wasm32")'.dependencies.wgpu]
version = "29.0.1"
features = [
"webgl",
"wgsl",
"gles",
]
default-features = false
[lints.clippy]
assertions_on_result_states = "warn"
bool_to_int_with_if = "warn"
branches_sharing_code = "warn"
case_sensitive_file_extension_comparisons = "warn"
clear_with_drain = "warn"
clone_on_ref_ptr = "warn"
cloned_instead_of_copied = "warn"
cognitive_complexity = "warn"
collection_is_never_read = "warn"
copy_iterator = "warn"
create_dir = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
decimal_literal_representation = "warn"
derive_partial_eq_without_eq = "warn"
doc_link_with_quotes = "warn"
doc_markdown = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_line_after_doc_comments = "warn"
empty_line_after_outer_attr = "warn"
empty_structs_with_brackets = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
exhaustive_enums = "warn"
exhaustive_structs = "warn"
exit = "warn"
expl_impl_clone_on_copy = "warn"
explicit_deref_methods = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
fallible_impl_from = "warn"
filetype_is_file = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
float_cmp = "warn"
float_cmp_const = "warn"
fn_params_excessive_bools = "warn"
fn_to_numeric_cast_any = "warn"
format_push_string = "warn"
from_iter_instead_of_collect = "warn"
get_unwrap = "warn"
if_not_else = "warn"
if_then_some_else_none = "warn"
ignored_unit_patterns = "warn"
imprecise_flops = "warn"
inconsistent_struct_constructor = "warn"
index_refutable_slice = "warn"
inefficient_to_string = "warn"
into_iter_without_iter = "warn"
invalid_upcast_comparisons = "warn"
iter_filter_is_ok = "warn"
iter_filter_is_some = "warn"
iter_not_returning_iterator = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_with_drain = "warn"
iter_without_into_iter = "warn"
large_futures = "warn"
large_stack_arrays = "warn"
large_stack_frames = "warn"
large_types_passed_by_value = "warn"
linkedlist = "warn"
literal_string_with_formatting_args = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
manual_assert = "warn"
manual_instant_elapsed = "warn"
manual_is_variant_and = "warn"
manual_let_else = "warn"
manual_ok_or = "warn"
manual_string_new = "warn"
many_single_char_names = "warn"
map_err_ignore = "warn"
map_unwrap_or = "warn"
map_with_unused_argument_over_ranges = "warn"
match_bool = "warn"
match_same_arms = "warn"
mem_forget = "warn"
mismatching_type_param_order = "warn"
missing_asserts_for_indexing = "warn"
missing_const_for_fn = "warn"
missing_errors_doc = "warn"
missing_inline_in_public_items = "warn"
missing_panics_doc = "warn"
mixed_read_write_in_expression = "warn"
must_use_candidate = "warn"
mut_mut = "warn"
mutex_atomic = "warn"
mutex_integer = "warn"
naive_bytecount = "warn"
needless_bitwise_bool = "warn"
needless_collect = "warn"
needless_continue = "warn"
needless_for_each = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
needless_raw_string_hashes = "warn"
needless_raw_strings = "warn"
negative_feature_names = "warn"
no_effect_underscore_binding = "warn"
no_mangle_with_rust_abi = "warn"
non_send_fields_in_send_ty = "warn"
nonstandard_macro_braces = "warn"
option_as_ref_cloned = "warn"
option_if_let_else = "warn"
option_option = "warn"
or_fun_call = "warn"
path_buf_push_overwrite = "warn"
print_stdout = "warn"
pub_underscore_fields = "warn"
pub_without_shorthand = "warn"
range_minus_one = "warn"
range_plus_one = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
read_zero_byte_vec = "warn"
redundant_clone = "warn"
redundant_closure_for_method_calls = "warn"
redundant_else = "warn"
redundant_feature_names = "warn"
redundant_type_annotations = "warn"
ref_binding_to_reference = "warn"
ref_option = "warn"
ref_option_ref = "warn"
ref_patterns = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_self_not_must_use = "warn"
same_functions_in_if_condition = "warn"
same_name_method = "warn"
self_named_module_files = "warn"
semicolon_if_nothing_returned = "warn"
semicolon_inside_block = "warn"
set_contains_or_insert = "warn"
significant_drop_in_scrutinee = "warn"
significant_drop_tightening = "warn"
single_char_pattern = "warn"
single_match_else = "warn"
stable_sort_primitive = "warn"
str_split_at_newline = "warn"
str_to_string = "warn"
string_add = "warn"
string_add_assign = "warn"
string_lit_as_bytes = "warn"
string_lit_chars_any = "warn"
string_slice = "warn"
struct_excessive_bools = "warn"
struct_field_names = "warn"
suboptimal_flops = "warn"
suspicious_operation_groupings = "warn"
suspicious_xor_used_as_pow = "warn"
todo = "warn"
too_long_first_doc_paragraph = "warn"
trailing_empty_array = "warn"
trait_duplication_in_bounds = "warn"
trivial_regex = "warn"
trivially_copy_pass_by_ref = "warn"
try_err = "warn"
tuple_array_conversions = "warn"
type_repetition_in_bounds = "warn"
unimplemented = "warn"
uninlined_format_args = "warn"
unnecessary_box_returns = "warn"
unnecessary_join = "warn"
unnecessary_literal_bound = "warn"
unnecessary_self_imports = "warn"
unnecessary_struct_initialization = "warn"
unnecessary_wraps = "warn"
unneeded_field_pattern = "warn"
unnested_or_patterns = "warn"
unseparated_literal_suffix = "warn"
unused_async = "warn"
unused_peekable = "warn"
unused_result_ok = "warn"
unused_rounding = "warn"
unused_self = "warn"
unused_trait_names = "warn"
use_debug = "warn"
use_self = "warn"
used_underscore_binding = "warn"
useless_let_if_seq = "warn"
verbose_file_reads = "warn"
wildcard_dependencies = "warn"
wildcard_imports = "warn"
zero_sized_map_values = "warn"
[lints.rust]
unsafe_code = "forbid"
[profile.dev.package.cpal]
opt-level = 3
[profile.dev.package.kira]
opt-level = 3
[profile.dev.package.png]
opt-level = 3
[profile.dev.package.symphonia]
opt-level = 3
[profile.dev.package.symphonia-codec-vorbis]
opt-level = 3
[profile.dev.package.symphonia-format-ogg]
opt-level = 3
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true