-
Notifications
You must be signed in to change notification settings - Fork 2
Added Vite bundler support, Channels & Async functions #5
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ test-results/ | |
playwright-report/ | ||
blob-report/ | ||
playwright/.cache/ | ||
.DS_Store |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -11,7 +11,7 @@ readme = "README.md" | |||||
keywords = ["webworker", "parallelism", "wasm"] | ||||||
|
||||||
[workspace.dependencies] | ||||||
wasmworker = { version = "0.1", path = ".", features = ["serde"]} | ||||||
wasmworker = { version = "0.1", path = ".", features = ["serde"] } | ||||||
wasmworker-proc-macro = { version = "0.1", path = "proc-macro" } | ||||||
|
||||||
[package] | ||||||
|
@@ -30,7 +30,7 @@ keywords.workspace = true | |||||
[dependencies] | ||||||
futures = "0.3" | ||||||
js-sys = { version = "0.3" } | ||||||
postcard = { version = "1.0", features = ["alloc"] } | ||||||
pot = "3.0" | ||||||
send_wrapper = "0.6" | ||||||
serde = { version = "1.0", features = ["derive"] } | ||||||
serde_bytes = "0.11" | ||||||
|
@@ -39,6 +39,7 @@ thiserror = "2.0" | |||||
tokio = { version = "1.4", features = ["sync"] } | ||||||
wasm-bindgen = "0.2" | ||||||
wasm-bindgen-futures = "0.4" | ||||||
log = "*" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah makes sense! |
||||||
|
||||||
[dependencies.web-sys] | ||||||
features = [ | ||||||
|
@@ -52,6 +53,9 @@ features = [ | |||||
"BlobPropertyBag", | ||||||
"Url", | ||||||
"Navigator", | ||||||
"MessagePort", | ||||||
"MessageChannel", | ||||||
"Response", | ||||||
] | ||||||
version = "0.3" | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -17,3 +17,4 @@ proc-macro = true | |||||
[dependencies] | ||||||
syn = { version = "2.0", features = ["full", "extra-traits"] } | ||||||
quote = "1.0" | ||||||
log = "*" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah makes sense! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for switching the serialisation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I switched, because for complex structure, like Rc and others, postcard just failed. That's why I went this way. Also pot is self-describing. Which is theoretically not needed here, but handles complex cases like above cleanly.