[package]
name = "graphql-codegen-rust"
version = "0.1.0"
edition = "2024"
rust-version = "1.86"
authors = ["Michel Courtine <github@michak.net>"]
description = "Generate Rust ORM code from GraphQL schemas"
documentation = "https://docs.rs/graphql-codegen-rust"
homepage = "https://github.com/michakfromparis/graphql-codegen-rust"
repository = "https://github.com/michakfromparis/graphql-codegen-rust"
readme = "README.md"
keywords = ["graphql", "codegen", "orm", "diesel", "sea-orm"]
categories = ["development-tools", "command-line-utilities"]
license = "MIT"
exclude = [
".github/",
"README.md",
"CHANGELOG.md",
"SECURITY.md"
]
[dependencies]
clap = { version = "4.5", features = ["derive"] }
reqwest = { version = "0.12", features = ["json"] }
tokio = { version = "1.47", features = ["full"] }
graphql-parser = "0.4"
syn = { version = "2.0", features = ["full", "extra-traits"] }
quote = "1.0"
proc-macro2 = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.9"
serde_yaml = { version = "0.9", optional = true }
anyhow = "1.0"
thiserror = "2.0"
fs-err = "3.1"
uuid = { version = "1.18", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
diesel = { version = "2.3", features = ["sqlite", "postgres", "uuid", "chrono"], optional = true }
sea-orm = { version = "1.1", features = ["sqlx-sqlite", "sqlx-postgres", "runtime-tokio-rustls", "macros"], optional = true }
[dev-dependencies]
tempfile = "3.23"
tokio = { version = "1.47", features = ["full"] }
syn = { version = "2.0", features = ["full", "extra-traits"] }
rand = "0.9"
[features]
default = []
diesel-support = ["diesel"]
sea-orm-support = ["sea-orm"]
yaml-codegen-config = ["serde_yaml"]