Documentation
[dependencies.bon]
version = "3.8"

[dependencies.derive_more]
features = ["deref", "display", "from", "into"]
version = "2.0"

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1.3"

[dependencies.itertools]
version = "0.14"

[dependencies.regex]
version = "1.12"

[dependencies.remain]
version = "0.2"

[dependencies.reqwest]
default-features = false
features = ["json", "rustls-tls"]
version = "0.12"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.specta]
features = ["derive", "serde", "serde_json"]
optional = true
version = "=2.0.0-rc.22"

[dependencies.strum]
features = ["derive"]
version = "0.27"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
default-features = false
version = "1.48"

[dependencies.url]
version = "2.5"

[dev-dependencies.tokio]
features = ["macros", "test-util"]
version = "1.48"

[features]
specta = ["dep:specta"]

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

[lints.clippy]
clone_on_ref_ptr = "deny"
collapsible_if = "allow"
dbg_macro = "deny"
filetype_is_file = "deny"
get_unwrap = "deny"
large_enum_variant = "deny"
map_unwrap_or = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
missing_safety_doc = "deny"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_borrow = "deny"
needless_for_each = "allow"
rc_buffer = "deny"
rc_mutex = "deny"
rest_pat_in_fully_bound_structs = "deny"
similar_names = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
unnecessary_safety_comment = "deny"
unsafe_derive_deserialize = "allow"
useless_conversion = "deny"

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
async_fn_in_trait = "allow"
dangling_pointers_from_temporaries = "deny"
unfulfilled_lint_expectations = "deny"
unsafe_op_in_unsafe_fn = "deny"
variant_size_differences = "warn"

[package]
authors = ["Andrew Ferreira <andrew.shien2@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "VNDB for Rust"
edition = "2024"
homepage = "https://github.com/ferreira-tb/vn"
keywords = ["api", "http", "novel", "visual", "vndb"]
license = "MIT"
name = "vn"
readme = "README.md"
repository = "https://github.com/ferreira-tb/vn"
rust-version = "1.91"
version = "0.6.3"

[package.metadata.docs.rs]
no-default-features = true

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

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

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

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

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

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

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

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

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

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

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