[package]
edition = "2021"
rust-version = "1.79.0"
name = "jam-codec"
version = "0.1.2"
authors = ["Parity Technologies <admin@parity.io>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight, efficient, binary codec for JAM"
readme = "README.md"
categories = ["encoding"]
license = "Apache-2.0"
repository = "https://github.com/paritytech/jam-codec"
[features]
bit-vec = ["bitvec"]
chain-error = []
default = ["std"]
derive = ["jam-codec-derive"]
dump-test-vectors = []
full = []
fuzz = [
"std",
"arbitrary",
]
max-encoded-len = ["jam-codec-derive?/max-encoded-len"]
std = [
"serde/std",
"bitvec?/std",
"byte-slice-cast/std",
"chain-error",
]
[lib]
name = "jam_codec"
path = "src/lib.rs"
bench = false
[[test]]
name = "bitflags"
path = "tests/bitflags.rs"
[[test]]
name = "bounds"
path = "tests/bounds.rs"
[[test]]
name = "chain-error"
path = "tests/chain-error.rs"
[[test]]
name = "clippy"
path = "tests/clippy.rs"
[[test]]
name = "decode_with_mem_tracking_ui"
path = "tests/decode_with_mem_tracking_ui.rs"
[[test]]
name = "max_encoded_len"
path = "tests/max_encoded_len.rs"
[[test]]
name = "max_encoded_len_ui"
path = "tests/max_encoded_len_ui.rs"
[[test]]
name = "mem_tracking"
path = "tests/mem_tracking.rs"
[[test]]
name = "mod"
path = "tests/mod.rs"
[[test]]
name = "scale_codec_ui"
path = "tests/scale_codec_ui.rs"
[[test]]
name = "single_field_struct_encoding"
path = "tests/single_field_struct_encoding.rs"
[[test]]
name = "size_hint"
path = "tests/size_hint.rs"
[[test]]
name = "skip"
path = "tests/skip.rs"
[[test]]
name = "test_vectors"
path = "tests/test_vectors.rs"
[[test]]
name = "type_inference"
path = "tests/type_inference.rs"
[[test]]
name = "variant_number"
path = "tests/variant_number.rs"
[[bench]]
name = "benches"
path = "benches/benches.rs"
harness = false
[dependencies.arbitrary]
version = "1.4.2"
features = ["derive"]
optional = true
[dependencies.arrayvec]
version = "0.7"
default-features = false
[dependencies.bitvec]
version = "1"
features = ["alloc"]
optional = true
default-features = false
[dependencies.byte-slice-cast]
version = "1.2.3"
default-features = false
[dependencies.bytes]
version = "1"
optional = true
default-features = false
[dependencies.const_format]
version = "0.2.34"
[dependencies.generic-array]
version = "0.14.7"
optional = true
[dependencies.impl-trait-for-tuples]
version = "0.2.3"
[dependencies.jam-codec-derive]
version = "=0.1.2"
optional = true
default-features = false
[dependencies.serde]
version = "1.0.219"
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.7.0"
[dev-dependencies.enumflags2]
version = "0.7.12"
[dev-dependencies.hex]
version = "0.4.3"
[dev-dependencies.paste]
version = "1"
[dev-dependencies.proptest]
version = "1.7.0"
[dev-dependencies.quickcheck]
version = "1.0"
[dev-dependencies.rustversion]
version = "1"
[dev-dependencies.serde_derive]
version = "1.0"
[dev-dependencies.trybuild]
version = "1.0.110"
[build-dependencies.rustversion]
version = "1"