Cargo Features

[dependencies]
sqlparser-queryscript = { version = "0.32.0", default-features = false, features = ["std", "json_example", "visitor", "bigdecimal"] }
default = std

The std feature is set by default whenever sqlparser-queryscript is added without default-features = false somewhere in the dependency tree.

std default
json_example = serde, serde_json

Enable JSON output in the cli example:

visitor = sqlparser_derive

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.

bigdecimal implicit feature

Enables bigdecimal ^0.3

bigdecimal:

Arbitrary precision decimal numbers

serde json_example?
serde_json json_example?

Enables serde_json

serde_json is only used in examples/cli, but we have to put it outside of dev-dependencies because of https://github.com/rust-lang/cargo/issues/1596

sqlparser_derive visitor?

Enables sqlparser_derive ^0.1.1