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

Add macro for code metadata #914

Merged
merged 18 commits into from
Apr 20, 2023
Merged

Add macro for code metadata #914

merged 18 commits into from
Apr 20, 2023

Conversation

sisuresh
Copy link
Contributor

What

Related to #901.

Adds a macro to write a "metadata" field to the WASM custom section. This PR uses the XDR from https://github.com/stellar/stellar-xdr/pull/49/files.

Example usage metadata!(key="metadata", val="desc=hello world contract,written by=bob");

Copy link
Member

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

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

👏🏻

soroban-sdk-macros/src/lib.rs Outdated Show resolved Hide resolved
soroban-sdk-macros/src/lib.rs Outdated Show resolved Hide resolved
soroban-sdk-macros/src/lib.rs Outdated Show resolved Hide resolved
soroban-sdk-macros/src/lib.rs Outdated Show resolved Hide resolved
soroban-sdk-macros/src/lib.rs Outdated Show resolved Hide resolved
soroban-sdk/src/lib.rs Outdated Show resolved Hide resolved
sisuresh and others added 2 commits April 18, 2023 16:57
Co-authored-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com>
Co-authored-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com>
@sisuresh sisuresh marked this pull request as ready for review April 19, 2023 21:51
@sisuresh sisuresh marked this pull request as draft April 19, 2023 22:28
@sisuresh sisuresh marked this pull request as ready for review April 19, 2023 22:30
soroban-sdk/src/lib.rs Outdated Show resolved Hide resolved
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.

3 participants