* Add DeriveRelatedEntity macro * Add generation for related enum and seaography * Add seaography cli param * update codegen tests * Fix DeriveRelatedEntity macro doc and includes * Fix all RelatedEntity variants for RelationBuilder * Add tests for code * Cargo format * Fix clippy code * Fix format * Fix unit tests * Fix unit tests * Provide default for seaography::RelationBuilder * Update changelog * Update tests * Modify code to match feedback * Bring old Related Impl trait generation * Modify DeriveRelatedEntity to gen impl seaography::RelationBuilder * Generate RelatedEntity enum when seaography flag is enabled * Update documentation * Update Changelog * Fix format errors * Fix code generation * relations with suffix are definition based * Rev => Reverse easier to read * snake_case to cameCase for name generation * Fix unit tests * Update lib.rs * derive `seaography::RelationBuilder` only when `seaography` feature is enabled * Try constructing async-graphql root for "related entity" and "entity" without relation * Update demo * CHANGELOG * Update Cargo.toml Co-authored-by: Chris Tsang <chris.2y3@outlook.com> * Revert "Update Cargo.toml" This reverts commit 6b1669836a4fb5040bfb08999f0cf640c74dc64d. --------- Co-authored-by: Billy Chan <ccw.billy.123@gmail.com> Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
38 lines
1.1 KiB
TOML
38 lines
1.1 KiB
TOML
[package]
|
|
name = "sea-orm-macros"
|
|
version = "0.12.0"
|
|
authors = [ "Billy Chan <ccw.billy.123@gmail.com>" ]
|
|
edition = "2021"
|
|
description = "Derive macros for SeaORM"
|
|
license = "MIT OR Apache-2.0"
|
|
homepage = "https://www.sea-ql.org/SeaORM"
|
|
documentation = "https://docs.rs/sea-orm"
|
|
repository = "https://github.com/SeaQL/sea-orm"
|
|
categories = [ "database" ]
|
|
keywords = ["async", "orm", "mysql", "postgres", "sqlite"]
|
|
rust-version = "1.65"
|
|
|
|
[lib]
|
|
name = "sea_orm_macros"
|
|
path = "src/lib.rs"
|
|
proc-macro = true
|
|
|
|
[dependencies]
|
|
bae = { version = "0.1", default-features = false, optional = true }
|
|
syn = { version = "1", default-features = false, features = ["parsing", "proc-macro", "derive", "printing"] }
|
|
quote = { version = "1", default-features = false }
|
|
heck = { version = "0.4", default-features = false }
|
|
proc-macro2 = { version = "1", default-features = false }
|
|
unicode-ident = { version = "1" }
|
|
|
|
[dev-dependencies]
|
|
sea-orm = { path = "../", features = ["macros", "tests-cfg"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
[features]
|
|
default = ["derive"]
|
|
postgres-array = []
|
|
derive = ["bae"]
|
|
strum = []
|
|
seaography = []
|