mrpc 0.1.0

MessagePack-RPC for Rust
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 = "mrpc"
version = "0.1.0"
authors = ["Aldo Cortesi <aldo@corte.si>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MessagePack-RPC for Rust"
readme = "README.md"
keywords = [
    "msgpack",
    "rpc",
    "messagepack",
    "msgpack-rpc",
]
license = "MIT"
repository = "https://github.com/cortesi/mrpc"

[features]
default = []
serde = [
    "dep:rmp-serde",
    "dep:serde",
]

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

[[example]]
name = "echo"
path = "examples/echo.rs"

[[example]]
name = "serde_support"
path = "examples/serde_support.rs"
required-features = ["serde"]

[[example]]
name = "simple_client"
path = "examples/simple_client.rs"

[[example]]
name = "simple_server"
path = "examples/simple_server.rs"

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

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

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

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

[dependencies.async-trait]
version = "0.1.80"

[dependencies.bytes]
version = "1.6.0"

[dependencies.rmp-serde]
version = "1.3.0"
optional = true

[dependencies.rmpv]
version = "1.3.0"

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

[dependencies.thiserror]
version = "2.0.9"

[dependencies.tokio]
version = "1.39.0"
features = ["full"]

[dependencies.tracing]
version = "0.1.40"

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

[dev-dependencies.futures]
version = "0.3.30"

[dev-dependencies.lazy_static]
version = "1.5.0"

[dev-dependencies.msgpack-rpc]
version = "0.4.2"

[dev-dependencies.tempfile]
version = "3.10.1"

[dev-dependencies.tokio-util]
version = "0.7.11"
features = ["io-util"]

[dev-dependencies.tracing-test]
version = "0.2.5"

[lints.clippy]
absolute_paths = "warn"
branches_sharing_code = "warn"
cfg_not_test = "warn"
cognitive_complexity = "warn"
comparison_chain = "warn"
excessive_nesting = "warn"
ignore_without_reason = "warn"
items_after_statements = "warn"
let_underscore_must_use = "warn"
many_single_char_names = "warn"
missing_docs_in_private_items = "warn"
multiple_inherent_impl = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
redundant_clone = "warn"
redundant_pub_crate = "warn"
self_named_module_files = "warn"
tests_outside_test_module = "warn"
too_many_lines = "warn"
use_self = "warn"
wildcard_dependencies = "warn"

[lints.rust]
missing_docs = "warn"