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

Subcommands and Extensions #33

Merged
merged 11 commits into from
May 31, 2024
Merged

Subcommands and Extensions #33

merged 11 commits into from
May 31, 2024

Conversation

rachel-bousfield
Copy link
Contributor

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.

Copy link
Contributor

@rauljordan rauljordan left a 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""#),
Copy link
Contributor

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

@rauljordan rauljordan marked this pull request as ready for review May 31, 2024 19:02
@rauljordan
Copy link
Contributor

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!

@rauljordan rauljordan merged commit be9faca into main May 31, 2024
8 checks passed
@rauljordan rauljordan deleted the extensions branch May 31, 2024 19:04
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.

2 participants