# 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.70.0"
name = "noodles-sam"
version = "0.67.0"
authors = ["Michael Macias <zaeleus@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sequence Alignment/Map (SAM) format reader and writer"
homepage = "https://github.com/zaeleus/noodles"
documentation = "https://docs.rs/noodles-sam"
readme = false
license = "MIT"
repository = "https://github.com/zaeleus/noodles"

[package.metadata.docs.rs]
features = ["async"]

[lib]
name = "noodles_sam"
path = "src/lib.rs"

[[example]]
name = "sam_count"
path = "examples/sam_count.rs"

[[example]]
name = "sam_count_async"
path = "examples/sam_count_async.rs"
required-features = ["async"]

[[example]]
name = "sam_filter_data"
path = "examples/sam_filter_data.rs"

[[example]]
name = "sam_index"
path = "examples/sam_index.rs"

[[example]]
name = "sam_query"
path = "examples/sam_query.rs"

[[example]]
name = "sam_query_async"
path = "examples/sam_query_async.rs"
required-features = ["async"]

[[example]]
name = "sam_read_header"
path = "examples/sam_read_header.rs"

[[example]]
name = "sam_read_header_async"
path = "examples/sam_read_header_async.rs"
required-features = ["async"]

[[example]]
name = "sam_reheader"
path = "examples/sam_reheader.rs"

[[example]]
name = "sam_reheader_async"
path = "examples/sam_reheader_async.rs"
required-features = ["async"]

[[example]]
name = "sam_view"
path = "examples/sam_view.rs"

[[example]]
name = "sam_view_async"
path = "examples/sam_view_async.rs"
required-features = ["async"]

[[example]]
name = "sam_write"
path = "examples/sam_write.rs"

[[example]]
name = "sam_write_async"
path = "examples/sam_write_async.rs"
required-features = ["async"]

[dependencies.bitflags]
version = "2.0.2"

[dependencies.bstr]
version = "1.9.0"
features = ["std"]
default-features = false

[dependencies.futures]
version = "0.3.15"
features = ["std"]
optional = true
default-features = false

[dependencies.indexmap]
version = "2.0.0"

[dependencies.lexical-core]
version = "1.0.0"

[dependencies.memchr]
version = "2.3.3"

[dependencies.noodles-bgzf]
version = "0.34.0"

[dependencies.noodles-core]
version = "0.15.0"

[dependencies.noodles-csi]
version = "0.41.0"

[dependencies.pin-project-lite]
version = "0.2.6"
optional = true

[dependencies.tokio]
version = "1.10.0"
features = ["io-util"]
optional = true

[dev-dependencies.tokio]
version = "1.10.0"
features = [
    "fs",
    "io-std",
    "macros",
    "rt-multi-thread",
]

[features]
async = [
    "dep:futures",
    "dep:pin-project-lite",
    "dep:tokio",
    "noodles-bgzf/async",
    "noodles-csi/async",
]
