bijoux 0.3.0

Bijective variable-length integer encodings (the bijou family): canonical by construction, 1-byte small values, length from the first byte
# 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.90"
name = "bijoux"
version = "0.3.0"
authors = ["Brooklyn Zelenka <hello@brooklynzelenka.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bijective variable-length integer encodings (the bijou family): canonical by construction, 1-byte small values, length from the first byte"
readme = "README.md"
keywords = [
    "varint",
    "variable-length",
    "canonical",
    "bijective",
]
categories = [
    "encoding",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/inkandswitch/bijou"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
arbitrary = ["dep:arbitrary"]
bolero = [
    "dep:bolero",
    "arbitrary",
]
default = [
    "i32",
    "i64",
    "i128",
    "u32",
    "u64",
    "u128",
]
i128 = []
i32 = []
i64 = []
u128 = []
u32 = []
u64 = []

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

[[example]]
name = "decode128"
path = "examples/decode128.rs"
required-features = ["u128"]

[[example]]
name = "decode32"
path = "examples/decode32.rs"
required-features = ["u32"]

[[example]]
name = "decode64"
path = "examples/decode64.rs"
required-features = ["u64"]

[[bench]]
name = "gungraun_shootout"
path = "benches/gungraun_shootout.rs"
harness = false
required-features = ["u64"]

[[bench]]
name = "shootout"
path = "benches/shootout.rs"
harness = false
required-features = ["u64"]

[[bench]]
name = "signed_shootout"
path = "benches/signed_shootout.rs"
harness = false
required-features = ["i64"]

[dependencies.arbitrary]
version = "1.4"
features = ["derive"]
optional = true

[dependencies.bolero]
version = "0.13.4"
features = ["arbitrary"]
optional = true

[dependencies.thiserror]
version = "2.0"
default-features = false

[dev-dependencies.arbitrary]
version = "1.4"
features = ["derive"]
optional = false

[dev-dependencies.bolero]
version = "0.13.4"
features = ["arbitrary"]

[dev-dependencies.criterion]
version = "0.5"
default-features = false

[dev-dependencies.criterion_pprof]
version = "0.15"
features = [
    "criterion",
    "flamegraph",
]
default-features = false
package = "pprof"

[dev-dependencies.gungraun]
version = "0.18"

[dev-dependencies.leb128]
version = "0.2"

[dev-dependencies.rand]
version = "0.8.5"
features = ["small_rng"]
default-features = false

[dev-dependencies.testresult]
version = "0.4.1"

[dev-dependencies.varu64]
version = "0.7"

[dev-dependencies.vu128]
version = "1.1"

[dev-dependencies.vu64]
version = "0.2"

[lints.clippy]
dbg_macro = "warn"
expect_used = "warn"
fallible_impl_from = "warn"
fn_params_excessive_bools = "warn"
indexing_slicing = "warn"
missing_const_for_fn = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "warn"
panic = "warn"
todo = "warn"
unneeded_field_pattern = "warn"
unwrap_used = "warn"
wildcard_enum_match_arm = "warn"

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

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

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

[lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "deny"
unsafe_code = "forbid"
unused_extern_crates = "deny"

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

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

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

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

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