# 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 = "immunum"
version = "1.0.0"
authors = ["ENPICOM <dev@enpicom.com>"]
build = "build.rs"
include = [
    "src/**",
    "build.rs",
    "resources/consensus/*.csv",
    "/README.md",
    "/LICENSE",
    "Cargo.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "immunum"
description = "Fast antibody and T-cell receptor numbering in Rust and Python"
homepage = "https://immunum.enpicom.com"
documentation = "https://immunum.enpicom.com"
readme = "README.md"
keywords = [
    "antibody",
    "numbering",
    "schemes",
    "python",
    "imgt",
]
categories = [
    "science::bioinformatics",
    "command-line-utilities",
]
license = "MIT"
repository = "https://github.com/ENPICOM/immunum"

[features]
cli = [
    "dep:clap",
    "dep:chrono",
    "dep:toml",
]
default = ["cli"]
polars = [
    "dep:polars",
    "dep:polars-arrow",
    "dep:polars-core",
    "dep:pyo3-polars",
    "dep:postcard",
]
python = [
    "dep:pyo3",
    "dep:postcard",
    "dep:pyo3-build-config",
]
wasm = [
    "dep:wasm-bindgen",
    "dep:js-sys",
]

[lib]
name = "immunum"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "benchmark"
path = "src/bin/benchmark.rs"
required-features = ["cli"]

[[bin]]
name = "debug-validation"
path = "src/bin/debug_validation.rs"
required-features = ["cli"]

[[bin]]
name = "immunum"
path = "src/main.rs"
required-features = ["cli"]

[dependencies.chrono]
version = "0.4"
optional = true

[dependencies.clap]
version = "4.5.60"
features = ["derive"]
optional = true

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.polars]
version = "0.51.0"
optional = true
default-features = false

[dependencies.polars-arrow]
version = "0.51.0"
optional = true
default-features = false

[dependencies.polars-core]
version = "0.51.0"
optional = true
default-features = false

[dependencies.postcard]
version = "=1.1.3"
features = ["alloc"]
optional = true

[dependencies.pyo3]
version = "0.25.0"
features = [
    "abi3-py39",
    "multiple-pymethods",
    "extension-module",
]
optional = true

[dependencies.pyo3-polars]
version = "0.24.0"
features = [
    "derive",
    "dtype-struct",
    "dtype-array",
]
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"
features = ["preserve_order"]

[dependencies.strum]
version = "0.27"

[dependencies.strum_macros]
version = "0.27"

[dependencies.thiserror]
version = "2.0"

[dependencies.toml]
version = "0.8"
optional = true

[dependencies.wasm-bindgen]
version = "0.2.114"
optional = true

[dev-dependencies.wasm-bindgen-test]
version = "0.3"

[build-dependencies.pyo3-build-config]
version = "0.25"
optional = true

[build-dependencies.serde]
version = "1.0"
features = ["derive"]

[build-dependencies.serde_json]
version = "1.0"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.assert_cmd]
version = "2"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.predicates]
version = "3"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tempfile]
version = "3"

[profile.release]
lto = "fat"
codegen-units = 1
debug = 0
