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

need this functionality to import generated `proto` into the scope.

Signed-off-by: Gregory Hill Closes #27

This PR is based on #30 (after #30 has been merged I will rebase this PR on master)

- Can add one or more attributes to a struct with `.attribute` - Added tests for one and multiple attributes added to a struct.

This pull request enables enum variants to also have doc comments and annotations much like fields.

I want to add docs to enum variants and also to be able to have a `non_exhaustive` enum. (Would also like to be able to add constants to modules -...

You cannot set field visibility currently. I have added it in my branch @ https://github.com/LegNeato/codegen/tree/issue-3-and-4-field-documentation-annotation and will put up a PR when https://github.com/carllerche/codegen/pull/6 lands.

It would be nice if we could add const or static global items to codegen scopes. To ensure correctness, these could only be allowed for a small set of primitives,...

Pretty self explanatory PR. I wanted to add `codegen::Type` to a `HashSet` but to do that cleanly it would need to impl `Hash`. I figured someone else might want to...