# 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.95"
name = "altair-base32"
version = "0.1.3"
authors = ["Jasoet <jasoet87@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Crockford Base32 encoding with u64 helpers and Mod-37 check digit"
homepage = "https://github.com/jasoet/altair-rs"
readme = "README.md"
keywords = [
    "base32",
    "crockford",
    "encoding",
    "ulid",
    "id",
]
categories = ["encoding"]
license = "MIT"
repository = "https://github.com/jasoet/altair-rs"

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

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

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

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

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

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

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

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

[dependencies.base32]
version = "0.5"

[dependencies.thiserror]
version = "2"

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

[dev-dependencies.pretty_assertions]
version = "1.4"

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"

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

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

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