# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.72.0" name = "edgedb_codegen" version = "0.2.1" authors = ["Ifiok Jr. "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Generate fully typed rust code from your EdgeDB schema and inline queries." homepage = "https://edgedb.com" readme = "readme.md" keywords = [ "edgedb", "database", "typesafe", "checked", "macros", ] categories = ["database"] license = "Unlicense" repository = "https://github.com/ifiokjr/edgedb_codegen" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "edgedb_codegen" path = "src/lib.rs" [[test]] name = "codegen" path = "tests/codegen.rs" [[test]] name = "compile" path = "tests/compile.rs" [[test]] name = "query" path = "tests/query.rs" [dependencies.bigdecimal] version = "0.4" optional = true [dependencies.bytes] version = "1" [dependencies.chrono] version = "0.4" optional = true [dependencies.document-features] version = "0.2" [dependencies.edgedb-derive] version = "0.5" optional = true [dependencies.edgedb-errors] version = "0.4" [dependencies.edgedb-protocol] version = "0.6" features = ["all-types"] [dependencies.edgedb-tokio] version = "0.5.1" features = [ "unstable", "derive", ] optional = true [dependencies.edgedb_codegen_macros] version = "0.2.1" [dependencies.num-bigint] version = "0.4" optional = true [dependencies.num-traits] version = "0.2" optional = true [dependencies.serde] version = "1" features = ["derive"] optional = true [dependencies.serde_bytes] version = "0.11" optional = true [dependencies.typed-builder] version = "0.20" optional = true [dependencies.uuid] version = "1" [dev-dependencies.assert2] version = "0.3" [dev-dependencies.edgedb_codegen_core] version = "0.2.1" features = ["with_all"] [dev-dependencies.insta] version = "1" features = [ "ron", "yaml", "redactions", ] [dev-dependencies.proc-macro2] version = "1" [dev-dependencies.rstest] version = "0.22" [dev-dependencies.rustversion] version = "1" [dev-dependencies.test-log] version = "0.2" features = [ "log", "trace", ] [dev-dependencies.tokio] version = "1" features = [ "time", "test-util", "fs", ] [dev-dependencies.trybuild] version = "1" [features] builder = ["dep:typed-builder"] default = ["with_all"] query = [ "edgedb_codegen_macros/query", "dep:edgedb-tokio", "dep:edgedb-derive", ] 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", ] [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