[build-dependencies.lalrpop]
version = "0.22.0"
[dependencies.ahash]
default-features = false
features = ["std", "compile-time-rng"]
version = "0.8"
[dependencies.ansiterm]
version = "0.12.2"
[dependencies.anyhow]
version = "1"
[dependencies.as-any]
version = "0.3.0"
[dependencies.atomic_enum]
version = "0.3.0"
[dependencies.bimap]
version = "0.6.3"
[dependencies.bitflags]
version = "2.8"
[dependencies.bitvec]
version = "1.0"
[dependencies.bumpalo]
version = "3.16"
[dependencies.encoding_rs]
version = "0.8.32"
[dependencies.image]
default-features = false
features = ["dds"]
optional = true
version = "0.25"
[dependencies.inventory]
version = "0.3.11"
[dependencies.lalrpop-util]
features = ["unicode"]
version = "0.22.0"
[dependencies.murmur3]
version = "0.5.2"
[dependencies.phf]
features = ["macros"]
version = "0.11"
[dependencies.png]
optional = true
version = "0.17.6"
[dependencies.rayon]
version = "1.7.0"
[dependencies.serde]
features = ["derive"]
version = "1"
[dependencies.serde_json]
version = "1"
[dependencies.strum]
features = ["phf"]
version = "0.27"
[dependencies.strum_macros]
version = "0.27"
[dependencies.thiserror]
version = "2"
[dependencies.tinybmp]
optional = true
version = "0.6"
[dependencies.unicode-width]
version = "0.2"
[dependencies.walkdir]
version = "2"
[features]
ck3 = ["jomini"]
default = ["ck3"]
hoi4 = ["image/bmp", "dep:tinybmp"]
imperator = ["jomini"]
jomini = ["image/png", "dep:png"]
vic3 = ["jomini"]
[lib]
name = "tiger_lib"
path = "src/lib.rs"
[lints.clippy]
blocks_in_conditions = "allow"
clone_on_ref_ptr = "warn"
dbg_macro = "warn"
decimal_literal_representation = "warn"
enum_glob_use = "allow"
float_cmp_const = "warn"
fn_to_numeric_cast_any = "warn"
format_push_string = "warn"
get_unwrap = "warn"
if_then_some_else_none = "warn"
impl_trait_in_params = "warn"
integer_division = "warn"
large_stack_arrays = "allow"
lossy_float_literal = "warn"
missing_errors_doc = "allow"
mixed_read_write_in_expression = "warn"
module_name_repetitions = "allow"
must_use_candidate = "allow"
mutex_atomic = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
rest_pat_in_fully_bound_structs = "warn"
similar_names = "allow"
string_add = "warn"
string_to_string = "warn"
struct_excessive_bools = "allow"
todo = "warn"
too_many_lines = "allow"
wildcard_imports = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
noop_method_call = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
[lints.rust.future_incompatible]
level = "warn"
priority = -1
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
description = "Library used by the tools ck3-tiger, vic3-tiger, and imperator-tiger. This library holds the bulk of the code for them. It can be built either for ck3-tiger with the feature ck3, or for vic3-tiger with the feature vic3, or for imperator-tiger with the feature imperator, but not both at the same time."
edition = "2021"
homepage = "https://github.com/amtep/tiger"
license = "GPL-3.0-or-later"
name = "tiger-lib"
readme = "README.md"
repository = "https://github.com/amtep/tiger"
rust-version = "1.84"
version = "1.7.1"
[profile.bench]
debug = 2
[profile.release-lto]
codegen-units = 1
inherits = "release"
lto = true
[[test]]
name = "test"
path = "tests/test.rs"