codegen icon indicating copy to clipboard operation
codegen copied to clipboard

A Rust library providing a builder API to generate Rust code.

Results 21 codegen issues
Sort by recently updated
recently updated
newest added

Edit: May 2 2023 Maintenance of this crate has been picked up by lovoslavlovchev (with some help from me) @ https://gitlab.com/IovoslavIovchev/codegen Please file new issues there. New versions of this...

It would be really nice to be able to add associate constants to traits and impls.

- Added support through the `vis` function like in `function`. - Added support for `new` field function to support builder pattern for visibility. - Added test for new functionality. Fixes...

- Supports both `push` and `new`(builder pattern) functions for adding associated constants. - Supports assigning a value to an associated constant. - Also added tests for all the new functionality....

Items can be used to perform actions based on what's in the Scope. Signed-off-by: David Calavera

This allows you to add attributes like cfg(test) to modules. Signed-off-by: David Calavera

This is required by some libraries, for example: - Serde enum representations (https://serde.rs/enum-representations.html) - Askama templates (https://djc.github.io/askama/creating_templates.html) - postgres-types (https://docs.rs/postgres-types/0.2.0/postgres_types/)

When dealing with some serialization libraries, it's required to add annotations to structs, enums and variants. There are currently three PR fixing this issue, could the maintainers review them and...