Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subxt-codegen: Hide complexity and provide "simple" interface mirroring CLI/macro usage #1221

Closed
jsdw opened this issue Oct 23, 2023 · 1 comment
Assignees

Comments

@jsdw
Copy link
Collaborator

jsdw commented Oct 23, 2023

The subxt-codegen crate is a little complex to use, and it's easy to generate code that isn't valid (eg see #1211). Further, it's not really been given any TLC and isn't really code we'd want to support in a public interface anyway.

Let's hide away most of the complexirty and provide a builder-like interface that generates code with the same sort of options that the CLI tool or #[subxt] provides. The macro/CLI should both be able to use only this simple interface to do what they want.

We shouldn't cater for uses outside of generating code for Subxt here; A later step would be to factor the type generation stuff out into a separate crate so that others can generate rust types from metadata in a more general way than just for Subxt.

@jsdw
Copy link
Collaborator Author

jsdw commented Oct 31, 2023

Closed by #1225

@jsdw jsdw closed this as completed Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant