edgedb_codegen 0.1.0

Generate fully typed rust code from your EdgeDB schema and inline queries.
Documentation
[dependencies.bigdecimal]
optional = true
version = "0.4"

[dependencies.bytes]
version = "1"

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

[dependencies.document-features]
version = "0.2"

[dependencies.edgedb-derive]
version = "0.5"

[dependencies.edgedb-errors]
version = "0.4"

[dependencies.edgedb-protocol]
features = ["all-types"]
version = "0.6"

[dependencies.edgedb-tokio]
features = ["unstable", "derive"]
optional = true
version = "0.5.1"

[dependencies.edgedb_codegen_macros]
version = "0.1.0"

[dependencies.num-bigint]
optional = true
version = "0.4"

[dependencies.num-traits]
optional = true
version = "0.2"

[dependencies.serde]
features = ["derive"]
optional = true
version = "1"

[dependencies.serde_bytes]
optional = true
version = "0.11"

[dependencies.typed-builder]
version = "0.20"

[dependencies.uuid]
version = "1"

[dev-dependencies.assert2]
version = "0.3"

[dev-dependencies.edgedb_codegen_core]
features = ["with_all"]
version = "0.1.0"

[dev-dependencies.insta]
features = ["ron", "yaml", "redactions"]
version = "1"

[dev-dependencies.proc-macro2]
version = "1"

[dev-dependencies.rstest]
version = "0.22"

[dev-dependencies.rustversion]
version = "1"

[dev-dependencies.test-log]
features = ["log", "trace"]
version = "0.2"

[dev-dependencies.tokio]
features = ["time", "test-util", "fs"]
version = "1"

[dev-dependencies.trybuild]
version = "1"

[features]
default = ["with_all"]
query = ["edgedb_codegen_macros/query", "dep:edgedb-tokio"]
serde = ["edgedb_codegen_macros/serde", "edgedb-protocol/with-serde", "dep:serde", "dep:serde_bytes", "uuid/serde", "chrono/serde"]
with_all = ["edgedb_codegen_macros/with_all", "with_bigint", "with_bigdecimal", "with_chrono", "edgedb-protocol/all-types"]
with_bigdecimal = ["edgedb_codegen_macros/with_bigdecimal", "dep:bigdecimal", "dep:num-bigint", "dep:num-traits", "edgedb-protocol/with-bigdecimal"]
with_bigint = ["edgedb_codegen_macros/with_bigint", "dep:num-bigint", "dep:num-traits", "edgedb-protocol/with-num-bigint"]
with_chrono = ["edgedb_codegen_macros/with_chrono", "dep:chrono", "edgedb-protocol/with-chrono"]

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

[lints.clippy]
blocks_in_conditions = "allow"
cargo_common_metadata = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
expl_impl_clone_on_copy = "allow"
items_after_statements = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
no_effect_underscore_binding = "allow"
tabs-in-doc-comments = "allow"
too_many_lines = "allow"
wildcard_dependencies = "deny"
wildcard_imports = "allow"

[lints.clippy.complexity]
level = "warn"
priority = -1

[lints.clippy.correctness]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.clippy.perf]
level = "warn"
priority = -1

[lints.clippy.style]
level = "warn"
priority = -1

[lints.clippy.suspicious]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "deny"
unstable_features = "deny"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"

[lints.rust.rust_2021_compatibility]
level = "warn"
priority = -1

[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1

[package]
authors = ["Ifiok Jr. <ifiokotung@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["database"]
description = "Generate fully typed rust code from your EdgeDB schema and inline queries."
edition = "2021"
homepage = "https://edgedb.com"
keywords = ["edgedb", "database", "typesafe", "checked", "macros"]
license = "Unlicense"
name = "edgedb_codegen"
readme = "readme.md"
repository = "https://github.com/ifiokjr/edgedb_codegen"
rust-version = "1.71.0"
version = "0.1.0"

[[test]]
name = "codegen"
path = "tests/codegen.rs"

[[test]]
name = "compile"
path = "tests/compile.rs"

[[test]]
name = "query"
path = "tests/query.rs"