# 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"
rust-version = "1.88"
name = "adbc-spanner"
version = "0.1.0"
build = false
exclude = [
    ".github/",
    "scripts/",
    "/Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ADBC (Arrow Database Connectivity) driver for Google Cloud Spanner"
homepage = "https://github.com/fornwall/adbc-spanner"
documentation = "https://docs.rs/adbc-spanner"
readme = "README.md"
keywords = [
    "adbc",
    "arrow",
    "spanner",
    "database",
    "gcp",
]
categories = [
    "database",
    "api-bindings",
]
license = "Apache-2.0"
repository = "https://github.com/fornwall/adbc-spanner"

[package.metadata.docs.rs]
all-features = true

[package.metadata.release]
allow-branch = ["main"]
tag-name = "v{{version}}"
tag-message = "Release {{version}}"
pre-release-commit-message = "Release {{version}}"
publish = true
push = true

[features]
default = ["ffi"]
ffi = ["dep:adbc_ffi"]

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

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

[dependencies.adbc_core]
version = "0.23"

[dependencies.adbc_ffi]
version = "0.23"
optional = true

[dependencies.arrow-array]
version = ">=53.1, <59"

[dependencies.arrow-schema]
version = ">=53.1, <59"

[dependencies.base64]
version = "0.22"

[dependencies.google-cloud-auth]
version = "1.13"

[dependencies.google-cloud-spanner]
version = "0.34.2-preview"

[dependencies.serde_json]
version = "1"

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

[dev-dependencies.google-cloud-lro]
version = "1.8"

[dev-dependencies.google-cloud-spanner-admin-database-v1]
version = "1.12"

[dev-dependencies.google-cloud-spanner-admin-instance-v1]
version = "1.12"

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

[profile.release]
lto = "thin"
strip = true
