Cargo Features
[dependencies]
sqlparser = { version = "0.53.0", default-features = false, features = ["std", "json_example", "visitor", "bigdecimal"] }
- default = std
-
The
std
feature is set by default wheneversqlparser
is added without
somewhere in the dependency tree.default-features = false - 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
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?