# 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 = "sngram-types"
version = "0.4.0"
authors = ["Joshua Smotritsky"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Types for sparse n-gram weight tables"
readme = "README.md"
keywords = [
    "ngram",
    "weights",
    "index",
    "search",
]
categories = [
    "data-structures",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/eliosai/sngram"

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

[dependencies.bytemuck]
version = "1.25"
features = ["derive"]

[dependencies.crc32fast]
version = "1.5"

[dependencies.rustc-hash]
version = "2.1"

[dependencies.thiserror]
version = "2.0"

[dev-dependencies]

[lints.clippy]
await_holding_lock = "warn"
await_holding_refcell_ref = "warn"
blanket_clippy_restriction_lints = "allow"
cast_possible_truncation = "warn"
cast_precision_loss = "warn"
cast_sign_loss = "warn"
cognitive_complexity = "warn"
expect_used = "warn"
indexing_slicing = "warn"
missing_const_for_fn = "warn"
missing_errors_doc = "warn"
module_name_repetitions = "allow"
must_use_candidate = "warn"
panic = "warn"
too_many_arguments = "warn"
too_many_lines = "warn"
unwrap_used = "warn"
wildcard_imports = "warn"

[lints.clippy.nursery]
level = "warn"
priority = -1

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

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

[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1
