pg_replica 0.1.0

Consensus-driven failover for PostgreSQL (Raft control plane)
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "pg_replica"
version = "0.1.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Consensus-driven failover for PostgreSQL (Raft control plane)"
readme = "README.md"
keywords = [
    "postgresql",
    "raft",
    "failover",
    "replication",
    "pgrx",
]
categories = ["database"]
license = "GPL-3.0-or-later"
repository = "https://github.com/hyperiondb"

[features]
default = ["pg18"]
pg13 = [
    "pgrx/pg13",
    "pgrx-tests/pg13",
]
pg14 = [
    "pgrx/pg14",
    "pgrx-tests/pg14",
]
pg15 = [
    "pgrx/pg15",
    "pgrx-tests/pg15",
]
pg16 = [
    "pgrx/pg16",
    "pgrx-tests/pg16",
]
pg17 = [
    "pgrx/pg17",
    "pgrx-tests/pg17",
]
pg18 = [
    "pgrx/pg18",
    "pgrx-tests/pg18",
]
pg_test = []

[lib]
name = "pg_replica"
crate-type = [
    "cdylib",
    "lib",
]
path = "src/lib.rs"

[dependencies.libc]
version = "0.2"

[dependencies.pgrx]
version = "=0.18.1"

[dependencies.protobuf]
version = "2"

[dependencies.raft]
version = "0.7.0"
features = ["protobuf-codec"]
default-features = false

[dependencies.slog]
version = "2.2"

[dev-dependencies.pgrx-tests]
version = "=0.18.1"

[profile.dev]
panic = "unwind"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "unwind"