# 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 = "kite_sql"
version = "0.1.4"
authors = [
    "Kould <kould2333@gmail.com>",
    "Xwg <loloxwg@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "kite_sql"
description = "SQL as a Function for Rust"
documentation = "https://docs.rs/kite_sql/latest/kite_sql/"
readme = "README.md"
keywords = [
    "sql",
    "sqlite",
    "database",
    "mysql",
]
categories = [
    "development-tools",
    "database",
]
license = "Apache-2.0"
repository = "https://github.com/KipData/KipSQL"

[package.metadata.wasm-pack.profile.release]
wasm-opt = false

[features]
default = ["macros"]
macros = []
net = [
    "dep:pgwire",
    "dep:async-trait",
    "dep:clap",
    "dep:env_logger",
    "dep:futures",
    "dep:log",
    "dep:tokio",
]
pprof = [
    "pprof/criterion",
    "pprof/flamegraph",
]

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

[[bin]]
name = "kite_sql"
path = "src/bin/server.rs"
required-features = ["net"]

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

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

[[bench]]
name = "query_bench"
path = "benchmarks/query_benchmark.rs"
harness = false
required-features = ["pprof"]

[dependencies.ahash]
version = "0.8"

[dependencies.async-trait]
version = "0.1"
optional = true

[dependencies.bincode]
version = "1"

[dependencies.bumpalo]
version = "3"
features = [
    "allocator-api2",
    "collections",
    "std",
]

[dependencies.byteorder]
version = "1"

[dependencies.chrono]
version = "0.4"

[dependencies.clap]
version = "4.5"
features = ["derive"]
optional = true

[dependencies.comfy-table]
version = "7"
default-features = false

[dependencies.csv]
version = "1"

[dependencies.env_logger]
version = "0.11"
optional = true

[dependencies.fixedbitset]
version = "0.4"

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.genawaiter]
version = "0.99"

[dependencies.itertools]
version = "0.12"

[dependencies.kite_sql_serde_macros]
version = "0.1.0"

[dependencies.log]
version = "0.4"
optional = true

[dependencies.ordered-float]
version = "4"
features = ["serde"]

[dependencies.parking_lot]
version = "0.12"
features = ["arc_lock"]

[dependencies.paste]
version = "1"

[dependencies.petgraph]
version = "0.6"

[dependencies.pgwire]
version = "0.28.0"
optional = true

[dependencies.recursive]
version = "0.1"

[dependencies.regex]
version = "1"

[dependencies.rust_decimal]
version = "1"

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

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

[dependencies.sqlparser]
version = "0.34"
features = ["serde"]

[dependencies.thiserror]
version = "1"

[dependencies.tokio]
version = "1.36"
features = ["full"]
optional = true

[dependencies.typetag]
version = "0.2"

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.dirs]
version = "5"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rocksdb]
version = "0.23"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.indicatif]
version = "0.17"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.sqlite]
version = "0.34"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tempfile]
version = "3.10"

[target.'cfg(target_arch = "wasm32")'.dependencies.base64]
version = "0.21"

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom_03]
version = "0.3"
features = ["wasm_js"]
package = "getrandom"

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.83"

[target.'cfg(target_arch = "wasm32")'.dependencies.once_cell]
version = "1"

[target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen]
version = "0.6.5"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.106"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.83"
features = [
    "Storage",
    "Window",
]

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3.56"

[target."cfg(unix)".dev-dependencies.pprof]
version = "0.13"
features = [
    "flamegraph",
    "criterion",
]

[profile.release]
lto = true
