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

feat: add initial no_std support (for commitments) #173

Closed
wants to merge 4 commits into from

Conversation

JayWhite2357
Copy link
Contributor

@JayWhite2357 JayWhite2357 commented Sep 20, 2024

Rationale for this change

In order to be able to update commitments from within a no_std environment (like Substrate's WASM), we need to allow a portion of the proof-of-sql crate to be no_std compatible. This PR is a follow-up of #172 that completes the work.

What changes are included in this PR?

  • A "std" feature is added to the proof-of-sql crate.
  • #[cfg(feature = "std")] are added to large portions of the code. These can eventually be removed. At the moment, only the relevant portions are made no_std.
  • thiserror is bumped to a non-release branch that supports core::error::Error.

Are these changes tested?

Yes, by existing tests.

@JayWhite2357
Copy link
Contributor Author

See dtolnay/thiserror#304 for more information. We likely want to wait for the PR to merge to complete this version.

@tlovell-sxt
Copy link
Contributor

Should this be closed now?

@tlovell-sxt
Copy link
Contributor

Closing this in favor of #174 and #192

@tlovell-sxt tlovell-sxt closed this Oct 2, 2024
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