mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 21:12:55 +00:00
This makes it possible for the compiler to validate that a match block matched all PostgreSQL versions we support. ## Problem We did not have a complete picture about which places we had to test against PG versions, and what format these versions were: The full PG version ID format (Major/minor/bugfix `MMmmbb`) as transfered in protocol messages, or only the Major release version (`MM`). This meant type confusion was rampant. With this change, it becomes easier to develop new version-dependent features, by making type and niche confusion impossible. ## Summary of changes Every use of `pg_version` is now typed as either `PgVersionId` (u32, valued in decimal `MMmmbb`) or PgMajorVersion (an enum, with a value for every major version we support, serialized and stored like a u32 with the value of that major version) --------- Co-authored-by: Arpad Müller <arpad-m@users.noreply.github.com>
78 lines
2.0 KiB
TOML
78 lines
2.0 KiB
TOML
[package]
|
|
name = "compute_tools"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license.workspace = true
|
|
|
|
[features]
|
|
default = []
|
|
# Enables test specific features.
|
|
testing = ["fail/failpoints"]
|
|
|
|
[dependencies]
|
|
async-compression.workspace = true
|
|
base64.workspace = true
|
|
aws-config.workspace = true
|
|
aws-sdk-s3.workspace = true
|
|
aws-sdk-kms.workspace = true
|
|
aws-smithy-types.workspace = true
|
|
anyhow.workspace = true
|
|
axum = { workspace = true, features = [] }
|
|
axum-extra.workspace = true
|
|
camino.workspace = true
|
|
chrono.workspace = true
|
|
cfg-if.workspace = true
|
|
clap.workspace = true
|
|
fail.workspace = true
|
|
flate2.workspace = true
|
|
futures.workspace = true
|
|
http.workspace = true
|
|
indexmap.workspace = true
|
|
itertools.workspace = true
|
|
jsonwebtoken.workspace = true
|
|
metrics.workspace = true
|
|
nix.workspace = true
|
|
notify.workspace = true
|
|
num_cpus.workspace = true
|
|
once_cell.workspace = true
|
|
opentelemetry.workspace = true
|
|
opentelemetry_sdk.workspace = true
|
|
p256 = { version = "0.13", features = ["pem"] }
|
|
postgres.workspace = true
|
|
regex.workspace = true
|
|
reqwest = { workspace = true, features = ["json"] }
|
|
ring = "0.17"
|
|
serde.workspace = true
|
|
serde_with.workspace = true
|
|
serde_json.workspace = true
|
|
signal-hook.workspace = true
|
|
tar.workspace = true
|
|
tower.workspace = true
|
|
tower-http.workspace = true
|
|
tokio = { workspace = true, features = ["rt", "rt-multi-thread"] }
|
|
tokio-postgres.workspace = true
|
|
tokio-util.workspace = true
|
|
tokio-stream.workspace = true
|
|
tower-otel.workspace = true
|
|
tracing.workspace = true
|
|
tracing-opentelemetry.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
tracing-utils.workspace = true
|
|
thiserror.workspace = true
|
|
url.workspace = true
|
|
uuid.workspace = true
|
|
walkdir.workspace = true
|
|
x509-cert.workspace = true
|
|
|
|
postgres_versioninfo.workspace = true
|
|
postgres_initdb.workspace = true
|
|
compute_api.workspace = true
|
|
utils.workspace = true
|
|
workspace_hack.workspace = true
|
|
remote_storage = { version = "0.1", path = "../libs/remote_storage/" }
|
|
vm_monitor = { version = "0.1", path = "../libs/vm_monitor/" }
|
|
zstd = "0.13"
|
|
bytes = "1.0"
|
|
rust-ini = "0.20.0"
|
|
rlimit = "0.10.1"
|