-
Notifications
You must be signed in to change notification settings - Fork 38
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
Subcommands and Extensions #33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice split, thanks for putting this together! Approving although PR is still marked as draft. Happy to review again once ready
Binary { | ||
name: "cargo-stylus-test", | ||
apis: &["test", "t"], | ||
rust_flags: Some(r#"RUSTFLAGS="-C link-args=-rdynamic""#), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice that we can specify the rust flags here right away to not push this to the caller
All commands tested, fixed up some hostio issues, but still need a few more edits to hostios in a follow-up PR. Very excited to finally get this in! |
This PR refactors
cargo stylus
into a series of sub commands which are invoked in child processes. This allows for a cleaner architecture as we add new features, and allows 3rd party extensions to our tool.