[package]
name = "sql2viz"
version = "0.2.0"
edition = "2021"
description = "Transform SQL queries into beautiful visualizations with DuckDB and Iced"
license = "MIT OR Apache-2.0"
repository = "https://github.com/nkwork9999/sql2viz"
keywords = ["duckdb", "chart", "gui", "sql","wasm"]
categories = ["visualization", "database", "gui","web-programming"]
readme = "README.md"
exclude = [
"python/sql2viz/__pycache__/",
"*.pyc",
"*.so",
"*.dylib",
"test.py",
"www/",
"pyproject.toml",
"python/",
]
[lib]
name = "sql2viz"
crate-type = ["cdylib", "rlib"]
[dependencies]
anyhow = "1.0"
thiserror = "2.0"
duckdb = { version = "1.4", features = ["bundled"], optional = true }
pyo3 = { version = "0.22", features = ["extension-module"], optional = true }
iced = { version = "0.13", features = ["canvas"], optional = true }
wasm-bindgen = { version = "0.2", optional = true }
wasm-bindgen-futures = { version = "0.4", optional = true }
js-sys = { version = "0.3", optional = true }
web-sys = { version = "0.3", features = [
"console",
"Window",
"Document",
"HtmlCanvasElement",
"CanvasRenderingContext2d",
"TextMetrics",
], optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde-wasm-bindgen = { version = "0.6", optional = true }
console_error_panic_hook = { version = "0.1", optional = true }
[features]
default = ["native"]
native = ["duckdb", "gui"]
gui = ["iced"]
python = ["pyo3", "duckdb"]
wasm = [
"wasm-bindgen",
"wasm-bindgen-futures",
"js-sys",
"web-sys",
"serde-wasm-bindgen",
"console_error_panic_hook",
]
[dev-dependencies]
tokio = { version = "1.42", features = ["full"] }
wasm-bindgen-test = "0.3"
[profile.release]
lto = true
codegen-units = 1
opt-level = 3
[profile.wasm-release]
inherits = "release"
opt-level = "z"
[package.metadata.docs.rs]
all-features = true
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-Oz", "--enable-mutable-globals"]