# 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"
name = "ixa"
version = "0.3.2"
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]
debugger = [
    "shlex",
    "rustyline",
]
default = [
    "logging",
    "debugger",
    "progress_bar",
]
logging = [
    "log4rs",
    "fern",
    "wasm-bindgen",
    "web-sys",
]
progress_bar = [
    "dep:progress_bar",
    "anyhow",
]
web_api = [
    "debugger",
    "mime",
    "tower-http",
    "axum",
    "tokio",
    "uuid",
]

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

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

[[example]]
name = "load-people"
path = "examples/load-people/main.rs"

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

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

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

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

[[example]]
name = "reports-multi-threaded"
path = "examples/reports-multi-threaded/main.rs"

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

[[example]]
name = "time-varying-infection"
path = "examples/time-varying-infection/main.rs"

[dependencies.approx]
version = "^0.5.1"

[dependencies.bincode]
version = "^1.3.3"

[dependencies.bytesize]
version = "^2.0.1"

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

[dependencies.csv]
version = "^1.3.1"

[dependencies.ctor]
version = "^0.4.2"

[dependencies.delegate]
version = "^0.13.3"

[dependencies.humantime]
version = "^2.2.0"

[dependencies.ixa-derive]
version = "0.0.2"

[dependencies.log]
version = "^0.4.22"

[dependencies.paste]
version = "^1.0.15"

[dependencies.polonius-the-crab]
version = "^0.4.2"

[dependencies.rand]
version = "^0.8.5"
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.sysinfo]
version = "^0.35.2"

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

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

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

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

[dev-dependencies.reikna]
version = "^0.12.3"

[dev-dependencies.reqwest]
version = "^0.12.12"
features = [
    "blocking",
    "json",
]

[dev-dependencies.roots]
version = "0.0.8"

[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.axum]
version = "^0.8.1"
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.mime]
version = "^0.3.17"
optional = true

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

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

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "^1.45.1"
features = ["full"]
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tower-http]
version = "^0.6.2"
features = ["full"]
optional = true

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

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

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["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]
implicit_hasher = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module-name-repetitions = "allow"
result_unit_err = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
uninlined_format_args = "allow"
unnecessary_debug_formatting = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1
