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

Rust: Attribute-style procedural macro to generate EVMC FFI code with user-defined data #262

Merged
merged 1 commit into from
Jun 4, 2019

Conversation

jakelang
Copy link
Collaborator

@jakelang jakelang commented May 3, 2019

Closes #168.
Closes #223.
Part of #308.

Copy link
Member

@axic axic left a comment

Choose a reason for hiding this comment

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

Need to add the new creates into .bumpversion.cfg

Copy link
Member

@axic axic left a comment

Choose a reason for hiding this comment

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

Can you order the builder helpers the same way they ordered in evmc_declare_vm?

@jakelang
Copy link
Collaborator Author

jakelang commented May 8, 2019 via email

@jakelang
Copy link
Collaborator Author

jakelang commented May 8, 2019 via email

@axic
Copy link
Member

axic commented May 8, 2019

Also we need to change the examplevm to use this in order to test it.

axic
axic previously requested changes May 22, 2019
Copy link
Member

@axic axic left a comment

Choose a reason for hiding this comment

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

Need to rebase.

@jakelang jakelang force-pushed the rust-proc-macro branch 3 times, most recently from d078d6c to 420f384 Compare May 24, 2019 22:40
@jakelang jakelang marked this pull request as ready for review May 24, 2019 22:45
@jakelang jakelang requested a review from axic May 24, 2019 22:45
@jakelang jakelang force-pushed the rust-proc-macro branch 2 times, most recently from 71685ca to 9c905e8 Compare May 24, 2019 23:07
axic
axic previously requested changes May 30, 2019
Copy link
Member

@axic axic left a comment

Choose a reason for hiding this comment

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

Please rebase.

@axic
Copy link
Member

axic commented May 30, 2019

NOTE: Removed the evmc_sys as ffi alias. May reintroduce later if I make a workaround.

Why? Can it be done in a separate PR then?

@axic
Copy link
Member

axic commented May 30, 2019

Have you tested that the bumpversion config works?

@jakelang
Copy link
Collaborator Author

jakelang commented Jun 1, 2019

Have you tested that the bumpversion config works?

How do I test this?

@jakelang jakelang dismissed axic’s stale review June 4, 2019 09:51

Rebased again

@jakelang jakelang force-pushed the rust-proc-macro branch 2 times, most recently from 71c2165 to 6d6d249 Compare June 4, 2019 11:08
#[macro_use]
use evmc_declare::evmc_declare_vm;

#[evmc_declare_vm("Foo VM", "ewasm")]
Copy link
Member

Choose a reason for hiding this comment

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

Since this is a comprehensive test, I'd say we need to VMs declared here:

  1. supports single capability and takes version from crate
  2. supports multiple capabilities and takes version from declare macro

@jakelang jakelang merged commit 9510206 into master Jun 4, 2019
@jakelang jakelang deleted the rust-proc-macro branch June 4, 2019 15:36
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.

Create Rust binding
2 participants