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(extension): proc macro impl for Extension Trait #32

Merged
merged 10 commits into from
Jun 26, 2024

Conversation

indirection42
Copy link
Contributor

No description provided.

@indirection42 indirection42 marked this pull request as ready for review June 24, 2024 13:57
@indirection42 indirection42 requested a review from xlc June 24, 2024 15:53
xcq-extension-core/src/lib.rs Outdated Show resolved Hide resolved
xcq-extension/Cargo.toml Show resolved Hide resolved
@indirection42 indirection42 requested a review from xlc June 25, 2024 05:15
@indirection42
Copy link
Contributor Author

indirection42 commented Jun 25, 2024

extension_id hash calculation is not stable for now.

let guest = GuestImpl { program: blob.to_vec() };
let method = CoreMethod::HasExtension { id: 0 };
<<<<<<< HEAD
let mut input_data = 980409741042475474u64.encode();
Copy link
Member

Choose a reason for hiding this comment

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

use https://github.com/mitsuhiko/insta for those generated test values

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I use <extension_core::Call<ExtensionCoreImpl> as ExtensionId>::EXTENSION_ID to replace the literal value.

@indirection42 indirection42 merged commit 7bad98c into master Jun 26, 2024
2 checks passed
@indirection42 indirection42 deleted the extension-macros branch June 26, 2024 07:19
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