[package]
edition = "2021"
rust-version = "1.95.0"
name = "rocketmq-protocol"
version = "1.0.0"
authors = ["mxsm <mxsm@apache.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Runtime-neutral RocketMQ wire protocol contracts"
homepage = "https://github.com/mxsm/rocketmq-rust"
readme = "README.md"
keywords = [
"apache-rocketmq",
"rocketmq-rust",
"rocketmq-rs",
"rust",
"rocketmq-client",
]
license = "Apache-2.0"
repository = "https://github.com/mxsm/rocketmq-rust"
[features]
default = []
simd = ["dep:simd-json"]
[lib]
name = "rocketmq_protocol"
path = "src/lib.rs"
[[test]]
name = "message_codec_compatibility"
path = "tests/message_codec_compatibility.rs"
[[test]]
name = "register_broker_body_limits"
path = "tests/register_broker_body_limits.rs"
[[test]]
name = "remoting_command_application_defaults"
path = "tests/remoting_command_application_defaults.rs"
[[test]]
name = "remoting_command_contract"
path = "tests/remoting_command_contract.rs"
[[test]]
name = "remoting_command_defaults"
path = "tests/remoting_command_defaults.rs"
[[test]]
name = "remoting_command_factory"
path = "tests/remoting_command_factory.rs"
[[test]]
name = "remoting_command_invalid_defaults"
path = "tests/remoting_command_invalid_defaults.rs"
[[test]]
name = "remoting_command_java_business_compatibility"
path = "tests/remoting_command_java_business_compatibility.rs"
[[test]]
name = "remoting_legacy_api_deprecation_ui"
path = "tests/remoting_legacy_api_deprecation_ui.rs"
[[test]]
name = "remoting_response_factory_contract"
path = "tests/remoting_response_factory_contract.rs"
[[test]]
name = "remoting_response_factory_deprecation_ui"
path = "tests/remoting_response_factory_deprecation_ui.rs"
[[test]]
name = "remoting_serialize_type_resolution"
path = "tests/remoting_serialize_type_resolution.rs"
[[test]]
name = "remoting_wire_golden"
path = "tests/remoting_wire_golden.rs"
[[test]]
name = "request_header_codec_registry"
path = "tests/request_header_codec_registry.rs"
[[test]]
name = "request_header_codec_runtime_ui"
path = "tests/request_header_codec_runtime_ui.rs"
[[test]]
name = "request_header_codec_typed_map"
path = "tests/request_header_codec_typed_map.rs"
[[test]]
name = "request_header_codec_ui"
path = "tests/request_header_codec_ui.rs"
[[test]]
name = "request_header_java_compatibility"
path = "tests/request_header_java_compatibility.rs"
[[test]]
name = "wire_primitives"
path = "tests/wire_primitives.rs"
[[bench]]
name = "remoting_command_hot_paths"
path = "benches/remoting_command_hot_paths.rs"
harness = false
[[bench]]
name = "request_header_codec"
path = "benches/request_header_codec.rs"
harness = false
[dependencies.bitvec]
version = "1.0.1"
[dependencies.bytemuck]
version = "1.25.0"
[dependencies.byteorder]
version = "1.5.0"
[dependencies.bytes]
version = "1.11.1"
[dependencies.cheetah-string]
version = "3.1.0"
features = [
"serde",
"bytes",
"simd",
]
[dependencies.chrono]
version = "0.4.45"
[dependencies.flate2]
version = "1.1.9"
features = ["zlib"]
default-features = false
[dependencies.itoa]
version = "1.0.18"
[dependencies.lz4_flex]
version = "0.14"
features = ["alloc"]
default-features = false
[dependencies.memchr]
version = "2.8.0"
[dependencies.rand]
version = "0.10.1"
[dependencies.rocketmq-error]
version = "1.0.0"
[dependencies.rocketmq-macros]
version = "1.0.0"
[dependencies.rocketmq-model]
version = "1.0.0"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.serde_json_any_key]
version = "2.1.0"
[dependencies.simd-json]
version = "0.18"
optional = true
[dependencies.thiserror]
version = "2.0.18"
[dependencies.zstd]
version = "0.14"
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.sysinfo]
version = "0.39.3"
[dev-dependencies.trybuild]
version = "=1.0.121"