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 std feature for std use #40

Merged
merged 4 commits into from
May 4, 2022
Merged

Add std feature for std use #40

merged 4 commits into from
May 4, 2022

Conversation

leighmcculloch
Copy link
Member

What

Add default feature std that gates use of std.

Why

@graydon pointed out that there value in us making the xdr lib usable inside contracts, at least so we can use enum values, but maybe someone will need other things too.

Related stellar/xdrgen@31d5f0b

Close #38

Known limitations

The std feature still allows alloc. We plan to also add a feature to gate alloc, but that is lower priority and is tracked in #39.

@leighmcculloch leighmcculloch marked this pull request as ready for review May 4, 2022 04:31
@leighmcculloch leighmcculloch merged commit 1fa7c3e into main May 4, 2022
@leighmcculloch leighmcculloch deleted the no-std branch May 4, 2022 04:40
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.

Put std use behind a feature
1 participant