| Crates.io | zod_gen_derive |
| lib.rs | zod_gen_derive |
| version | 1.2.0 |
| created_at | 2025-07-25 13:47:39.407582+00 |
| updated_at | 2025-12-05 11:44:44.388785+00 |
| description | Derive macro for zod_gen - automatically generate Zod schemas from Rust types with serde rename support |
| homepage | https://github.com/cimatic/zod_gen |
| repository | https://github.com/cimatic/zod_gen |
| max_upload_size | |
| id | 1767629 |
| size | 10,404 |
Derive macro for zod_gen - automatically generate Zod schemas from Rust types.
#[derive(ZodSchema)] procedural macrouse zod_gen::ZodSchema;
use zod_gen_derive::ZodSchema;
#[derive(ZodSchema)]
struct User {
id: u64,
name: String,
is_admin: bool,
}
#[derive(ZodSchema)]
enum Status {
Active,
Inactive,
}
For more examples and documentation, see the main repository.