# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.88.0"
name = "ixa"
version = "2.0.0-beta2.1"
authors = ["The Ixa Developers <cfa@cdc.gov>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A framework for building agent-based models"
homepage = "https://github.com/CDCgov/ixa"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/CDCgov/ixa"

[features]
default = [
    "logging",
    "progress_bar",
    "profiling",
]
logging = [
    "log4rs",
    "fern",
    "wasm-bindgen",
    "web-sys",
]
profiling = [
    "dep:sysinfo",
    "dep:bytesize",
]
progress_bar = [
    "dep:progress_bar",
    "anyhow",
]
write_cli_usage = ["clap-markdown"]

[lib]
name = "ixa"
path = "src/lib.rs"
bench = false

[[example]]
name = "basic"
path = "examples/basic/main.rs"

[[example]]
name = "network-hhmodel"
path = "examples/network-hhmodel/main.rs"

[[example]]
name = "parameter-loading"
path = "examples/parameter-loading/main.rs"

[[test]]
name = "examples_doc"
path = "tests/examples_doc.rs"

[dependencies.approx]
version = "^0.5.1"

[dependencies.bincode]
version = "^2.0.1"
features = [
    "std",
    "serde",
]
default-features = false

[dependencies.bytesize]
version = "^2.0.1"
optional = true

[dependencies.clap]
version = "^4.5.26"
features = ["derive"]

[dependencies.clap-markdown]
version = "0.1.5"
optional = true

[dependencies.csv]
version = "^1.3.1"

[dependencies.ctor]
version = "^0.5.0"

[dependencies.delegate]
version = "^0.13.3"

[dependencies.hashbrown]
version = "^0.16.0"

[dependencies.humantime]
version = "^2.2.0"

[dependencies.indexmap]
version = "2.13.0"

[dependencies.ixa-derive]
version = "2.0.0-beta.1"

[dependencies.log]
version = "^0.4.22"

[dependencies.ouroboros]
version = "^0.18.5"

[dependencies.paste]
version = "^1.0.15"

[dependencies.rand]
version = "^0.9.2"
features = [
    "std",
    "small_rng",
]

[dependencies.rustc-hash]
version = "^2.1.1"

[dependencies.seq-macro]
version = "^0.3.5"

[dependencies.serde]
version = "^1.0.217"
features = ["derive"]

[dependencies.serde_derive]
version = "^1.0.217"

[dependencies.serde_json]
version = "^1.0.135"

[dependencies.smallbox]
version = "^0.8.8"

[dependencies.smallvec]
version = "^1.15.1"

[dependencies.sysinfo]
version = "^0.37.0"
optional = true

[dependencies.thiserror]
version = "^2.0.11"

[dependencies.xxhash-rust]
version = "^0.8.15"
features = [
    "const_xxh3",
    "xxh3",
]

[dev-dependencies.assert_approx_eq]
version = "^1.1.0"

[dev-dependencies.assert_cmd]
version = "^2.0.16"

[dev-dependencies.criterion]
version = "^0.7.0"

[dev-dependencies.rand_distr]
version = "^0.5.1"

[dev-dependencies.tempfile]
version = "^3.15.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.anyhow]
version = "^1.0.28"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.log4rs]
version = "^1.3.0"
features = ["console_appender"]
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.progress_bar]
version = "^1.2.1"
features = ["logger"]
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.fern]
version = "^0.7.1"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.3.4"
features = ["wasm_js"]

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "^0.2.100"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "^0.3.77"
features = [
    "console",
    "Performance",
    "Window",
]
optional = true

[lints.clippy]
module-name-repetitions = "allow"
module_inception = "allow"
result_unit_err = "allow"
uninlined_format_args = "allow"
upper-case-acronyms = "allow"

[lints.rust]
mismatched_lifetime_syntaxes = "allow"
