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

Don't link to sapp-jsutils when we don't need to #1

Merged
merged 3 commits into from Aug 22, 2021

Conversation

sdleffler
Copy link
Contributor

Currently sapp_jsutils is always a dependency, whether compiling for WASM or not. Unfortunately when compiling using codegen-units = 1, this causes a bunch of unlinked external symbols (at least for me on Windows.) This PR just ensures sapp_jsutils is never a dependency at the same time as webbrowser, and cfg-gates the import in lib.rs accordingly.

src/lib.rs Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
@optozorax optozorax merged commit 4dfa1c0 into optozorax:master Aug 22, 2021
@optozorax
Copy link
Owner

Thanks. Version 0.1.1 is published.

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.

None yet

2 participants