wacore-binary 0.7.0

Binary data and constants for WhatsApp protocol
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.94"
name = "wacore-binary"
version = "0.7.0"
authors = ["João Lucas <jlucaso@hotmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Binary data and constants for WhatsApp protocol"
readme = false
license = "MIT"
repository = "https://github.com/jlucaso1/whatsapp-rust"

[features]
default = ["simd"]
serde = [
    "dep:serde",
    "compact_str/serde",
    "smallvec/serde",
]
simd = []
tracing-pii = []

[lib]
name = "wacore_binary"
crate-type = ["rlib"]
path = "src/lib.rs"

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

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

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

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

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

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

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

[dependencies.bytes]
version = "1.12"
default-features = false

[dependencies.compact_str]
version = "0.10"
default-features = false

[dependencies.itoa]
version = "1"

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
]
optional = true

[dependencies.smallvec]
version = "1.15"

[dependencies.smoothutf8]
version = "0.2.3"
default-features = false

[dependencies.stable_deref_trait]
version = "1.2.1"

[dependencies.yoke]
version = "0.8"
features = ["derive"]

[dependencies.zlib-rs]
version = "0.6.6"
features = [
    "std",
    "rust-allocator",
]
default-features = false

[dev-dependencies.divan]
version = "5.0.1"
package = "codspeed-divan-compat"

[dev-dependencies.flate2]
version = "1.1.9"
features = ["zlib-rs"]
default-features = false

[dev-dependencies.proptest]
version = "1.11.0"

[dev-dependencies.serde_json]
version = "1.0"
features = ["std"]
default-features = false

[build-dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
    "alloc",
]

[build-dependencies.serde_json]
version = "1.0"
features = ["std"]
default-features = false

[lints.clippy]
dbg_macro = "deny"
disallowed_methods = "deny"
disallowed_types = "deny"
print_stderr = "warn"
print_stdout = "warn"
todo = "deny"

[lints.rust]
unused_qualifications = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs)"]