mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 21:12:55 +00:00
* Use workspace variables from cargo, coming with rustc [1.64](https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1640-2022-09-22) See https://doc.rust-lang.org/nightly/cargo/reference/workspaces.html#the-package-table and https://doc.rust-lang.org/nightly/cargo/reference/workspaces.html#the-dependencies-table sections. Now, all dependencies in all non-root `Cargo.toml` files are defined as ``` clap.workspace = true ``` sometimes, when extra features are needed, as ``` bytes = {workspace = true, features = ['serde'] } ``` With the actual declarations (with shared features and version numbers/file paths/etc.) in the root Cargo.toml. Features are additive: https://doc.rust-lang.org/nightly/cargo/reference/specifying-dependencies.html#inheriting-a-dependency-from-a-workspace * Uses the mechanism above to set common, 2021, edition and license across the workspace * Mechanically bumps a few dependencies * Updates hakari format, as it suggested: ``` work/neon/neon kb/cargo-templated ❯ cargo hakari generate info: no changes detected info: new hakari format version available: 3 (current: 2) (add or update `dep-format-version = "3"` in hakari.toml, then run `cargo hakari generate && cargo hakari manage-deps`) ```
41 lines
881 B
TOML
41 lines
881 B
TOML
[package]
|
|
name = "storage_broker"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[features]
|
|
bench = []
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
async-stream.workspace = true
|
|
bytes.workspace = true
|
|
clap = { workspace = true, features = ["derive"] }
|
|
const_format.workspace = true
|
|
futures.workspace = true
|
|
futures-core.workspace = true
|
|
futures-util.workspace = true
|
|
git-version.workspace = true
|
|
humantime.workspace = true
|
|
hyper = { workspace = true, features = ["full"] }
|
|
once_cell.workspace = true
|
|
parking_lot.workspace = true
|
|
prost.workspace = true
|
|
tonic.workspace = true
|
|
tokio = { workspace = true, features = ["rt-multi-thread"] }
|
|
tokio-stream.workspace = true
|
|
tracing.workspace = true
|
|
metrics.workspace = true
|
|
utils.workspace = true
|
|
|
|
workspace_hack.workspace = true
|
|
|
|
[build-dependencies]
|
|
tonic-build.workspace = true
|
|
|
|
[[bench]]
|
|
name = "rps"
|
|
harness = false
|
|
|