dsi-bitstream 0.7.0

A Rust implementation of read/write bit streams supporting several types of instantaneous codes
Documentation
# 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.85.0"
name = "dsi-bitstream"
version = "0.7.0"
authors = [
    "Tommaso Fontana <tommaso.fontana.96@gmail.com>",
    "Sebastiano Vigna <sebastiano.vigna@unimi.it>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust implementation of read/write bit streams supporting several types of instantaneous codes"
readme = "README.md"
keywords = [
    "bitstream",
    "codes",
    "compression",
]
categories = ["compression"]
license = "Apache-2.0 OR LGPL-2.1-or-later"
repository = "https://github.com/vigna/dsi-bitstream-rs/"

[features]
alloc = []
checks = []
default = [
    "std",
    "mem_dbg",
    "serde",
]
fuzz = ["dep:arbitrary"]
no_copy_impls = []
offset_of_enum = []
serde = ["dep:serde"]
std = ["alloc"]

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

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

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

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

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

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

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

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

[[bench]]
name = "vbyte"
path = "benches/vbyte.rs"
harness = false

[[bench]]
name = "write_gamma"
path = "benches/write_gamma.rs"
harness = false

[[bench]]
name = "write_unary"
path = "benches/write_unary.rs"
harness = false

[dependencies.anyhow]
version = "1.0.86"

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

[dependencies.common_traits]
version = "0.12.0"

[dependencies.impl-tools]
version = "0.11.4"

[dependencies.mem_dbg]
version = "0.3.0"
optional = true

[dependencies.rand]
version = "0.9.0"
features = ["small_rng"]

[dependencies.serde]
version = "1.0.228"
optional = true

[dev-dependencies.criterion]
version = "0.7.0"

[dev-dependencies.rand_distr]
version = "0.5.0"

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

[dev-dependencies.zip]
version = "5.1.1"

[profile.bench]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 2
debug-assertions = false
overflow-checks = false