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

Add wasm builds #2

Merged
merged 10 commits into from
Nov 13, 2024
Merged

Add wasm builds #2

merged 10 commits into from
Nov 13, 2024

Conversation

carlopi
Copy link
Contributor

@carlopi carlopi commented Nov 13, 2024

This might require another round of polishing, and possible some more refactoring to move stuff to extension-ci-tools.

This is on top of #1, I would say that can be checked independently.

One problem I bumped against is that seemingly you can't feature-select the crate type, and that needs to be staticlib for wasm and cdylib for native.
Trick I copied from https://github.com/linebender/xilem/blob/6af19494cd985e6ac2e914e73d701fe78752a3fc/xilem/Cargo.toml#L40 is having a [[example]] target, that has the right specifications for Wasm but has the same name and code.

It's an hack, probably I should add a comment to src/wasm_lib.rs documenting this.

@carlopi carlopi marked this pull request as draft November 13, 2024 09:18
Makefile Outdated Show resolved Hide resolved
Cargo.toml Show resolved Hide resolved
src/wasm_lib.rs Outdated Show resolved Hide resolved
src/wasm_lib.rs Outdated Show resolved Hide resolved
@carlopi carlopi marked this pull request as ready for review November 13, 2024 13:58
@carlopi
Copy link
Contributor Author

carlopi commented Nov 13, 2024

Thanks for the various input, now moving to lastest branch of extension-ci-tools, where in duckdb/extension-ci-tools#105 and duckdb/extension-ci-tools#106 the main part was done.

@carlopi carlopi requested a review from samansmink November 13, 2024 14:12
@samansmink samansmink merged commit b2df5c9 into duckdb:main Nov 13, 2024
9 checks passed
@samansmink
Copy link
Collaborator

gogogo

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