pglite-oxide 0.3.0

Rust helpers for embedding the Electric SQL pglite WebAssembly PostgreSQL runtime
Documentation
# 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 = "2024"
rust-version = "1.92"
name = "pglite-oxide"
version = "0.3.0"
build = false
exclude = [
    ".config/**",
    ".github/**",
    "Cargo.toml.orig",
    "assets/bin/pg_dump.wasm",
    "assets/extensions/vector.tar.gz",
    "examples/tauri-sqlx-vanilla/**",
    "release-plz.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust helpers for embedding the Electric SQL pglite WebAssembly PostgreSQL runtime"
homepage = "https://github.com/f0rr0/pglite-oxide"
documentation = "https://docs.rs/pglite-oxide"
readme = "README.md"
keywords = [
    "postgres",
    "pglite",
    "wasm",
    "database",
    "embedded",
]
categories = [
    "database-implementations",
    "wasm",
    "development-tools::testing",
]
license = "MIT AND Apache-2.0 AND PostgreSQL"
repository = "https://github.com/f0rr0/pglite-oxide"

[package.metadata.pglite-oxide.assets]
postgres-version = "17.5"
postgres-pglite-branch = "REL_17_5-pglite"
pglite-build-repo = "electric-sql/pglite-build"
pglite-build-branch = "gh-pages"
pglite-build-commit = "4c78ee29513799a51d4e1f75008cf9c3f00b11e9"
pglite-npm-version-checked = "0.4.4"
runtime-archive-sha256 = "f6f90bf571c7f5bc925ff22f94233893c2c740466da2ad23bcd4e8e1ea8c498a"
pglite-wasi-sha256 = "ad423e536096ede1870f4802e7dbe4b49599c6e3bafc45aa9a4ddeeae2c5f4f8"
pgdata-template-archive-sha256 = "63e398b3cd4fec134d06539f064018fc2aa7fef75b9c331472f9b2d7385b913d"

[features]
default = ["runtime-cache"]
runtime-cache = ["wasmtime/cache"]

[lib]
name = "pglite_oxide"
path = "src/lib.rs"

[[bin]]
name = "pglite-dump"
path = "src/bin/pglite_dump.rs"

[[bin]]
name = "pglite-proxy"
path = "src/bin/pglite_proxy.rs"

[[example]]
name = "build_pgdata_template"
path = "examples/build_pgdata_template.rs"

[[test]]
name = "client_compat"
path = "tests/client_compat.rs"

[[test]]
name = "proxy_smoke"
path = "tests/proxy_smoke.rs"

[[test]]
name = "runtime_smoke"
path = "tests/runtime_smoke.rs"

[dependencies.anyhow]
version = "1"

[dependencies.directories]
version = "6"

[dependencies.flate2]
version = "1"

[dependencies.getrandom]
version = "0.4"

[dependencies.hex]
version = "0.4"

[dependencies.regex]
version = "1"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.tar]
version = "0.4"

[dependencies.tempfile]
version = "3"

[dependencies.tracing]
version = "0.1"

[dependencies.wasmtime]
version = "44"
features = [
    "cranelift",
    "parallel-compilation",
    "runtime",
]
default-features = false

[dependencies.wasmtime-wasi]
version = "44"
features = ["p1"]
default-features = false

[dependencies.zstd]
version = "0.13"
default-features = false

[dev-dependencies.sqlx]
version = "0.8"
features = [
    "postgres",
    "runtime-tokio",
]
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "time",
]

[dev-dependencies.tokio-postgres]
version = "0.7"

[profile.dev.package.wasmtime-internal-cache]
debug-assertions = false