Cargo Features

[dependencies]
queryscript = { version = "0.1.4", default-features = false, features = ["all-engines", "multi-thread", "serde", "ts", "cli", "lsp", "backtraces", "duckdb-bundled", "clickhouse"] }
default = all-engines, cli

These default features are set whenever queryscript is added without default-features = false somewhere in the dependency tree.

all-engines default = clickhouse, duckdb-bundled
multi-thread lsp?

Enables rt-multi-thread of tokio

Affects runtime::build

serde clickhouse? lsp? ts?

Enables serde and serde of arrow-schema ^34 and half

arrow-schema:

We don't import this directly (rather, through "arrow"), but need the serde feature to be propagated through to it.

ts = serde

Enables ts-rs ^6.2

cli default = backtraces, clap, home, rustyline

Required by the qs binary

lsp = multi-thread, regex, serde, serde_json, tower-lsp

Enables fs, io-std, io-util and macros of tokio

Required by the qs-lsp binary

backtraces cli

Enables backtraces of snafu ^0.7.3

duckdb-bundled all-engines

Engines

Enables bundled of duckdb-queryscript

-- ENGINES ---
DuckDB.

clickhouse all-engines = chrono-tz, serde

Enables clickhouse-rs ^1.0.0-alpha.1

ClickHouse

Affects runtime::clickhouse

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

regex lsp?
serde_json lsp?
tower-lsp lsp?

Enables tower-lsp ^0.17

chrono-tz clickhouse?

Enables chrono-tz ^0.5.3

This must be in-sync with clickhouse-rs

clap cli

Enables clap

-- CLI ---

home cli
rustyline cli

Enables rustyline ^10.0.0