79 lines
1.6 KiB
TOML
79 lines
1.6 KiB
TOML
[package]
|
|
name = "tetros"
|
|
version = "1.0.0"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[lib]
|
|
name = "tetros"
|
|
path = "src/lib.rs"
|
|
crate-type = ["staticlib"]
|
|
|
|
# Silence rust-analyzer errors
|
|
test = false
|
|
bench = false
|
|
|
|
#
|
|
# MARK: lints
|
|
#
|
|
|
|
|
|
[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"
|
|
redundant_lifetimes = "warn"
|
|
missing_docs = "warn"
|
|
|
|
[lints.clippy]
|
|
needless_return = "allow"
|
|
new_without_default = "allow"
|
|
tabs_in_doc_comments = "allow"
|
|
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 = "allow"
|
|
missing_safety_doc = "allow"
|
|
identity_op = "allow"
|
|
comparison_chain = "allow"
|
|
|
|
#
|
|
# MARK: dependencies
|
|
#
|
|
|
|
|
|
[dependencies]
|
|
bitflags = "2.8.0"
|
|
rand = { version = "0.9.0", features = ["small_rng"], default-features = false }
|
|
spin = "0.9.8"
|
|
uart_16550 = "0.3.2"
|
|
|
|
[dependencies.lazy_static]
|
|
version = "1.0"
|
|
features = ["spin_no_std"]
|