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

Introduce the javy-config crate #664

Merged

Conversation

saulecabrera
Copy link
Member

This commit prepares the terrain to bridge the gap in configurability between the CLI and Javy, the crate.
The intention behind introducing a new crate is to:

  • Reduce code duplication and sync the options between the CLI and the core crate.
  • Make it easy to pass the options into WebAssemlby by using bitflags.

This PR doesn't introduce any new functionality. A follow up PR will include new commands in the CLI which will make use of the share configuration.

Checklist

  • I've updated the relevant CHANGELOG files if necessary. Changes to javy-cli and javy-core do not require updating CHANGELOG files.
  • I've updated the relevant crate versions if necessary. Versioning policy for library crates
  • I've updated documentation including crate documentation if necessary.

This commit prepares the terrain to bridge the gap in configurability
between the CLI and Javy, the crate.
The intention behind introducing a new crate is to:

* Reduce code duplication and sync the options between the CLI and the
  core crate.
* Make it easy to pass the options into WebAssemlby by using bitflags.

This PR doesn't introduce any new functionality. A follow up PR will
include new commands in the CLI which will make use of the share
configuration.
@saulecabrera saulecabrera requested a review from jeffcharles June 11, 2024 19:09
@saulecabrera
Copy link
Member Author

In case the intention is not clear from the commit message/PR, the intention is to pass the config as a single u32 into WebAssembly, hence the usage of bitflags.

crates/javy-config/src/lib.rs Outdated Show resolved Hide resolved
crates/javy-config/src/lib.rs Outdated Show resolved Hide resolved
@saulecabrera saulecabrera enabled auto-merge (squash) June 12, 2024 13:33
@saulecabrera saulecabrera merged commit f680f1f into bytecodealliance:main Jun 12, 2024
14 checks passed
@saulecabrera saulecabrera deleted the introduce-shared-javy-config branch June 12, 2024 13:44
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