graphql-codegen-rust 0.1.0

Generate Rust ORM code from GraphQL schemas
Documentation
[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]
# CLI
clap = { version = "4.5", features = ["derive"] }

# HTTP client
reqwest = { version = "0.12", features = ["json"] }
tokio = { version = "1.47", features = ["full"] }

# GraphQL parsing
graphql-parser = "0.4"

# Code generation
syn = { version = "2.0", features = ["full", "extra-traits"] }
quote = "1.0"
proc-macro2 = "1.0"

# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.9"
serde_yaml = { version = "0.9", optional = true }

# Error handling
anyhow = "1.0"
thiserror = "2.0"

# File system operations
fs-err = "3.1"

# UUID support (for GraphQL ID mapping)
uuid = { version = "1.18", features = ["v4", "serde"] }

# Date/time support for migrations
chrono = { version = "0.4", features = ["serde"] }

# Diesel (optional, for generation)
diesel = { version = "2.3", features = ["sqlite", "postgres", "uuid", "chrono"], optional = true }

# Sea-ORM (optional, for generation)
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"]