# 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 = "duckdb"
version = "1.3.0"
authors = ["wangfenjin <wangfenj@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ergonomic wrapper for DuckDB"
homepage = "https://github.com/duckdb/duckdb-rs"
documentation = "http://docs.rs/duckdb/"
readme = "README.md"
keywords = [
    "duckdb",
    "database",
    "ffi",
]
categories = ["database"]
license = "MIT"
repository = "https://github.com/duckdb/duckdb-rs"

[package.metadata.docs.rs]
all-features = false
default-target = "x86_64-unknown-linux-gnu"
features = [
    "vtab",
    "vtab-arrow",
]
no-default-features = true

[package.metadata.playground]
all-features = false
features = []

[features]
appender-arrow = ["vtab-arrow"]
buildtime_bindgen = ["libduckdb-sys/buildtime_bindgen"]
bundled = ["libduckdb-sys/bundled"]
column_decltype = []
default = []
extensions-full = [
    "json",
    "parquet",
    "vtab-full",
]
extra_check = []
json = [
    "libduckdb-sys/json",
    "bundled",
]
loadable-extension = ["libduckdb-sys/loadable-extension"]
modern-full = [
    "chrono",
    "serde_json",
    "url",
    "r2d2",
    "uuid",
    "polars",
]
parquet = [
    "libduckdb-sys/parquet",
    "bundled",
]
polars = [
    "dep:polars",
    "dep:polars-arrow",
]
vscalar = []
vscalar-arrow = []
vtab = []
vtab-arrow = [
    "vtab",
    "num",
]
vtab-excel = [
    "vtab",
    "calamine",
]
vtab-full = [
    "vtab-excel",
    "vtab-arrow",
    "appender-arrow",
]
vtab-loadable = [
    "vtab",
    "duckdb-loadable-macros",
]

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

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

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

[[example]]
name = "hello-ext"
crate-type = ["cdylib"]
path = "examples/hello-ext/main.rs"
required-features = ["vtab-loadable"]

[[example]]
name = "hello-ext-capi"
crate-type = ["cdylib"]
path = "examples/hello-ext-capi/main.rs"
required-features = [
    "vtab-loadable",
    "loadable-extension",
]

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

[dependencies.arrow]
version = "55"
features = [
    "prettyprint",
    "ffi",
]
default-features = false

[dependencies.byteorder]
version = "1.3"
features = ["i128"]
optional = true

[dependencies.calamine]
version = "0.22.0"
optional = true

[dependencies.cast]
version = "0.3"
features = ["std"]

[dependencies.chrono]
version = "0.4.22"
optional = true

[dependencies.csv]
version = "1.1"
optional = true

[dependencies.duckdb-loadable-macros]
version = "=0.1.7"
optional = true

[dependencies.fallible-iterator]
version = "0.3"

[dependencies.fallible-streaming-iterator]
version = "0.1"

[dependencies.hashlink]
version = "0.9"

[dependencies.lazy_static]
version = "1.4"
optional = true

[dependencies.libduckdb-sys]
version = "=1.3.0"

[dependencies.num]
version = "0.4"
features = ["std"]
optional = true
default-features = false

[dependencies.num-integer]
version = "0.1.46"

[dependencies.polars]
version = "0.46"
features = ["dtype-full"]
optional = true

[dependencies.polars-arrow]
version = "0.46"
optional = true

[dependencies.r2d2]
version = "0.8.9"
optional = true

[dependencies.rust_decimal]
version = "1.14"

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.smallvec]
version = "1.6.1"

[dependencies.strum]
version = "0.25"
features = ["derive"]

[dependencies.url]
version = "2.1"
optional = true

[dependencies.uuid]
version = "1.0"
optional = true

[dev-dependencies.doc-comment]
version = "0.3"

[dev-dependencies.lazy_static]
version = "1.4"

[dev-dependencies.polars-core]
version = "0.46"

[dev-dependencies.pretty_assertions]
version = "1.4.0"

[dev-dependencies.rand]
version = "0.8.3"

[dev-dependencies.regex]
version = "1.6"

[dev-dependencies.tempdir]
version = "0.3.7"

[dev-dependencies.tempfile]
version = "3.1.0"

[dev-dependencies.unicase]
version = "2.6.0"

[dev-dependencies.uuid]
version = "1.0"
features = ["v4"]
