Cargo Features
[dependencies]
edgedb_codegen = { version = "0.2.1", default-features = false, features = ["with_bigint", "with_bigdecimal", "with_chrono", "with_all", "builder", "query", "serde"] }
- default = with_all
-
! #### Default
The default feature is
with_all
. - with_bigint with_all
-
! #### Types
Include the
num-bigint
dependency.Enables num-bigint and num-traits, with-num-bigint of edgedb-protocol, with_bigint of edgedb_codegen_macros
- with_bigdecimal with_all
-
Use the
bigdecimal
crate.Enables bigdecimal, num-bigint and num-traits, with-bigdecimal of edgedb-protocol, with_bigdecimal of edgedb_codegen_macros
- with_chrono with_all
-
Use the
chrono
crate for all dates.Enables chrono, with-chrono of edgedb-protocol, with_chrono of edgedb_codegen_macros
- with_all default = with_bigdecimal, with_bigint, with_chrono
-
Include all additional types. This is included by default. Use
default-features = false
to disable.Enables edgedb-protocol, with_all of edgedb_codegen_macros
- builder
-
! #### Behavior
Use the
typed-builder
crate to generate the builders for the generatedInput
structs.Enables typed-builder
- query
-
Turn on the
query
andtransaction
methods and anything that relies onedgedb-tokio
. The reason to separate this feature is to enable usage of this macro in browser environments whereedgedb-tokio
is not feasible.Enables edgedb-derive and edgedb-tokio, query of edgedb_codegen_macros
- serde
-
Enable serde for the generated code.
Enables serde and serde_bytes, serde of chrono, with-serde of edgedb-protocol, serde of edgedb_codegen_macros, serde of uuid