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

Feat: Make cargo-witgen into lib so that other CLI apps can reuse it #26

Merged
merged 9 commits into from
Apr 10, 2022

Conversation

willemneal
Copy link
Collaborator

This creates a new Witgen struct that handles generating the wit string and its output. This way other applications (specifically witme) can use #[clap(flatten)] to inject it into their subcommand.

Copy link
Owner

@bnjjj bnjjj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good ! Just one suggestion. If it's ready to merge feel free to merge it

crates/cargo_witgen/src/app.rs Outdated Show resolved Hide resolved
Also `parse_crate_as_file` now returns `File` and adds `parse_file`
Copy link
Owner

@bnjjj bnjjj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it needs documentation on public items

crates/cargo_witgen/src/app.rs Show resolved Hide resolved
crates/witgen_macro_helper/src/lib.rs Outdated Show resolved Hide resolved
crates/witgen_macro_helper/src/lib.rs Show resolved Hide resolved
willemneal and others added 2 commits April 10, 2022 19:37
Co-authored-by: Coenen Benjamin <benjamin.coenen@hotmail.com>
@willemneal
Copy link
Collaborator Author

Thanks for the quick review! I addressed most of your issues. I plan to add the AST types this week!

@willemneal willemneal merged commit 8e489df into bnjjj:master Apr 10, 2022
@bnjjj
Copy link
Owner

bnjjj commented Apr 11, 2022

Should I plan a release before the AST stuffs ?

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

Successfully merging this pull request may close these issues.

None yet

2 participants