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

Store and restore hash from a compiled module #4654

Merged
merged 18 commits into from
May 10, 2024
Merged

Conversation

maminrayej
Copy link
Contributor

@maminrayej maminrayej commented May 8, 2024

This PR stores the module hash in the ModuleInfo as part of the Artifact, so later after loading the compiled module from the disk, we would have access to the module hash.

Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

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

Move ModuleHash into wasmer-types and reuse it here as well

lib/types/src/module.rs Outdated Show resolved Hide resolved
lib/types/src/module.rs Outdated Show resolved Hide resolved
lib/api/Cargo.toml Outdated Show resolved Hide resolved
lib/api/src/module.rs Outdated Show resolved Hide resolved
lib/api/src/module.rs Outdated Show resolved Hide resolved
lib/api/src/module_info_polyfill.rs Outdated Show resolved Hide resolved
lib/api/src/sys/module.rs Outdated Show resolved Hide resolved
lib/types/src/module.rs Outdated Show resolved Hide resolved
lib/cli/src/commands/run/mod.rs Outdated Show resolved Hide resolved
lib/compiler/src/translator/module.rs Outdated Show resolved Hide resolved
@maminrayej maminrayej marked this pull request as ready for review May 9, 2024 17:51
lib/api/src/engine.rs Outdated Show resolved Hide resolved
lib/api/src/sys/engine.rs Outdated Show resolved Hide resolved
lib/api/src/sys/engine.rs Outdated Show resolved Hide resolved
lib/api/src/sys/tunables.rs Outdated Show resolved Hide resolved
lib/api/src/sys/tunables.rs Outdated Show resolved Hide resolved
lib/types/Cargo.toml Outdated Show resolved Hide resolved
Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

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

LGTM

@syrusakbary syrusakbary enabled auto-merge May 10, 2024 13:24
@syrusakbary syrusakbary merged commit 7621d61 into main May 10, 2024
61 checks passed
@syrusakbary syrusakbary deleted the store-hash-in-artifact branch May 10, 2024 14:39
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