Skip to content

Commit 679f4e1

Browse files
committed
build(deps): Remove unused bytes dependency
1 parent 9ed944e commit 679f4e1

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

prost-build/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ format = ["dep:prettyplease", "dep:syn"]
1515
cleanup-markdown = ["dep:pulldown-cmark", "dep:pulldown-cmark-to-cmark"]
1616

1717
[dependencies]
18-
bytes = { version = "1", default-features = false }
1918
heck = { version = ">=0.4, <=0.5" }
2019
itertools = { version = ">=0.10, <=0.13", default-features = false, features = ["use_alloc"] }
2120
log = "0.4.4"

prost-build/src/collections.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub(crate) enum BytesType {
1616
/// The [`prost::alloc::vec::Vec<u8>`] type.
1717
#[default]
1818
Vec,
19-
/// The [`bytes::Bytes`] type.
19+
/// The [`bytes::Bytes`](prost::bytes::Bytes) type.
2020
Bytes,
2121
}
2222

prost-build/src/config.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl Config {
121121
self
122122
}
123123

124-
/// Configure the code generator to generate Rust [`bytes::Bytes`][1] fields for Protobuf
124+
/// Configure the code generator to generate Rust [`bytes::Bytes`](prost::bytes::Bytes) fields for Protobuf
125125
/// [`bytes`][2] type fields.
126126
///
127127
/// # Arguments
@@ -166,7 +166,6 @@ impl Config {
166166
/// config.bytes(&["my_bytes_field", ".foo.bar"]);
167167
/// ```
168168
///
169-
/// [1]: https://docs.rs/bytes/latest/bytes/struct.Bytes.html
170169
/// [2]: https://developers.google.com/protocol-buffers/docs/proto3#scalar
171170
/// [3]: https://doc.rust-lang.org/std/vec/struct.Vec.html
172171
pub fn bytes<I, S>(&mut self, paths: I) -> &mut Self

tests-2018/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(feature, values("edition-2
2323

2424
[dependencies]
2525
anyhow = "1.0.1"
26-
bytes = "1"
2726
cfg-if = "1"
2827
prost = { path = "../prost" }
2928
prost-types = { path = "../prost-types" }

0 commit comments

Comments
 (0)