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

make utils wasm compat #208

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

make utils wasm compat #208

wants to merge 3 commits into from

Conversation

assafvayner
Copy link
Contributor

@assafvayner assafvayner commented Mar 12, 2025

This PR ensures that the utils crate (singleflight, serialization_utils) compiles for WASM, should be rebased/merge-main after the xet_threadpool change #204 is in main.

@assafvayner assafvayner marked this pull request as ready for review March 17, 2025 23:24
@assafvayner assafvayner requested review from seanses and hoytak March 17, 2025 23:45
@@ -4,6 +4,7 @@
/// * `v` - the size in bytes
pub fn output_bytes(v: usize) -> String {
let map = vec![
#[cfg(not(target_family = "wasm"))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a way to tell if it's wasm32 or wasm64? I think this is only invalid in wasm32

Copy link
Collaborator

@seanses seanses Mar 21, 2025

Choose a reason for hiding this comment

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

Actually.. maybe a better fix is to change the parameter type to u64.

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