-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: separate prost
Cargo.toml
workspace and crate declaration (#…
…1033) Removes the need to always specify append `--workspace` in the common cargo commands. `rust-analyser` seems to get confused and locks the workspace longer than needed under the previous structure. (Lots of `Blocking waiting for file lock on build directory` waiting.) Unable to find an issue mentioning this. Goals it to then make repo to more easily managed. Examples: * Consolidate crate package metadata, dependency versions and clippy lints in the workspace `Cargo.toml` * Placing all crates in a `crates/` for automatic workspace member inclucion.
- Loading branch information
Showing
18 changed files
with
59 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,7 @@ | ||
[package] | ||
name = "prost" | ||
version = "0.12.4" | ||
authors = [ | ||
"Dan Burkert <[email protected]>", | ||
"Lucio Franco <[email protected]>", | ||
"Casper Meijn <[email protected]>", | ||
"Tokio Contributors <[email protected]>", | ||
] | ||
license = "Apache-2.0" | ||
repository = "https://github.com/tokio-rs/prost" | ||
documentation = "https://docs.rs/prost" | ||
readme = "README.md" | ||
description = "A Protocol Buffers implementation for the Rust Language." | ||
keywords = ["protobuf", "serialization"] | ||
categories = ["encoding"] | ||
edition = "2021" | ||
rust-version = "1.70" | ||
|
||
[workspace] | ||
members = [ | ||
"conformance", | ||
"prost", | ||
"prost-build", | ||
"prost-derive", | ||
"prost-types", | ||
|
@@ -38,31 +20,7 @@ exclude = [ | |
"afl", | ||
] | ||
|
||
[lib] | ||
# https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options | ||
bench = false | ||
|
||
[features] | ||
default = ["derive", "std"] | ||
derive = ["dep:prost-derive"] | ||
prost-derive = ["derive"] # deprecated, please use derive feature instead | ||
no-recursion-limit = [] | ||
std = [] | ||
|
||
[dependencies] | ||
bytes = { version = "1", default-features = false } | ||
prost-derive = { version = "0.12.4", path = "prost-derive", optional = true } | ||
|
||
[dev-dependencies] | ||
criterion = { version = "0.4", default-features = false } | ||
env_logger = { version = "0.10", default-features = false } | ||
log = "0.4" | ||
proptest = "1" | ||
rand = "0.8" | ||
resolver = "2" | ||
|
||
[profile.bench] | ||
debug = true | ||
|
||
[[bench]] | ||
name = "varint" | ||
harness = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[package] | ||
name = "prost" | ||
version = "0.12.4" | ||
authors = [ | ||
"Dan Burkert <[email protected]>", | ||
"Lucio Franco <[email protected]>", | ||
"Casper Meijn <[email protected]>", | ||
"Tokio Contributors <[email protected]>", | ||
] | ||
license = "Apache-2.0" | ||
repository = "https://github.com/tokio-rs/prost" | ||
documentation = "https://docs.rs/prost" | ||
readme = "../README.md" | ||
description = "A Protocol Buffers implementation for the Rust Language." | ||
keywords = ["protobuf", "serialization"] | ||
categories = ["encoding"] | ||
edition = "2021" | ||
rust-version = "1.70" | ||
|
||
[lib] | ||
# https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options | ||
bench = false | ||
|
||
[features] | ||
default = ["derive", "std"] | ||
derive = ["dep:prost-derive"] | ||
prost-derive = ["derive"] # deprecated, please use derive feature instead | ||
no-recursion-limit = [] | ||
std = [] | ||
|
||
[dependencies] | ||
bytes = { version = "1", default-features = false } | ||
prost-derive = { version = "0.12.4", path = "../prost-derive", optional = true } | ||
|
||
[dev-dependencies] | ||
criterion = { version = "0.4", default-features = false } | ||
env_logger = { version = "0.10", default-features = false } | ||
log = "0.4" | ||
proptest = "1" | ||
rand = "0.8" | ||
|
||
[[bench]] | ||
name = "varint" | ||
harness = false |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters