# 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 = "gtfsort"
version = "0.2.4"
authors = [
    "alejandrogzi <alejandrxgzi@gmail.com>",
    "eternal-flame-AD <yume@yumechi.jp>",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "gtfsort"
description = "An optimized chr/pos/feature GTF/GFF sorter using a lexicographic-based index ordering algorithm written in Rust."
homepage = "https://github.com/alejandrogzi/gtfsort"
readme = "README.md"
keywords = [
    "sort",
    "gtf",
    "gff",
    "gtfsort",
]
categories = [
    "command-line-utilities",
    "science",
]
license = "MIT"
repository = "https://github.com/alejandrogzi/gtfsort"

[features]
all_ffi = ["c_ffi"]
benchmark = [
    "testing",
    "dep:serde",
    "dep:serde_json",
]
c_ffi = []
default = [
    "mmap",
    "c_ffi",
]
mmap = []
serde = ["dep:serde"]
serde_json = ["dep:serde_json"]
testing = [
    "dep:reqwest",
    "dep:crc",
]

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

[[bin]]
name = "gtfsort"
path = "src/main.rs"

[[bin]]
name = "gtfsort-benchmark"
path = "ci/benchmark.rs"
required-features = [
    "mmap",
    "benchmark",
]

[[test]]
name = "integration_test"
path = "ci/integration_test.rs"
required-features = ["testing"]

[dependencies.clap]
version = "4.0"
features = ["derive"]

[dependencies.colored]
version = "3"

[dependencies.crc]
version = "3.2.1"
optional = true

[dependencies.dashmap]
version = "6"

[dependencies.flate2]
version = "1.0.30"

[dependencies.hashbrown]
version = "0.16"
features = ["rayon"]

[dependencies.indoc]
version = "2.0.4"

[dependencies.libR-sys]
version = "0.7.0"
optional = true

[dependencies.libc]
version = "0.2.151"

[dependencies.log]
version = "0.4.14"

[dependencies.natord]
version = "1.0.9"

[dependencies.num_cpus]
version = "1.16.0"

[dependencies.rayon]
version = "1.8.0"

[dependencies.reqwest]
version = "0.13.2"
features = ["blocking"]
optional = true

[dependencies.serde]
version = "1.0.204"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0.122"
optional = true

[dependencies.simple_logger]
version = "5.0.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.time]
version = "0.3.36"

[build-dependencies.cbindgen]
version = "0.26.0"

[target."cfg(windows)".dependencies.windows]
version = "0.58.0"
features = [
    "Win32",
    "Win32_System",
    "Win32_System_Threading",
    "Win32_System_ProcessStatus",
    "Win32_System_Memory",
    "Win32_Security",
]

[profile.release]
opt-level = 3
lto = true
