# 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 = "2024"
rust-version = "1.85"
name = "bibsync"
version = "0.4.3"
authors = ["Isaac C. F. Wong"]
build = false
exclude = [
    "/.github",
    "/docs/template_documentation",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust package to automatically resolve, synchronize, and validate LaTeX citations across BibTeX databases"
homepage = "https://github.com/isaac-cf-wong/bibsync"
documentation = "https://isaac-cf-wong.github.io/bibsync"
readme = "README.md"
keywords = [
    "bibtex",
    "latex",
    "arxiv",
    "ads",
    "inspirehep",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "BSD-3-Clause"
repository = "https://github.com/isaac-cf-wong/bibsync"

[features]
python = ["dep:pyo3"]

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

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

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

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

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

[[bench]]
name = "greeting"
path = "benches/greeting.rs"
harness = false

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

[dependencies.pyo3]
version = "0.29.0"
features = ["abi3-py312"]
optional = true

[dependencies.regex]
version = "1.12.4"

[dependencies.reqwest]
version = "0.13.4"
features = [
    "blocking",
    "json",
    "query",
    "rustls",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0.150"

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.assert_cmd]
version = "=2.2.2"

[dev-dependencies.divan]
version = "=0.1.21"

[dev-dependencies.predicates]
version = "=3.1.4"

[dev-dependencies.tempfile]
version = "=3.27.0"

[lints.clippy]
all = "warn"
pedantic = "warn"
unwrap_used = "warn"

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
