Skip to content

Conversation

@rvagg
Copy link
Member

@rvagg rvagg commented Jul 17, 2024

  • Very basic initial version, only structs are supported, basic sub-type support
  • Introduces parsing and representation of comments - before types and on the same line as struct fields (to be expanded to other fields)
  • Introduces annotations, appearing in comments just prior to a type or a struct field (to be expanded to other fields) of the form @annotation(value) where the parens and value is optional and all content on the same line is ignored. Annotations are arbitrary but can be used by the code generation engine.

Most interesting part of this change can be seen in the test fixtures, schema -> Go, Rust, TypeScript in https://github.com/ipld/js-ipld-schema/blob/rvagg/codegen/test/fixtures/gen/filecoin_miner_types.md

rvagg added 12 commits July 5, 2025 21:36
* Very basic initial version, only structs are supported, basic sub-type support
* Introduces parsing and representation of comments - before types and on the
  same line as struct fields (to be expanded to other fields)
* Introduces annotations, appearing in comments just prior to a type or a
  struct field (to be expanded to other fields) of the form
	`@annotation(value)` where the parens and value is optional and all content
	on the same line is ignored. Annotations are arbitrary but can be used by
	the code generation engine.
@rvagg rvagg marked this pull request as ready for review July 11, 2025 08:51
rvagg and others added 3 commits July 11, 2025 18:57
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.3.0 to 4.4.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v4.3.0...v4.4.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 4.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@rvagg rvagg changed the title feat!: code generation for Go, Rust, TypeScript (WIP) feat!: code generation for Go, Rust, TypeScript Jul 11, 2025
@rvagg rvagg merged commit 013bcae into master Jul 11, 2025
25 of 26 checks passed
@rvagg rvagg deleted the rvagg/codegen branch July 11, 2025 09:10
@github-actions
Copy link

🎉 This PR is included in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants