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

Version any_spawner alongside other crates, reexport CustomExecutor #3284

Merged
merged 2 commits into from
Nov 23, 2024

Conversation

ogghead
Copy link
Contributor

@ogghead ogghead commented Nov 23, 2024

This PR proposes a couple options (not mutually exclusive) for how to version new any_spawner functionality in downstream crates:

  1. Create an rc2 version of any_spawner to align with leptos crate versions -- leptos_wasi (and potentially others) rely on this crate and currently must use a locked git revision, this comment has more details
  2. Reexport CustomExecutor from any_spawner in Leptos -- this allows using the Executor and CustomExecutor directly from Leptos and eliminating any_spawner dependency in downstream crates

Signed-off-by: Darwin Boersma <[email protected]>
@benwis
Copy link
Contributor

benwis commented Nov 23, 2024 via email

@ogghead
Copy link
Contributor Author

ogghead commented Nov 23, 2024

I think it makes sense to expose it from Leptos, then you/them won’t have to worry about it till breaking releases. Does that make sense?

Agreed! This PR reexports CustomExecutor and Executor -- do you think it would be better to reexport the full any_spawner crate or does this reexport make sense?

@benwis
Copy link
Contributor

benwis commented Nov 23, 2024 via email

@ogghead
Copy link
Contributor Author

ogghead commented Nov 23, 2024

I was able to get leptos_wasi building with just those two exported (and local path dep on some leptos crates) so I am fairly sure this is the bare minimum reexports needed, but definitely open to reexporting the full crate if that's preferable!

@benwis
Copy link
Contributor

benwis commented Nov 23, 2024

In my opinion it'll save us pain later in case someone else needs something

Signed-off-by: Darwin Boersma <[email protected]>
@ogghead
Copy link
Contributor Author

ogghead commented Nov 23, 2024

Makes sense to me! I appreciate the quick review on this. Updated with the full reexport now

@benwis benwis merged commit 4f39b0b into leptos-rs:main Nov 23, 2024
74 checks passed
@ogghead ogghead deleted the rc2-any_spawner branch November 23, 2024 23:10
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