photon-protocol 0.2.0

Internal codec and compression traits for Photon
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"
name = "photon-protocol"
version = "0.2.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Internal codec and compression traits for Photon"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/tensaur/photon"

[lib]
name = "photon_protocol"
path = "src/lib.rs"
bench = false

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

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

[dependencies.brotli]
version = "8"

[dependencies.bytes]
version = "1"
features = ["serde"]

[dependencies.lz4_flex]
version = "0.13"

[dependencies.photon-core]
version = "0.2.0"

[dependencies.postcard]
version = "1"
features = ["alloc"]

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.thiserror]
version = "2"

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.zstd]
version = "0.13"
features = ["default"]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.ruzstd]
version = "0.8"

[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
return_self_not_must_use = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
type_complexity = "allow"

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

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

[lints.rust]
unreachable_pub = "warn"