| Crates.io | prax-codegen |
| lib.rs | prax-codegen |
| version | 0.5.0 |
| created_at | 2025-12-20 23:12:28.679263+00 |
| updated_at | 2026-01-07 18:33:24.088272+00 |
| description | Procedural macros for code generation in the Prax ORM |
| homepage | |
| repository | https://github.com/pegasusheavy/prax-orm |
| max_upload_size | |
| id | 1997087 |
| size | 266,298 |
Procedural macro code generation for Prax ORM.
prax-codegen provides proc-macros for generating type-safe Rust code from Prax schema definitions.
#[derive(Model)] macro for struct generationprax_schema! macro for schema-based code generationuse prax_codegen::prax_schema;
prax_schema!("prax/schema.prax");
// Generated code includes:
// - User struct with all fields
// - user module with filter functions
// - Type-safe query builders
Enable plugins in your schema:
generator client {
provider = "prax-rust"
plugins = ["graphql", "validator", "json-schema"]
}
Licensed under either of Apache License, Version 2.0 or MIT license at your option.