# 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 = "hayagriva"
version = "0.5.0"
authors = ["Martin Haug <mhaug@live.de>"]
description = "Work with references: Literature database management, storage, and citation formatting"
readme = "README.md"
keywords = [
    "bibliography",
    "citation",
    "reference",
    "bibtex",
    "literature",
]
categories = [
    "template-engine",
    "value-formatting",
    "command-line-utilities",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/typst/hayagriva"

[[bin]]
name = "hayagriva"
required-features = ["cli"]

[[test]]
name = "citeproc"
path = "tests/citeproc.rs"
required-features = ["csl-json"]

[dependencies.biblatex]
version = "0.9"
optional = true

[dependencies.ciborium]
version = "0.2.1"
optional = true

[dependencies.citationberg]
version = "0.1.1"

[dependencies.clap]
version = "3.1"
features = ["cargo"]
optional = true

[dependencies.indexmap]
version = "2.0.2"
features = ["serde"]

[dependencies.numerals]
version = "0.1.4"

[dependencies.paste]
version = "1.0.14"

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

[dependencies.serde_yaml]
version = "0.9.25"

[dependencies.strum]
version = "0.24"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "1.0.48"

[dependencies.unic-langid]
version = "0.9.0"
features = ["serde"]

[dependencies.unicode-segmentation]
version = "1.6.0"

[dependencies.unscanny]
version = "0.1.0"

[dependencies.url]
version = "2.4"
features = ["serde"]

[dev-dependencies.heck]
version = "0.4"

[dev-dependencies.serde_json]
version = "1"

[features]
archive = ["ciborium"]
cli = [
    "clap",
    "strum",
]
csl-json = ["citationberg/json"]
default = [
    "biblatex",
    "archive",
]
