# 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 = "ggsql-cli"
version = "0.3.1"
authors = ["ggsql Team"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Command-line interface for ggsql"
homepage = "https://ggsql.org"
readme = false
license = "MIT"
repository = "https://github.com/posit-dev/ggsql"

[package.metadata.packager]
product-name = "ggsql"
identifier = "com.ggsql.app"
category = "DeveloperTool"
publisher = "ggsql Team"
authors = ["ggsql Team"]
icons = ["../doc/assets/logo.png"]
license-file = "../LICENSE.md"
out-dir = "target/release/packager"
homepage = "https://ggsql.org/"
description = "SQL extension for declarative data visualization"
long-description = "ggsql extends SQL with a VISUALISE clause for declarative data visualization based on Grammar of Graphics principles. Combine SQL queries with visualization specifications to create charts directly from your data."
copyright = "Copyright (c) 2026 ggsql Team"

[[package.metadata.packager.binaries]]
path = "ggsql"
main = true

[[package.metadata.packager.binaries]]
path = "ggsql-jupyter"
main = false

[[package.metadata.packager.resources]]
src = "../libs/"
target = "libs"

[features]
all-readers = [
    "duckdb",
    "postgres",
    "sqlite",
    "odbc",
]
all-writers = [
    "vegalite",
    "ggplot2",
]
builtin-data = ["ggsql/builtin-data"]
default = [
    "duckdb",
    "sqlite",
    "vegalite",
    "ipc",
    "parquet",
    "builtin-data",
    "odbc",
]
duckdb = ["ggsql/duckdb"]
ggplot2 = ["ggsql/ggplot2"]
ipc = ["ggsql/ipc"]
odbc = ["ggsql/odbc"]
parquet = ["ggsql/parquet"]
postgres = ["ggsql/postgres"]
sqlite = ["ggsql/sqlite"]
vegalite = ["ggsql/vegalite"]

[[bin]]
name = "ggsql"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.clap]
version = "4.4"
features = ["derive"]

[dependencies.ggsql]
version = "0.3.1"

[dependencies.regex]
version = "1.10"

[dependencies.serde_json]
version = "1.0"

[build-dependencies.regex]
version = "1.10"

[build-dependencies.ureq]
version = "3"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.termimad]
version = "0.31"
