mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-28 18:21:20 +00:00
Previously, we would specify the version and path of our workspace dependencies in each of our crates. This is error prone as https://github.com/libp2p/rust-libp2p/pull/3658#discussion_r1153278072 for example shows. Problems like these happened in the past too. There is no need for us to ever depend on a earlier version than the most current one in our crates. It thus makes sense that we manage this version in a single place. Cargo supports a feature called "workspace inheritance" which allows us to share a dependency declaration across a workspace and inherit it with `{ workspace = true }`. We do this for all our workspace dependencies and for the MSRV. Resolves #3787. Pull-Request: #3715.
26 lines
861 B
TOML
26 lines
861 B
TOML
[package]
|
|
name = "quick-protobuf-codec"
|
|
edition = "2021"
|
|
rust-version = { workspace = true }
|
|
description = "Asynchronous de-/encoding of Protobuf structs using asynchronous-codec, unsigned-varint and quick-protobuf."
|
|
version = "0.2.0"
|
|
authors = ["Max Inden <mail@max-inden.de>"]
|
|
license = "MIT"
|
|
repository = "https://github.com/libp2p/rust-libp2p"
|
|
keywords = ["networking"]
|
|
categories = ["asynchronous"]
|
|
|
|
[dependencies]
|
|
asynchronous-codec = { version = "0.6" }
|
|
bytes = { version = "1" }
|
|
thiserror = "1.0"
|
|
unsigned-varint = { version = "0.7", features = ["asynchronous_codec"] }
|
|
quick-protobuf = "0.8"
|
|
|
|
# Passing arguments to the docsrs builder in order to properly document cfg's.
|
|
# More information: https://docs.rs/about/builds#cross-compiling
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
rustc-args = ["--cfg", "docsrs"]
|