# 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"
name = "osv-analyzer"
version = "0.2.0"
authors = ["Oleksii Pozhylenkov (Mr-Leshiy) <leshiy12345678@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust bindings for the osv-scalibr functionality."
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/Mr-Leshiy/osv-rs"

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

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

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

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

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

[dependencies.anyhow]
version = "1.0.102"

[dependencies.osv-types]
version = "0.1.1"

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

[dependencies.thiserror]
version = "2"

[dev-dependencies.rand]
version = "0.10"

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

[dev-dependencies.test-case]
version = "3.3.1"

[lints.clippy]
arithmetic_side_effects = "deny"
exit = "deny"
expect_used = "deny"
get_unwrap = "deny"
index_refutable_slice = "deny"
indexing_slicing = "deny"
match_wild_err_arm = "deny"
missing_docs_in_private_items = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "deny"
panic = "deny"
string_slice = "deny"
todo = "deny"
unchecked_time_subtraction = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"

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

[lints.rust]
let_underscore_drop = "deny"
missing_docs = "allow"
non_ascii_idents = "deny"
single_use_lifetimes = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
warnings = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(track_caller)"]

[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"
invalid_codeblock_attributes = "deny"
invalid_html_tags = "deny"
invalid_rust_codeblocks = "deny"
unescaped_backticks = "deny"
