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

Initial pass at supporting wasm32-unknown-unknown in a web browser #120

Merged
merged 8 commits into from
Jun 24, 2024

Conversation

ianthetechie
Copy link
Contributor

@ianthetechie ianthetechie commented Jun 13, 2024

First pass at wasm32-unknown-unknown, specifically for web browsers.

I'll leave some comments with the key pieces, but broadly speaking, this should have no functional changes (only some error APIs change).

This incidentally does like 95% of the work for #26.

.github/workflows/wasm-js.yml Show resolved Hide resolved
Comment on lines +21 to +24
#[cfg_attr(
feature = "std",
error("Failed to generate a polyline from route coordinates: {error}.")
)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For no_std platforms, we cannot implement Error because the type is from std. However, in a few months (October), Error is moving from std to core :D

@ianthetechie ianthetechie marked this pull request as ready for review June 13, 2024 09:34
common/ferrostar/Cargo.toml Outdated Show resolved Hide resolved
.github/workflows/wasm-js.yml Show resolved Hide resolved
@ianthetechie ianthetechie merged commit ea359dd into main Jun 24, 2024
11 checks passed
@ianthetechie ianthetechie deleted the wasm-js-initial-support branch June 24, 2024 11:21
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