mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 17:02:56 +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`) ```
27 lines
1.0 KiB
TOML
27 lines
1.0 KiB
TOML
# This file contains settings for `cargo hakari`.
|
|
# See https://docs.rs/cargo-hakari/latest/cargo_hakari/config for a full list of options.
|
|
|
|
hakari-package = "workspace_hack"
|
|
|
|
# Format for `workspace-hack = ...` lines in other Cargo.tomls. Requires cargo-hakari 0.9.8 or above.
|
|
dep-format-version = "3"
|
|
|
|
# Setting workspace.resolver = "2" in the root Cargo.toml is HIGHLY recommended.
|
|
# Hakari works much better with the new feature resolver.
|
|
# For more about the new feature resolver, see:
|
|
# https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#cargos-new-feature-resolver
|
|
# Have to keep the resolver still here since hakari requires this field,
|
|
# despite it's now the default for 2021 edition & cargo.
|
|
resolver = "2"
|
|
|
|
# Add triples corresponding to platforms commonly used by developers here.
|
|
# https://doc.rust-lang.org/rustc/platform-support.html
|
|
platforms = [
|
|
# "x86_64-unknown-linux-gnu",
|
|
# "x86_64-apple-darwin",
|
|
# "x86_64-pc-windows-msvc",
|
|
]
|
|
|
|
# Write out exact versions rather than a semver range. (Defaults to false.)
|
|
# exact-versions = true
|