[package]
edition = "2024"
rust-version = "1.85"
name = "vlen"
version = "0.4.6"
authors = ["Harrison Chin <git@harry.aleeas.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance variable-length integer encoding with bulk operations, const fn support, and no_std compatibility"
readme = "README.md"
keywords = [
"encoding",
"integer",
"varint",
"no-std",
]
categories = [
"encoding",
"compression",
"no-std",
]
license = "MPL-2.0"
repository = "https://github.com/harrychin/vlen"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
alloc = []
default = []
full = [
"alloc",
"serde",
"simd",
]
serde = [
"dep:serde",
"dep:base64",
]
simd = []
[lib]
name = "vlen"
path = "vlen/mod.rs"
[[example]]
name = "wal"
path = "examples/wal.rs"
required-features = ["alloc"]
[[test]]
name = "const_api_test"
path = "tests/const_api_test.rs"
[[test]]
name = "contract_tests"
path = "tests/contract_tests.rs"
[[test]]
name = "property_tests"
path = "tests/property_tests.rs"
[[test]]
name = "serde_tests"
path = "tests/serde_tests.rs"
[[test]]
name = "tests"
path = "tests/tests.rs"
[[bench]]
name = "append"
path = "benches/append.rs"
harness = false
required-features = ["alloc"]
[[bench]]
name = "bulk"
path = "benches/bulk.rs"
harness = false
[[bench]]
name = "comparison"
path = "benches/comparison.rs"
harness = false
[[bench]]
name = "encode_decode"
path = "benches/encode_decode.rs"
harness = false
[dependencies.base64]
version = "0.23"
optional = true
default-features = false
[dependencies.serde]
version = "1.0"
optional = true
default-features = false
[dev-dependencies.arbtest]
version = "0.3"
[dev-dependencies.postcard]
version = "1.1"
features = ["use-std"]
[dev-dependencies.rstest]
version = "0.26"
[dev-dependencies.serde]
version = "1.0"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1.0"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
version = "0.8"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.integer-encoding]
version = "4.1"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.prost]
version = "0.14"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.stream-vbyte]
version = "0.4"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.vint64]
version = "1.0"