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 Warp integration #86

Merged
merged 11 commits into from
Dec 12, 2021
Merged

Add Warp integration #86

merged 11 commits into from
Dec 12, 2021

Conversation

arctic-hen7
Copy link
Member

This adds a Warp integration and makes Perseus thread-safe for server-side usage, which should make developing server integrations for platforms other than Actix Web much easier. This also includes a fix for #85.

Notably, this removes support for multiple static directories, because that would've involved significant gymnastics with Warp. At present, some gymnastics are required to support static aliases, and so Perseus will use my fork of Warp for now (PR pending).

Also, this makes Warp the default integration for when v0.3.x goes stable (more details to come on the reasoning for this).

This will make developing more integrations in future much simpler.
This also involved standardizing the `Options` taken by all integrations

BREAKING CHANGE: `Options` renamed to `ServerOptions` for all integrations
This involved adding an atomic types system.
Also added basics for a Warp integration (which needs this thread-safety).
The problem is `Rc<Translator>`s, so some refactoring needs to be done.
BREAKING_CHANGE: `ServerOptions` now only accepts one static content directory
None of this has been tested yet, so there will likely be bugs.
We now depend on my fork of Warp until [this](seanmonstar/warp#924) is merged.
It's also now the default in the CLI.
Now covers the `Cargo.toml` files in `examples/basic/.perseus`.
@arctic-hen7 arctic-hen7 added C-enhancement Category: enhancement P-high Priority: high labels Dec 12, 2021
@arctic-hen7 arctic-hen7 self-assigned this Dec 12, 2021
@arctic-hen7
Copy link
Member Author

Okay, all E2E tests have failed because of an apt bug on CI, but I've run them manually and they pass.

@arctic-hen7 arctic-hen7 merged commit 6adf264 into main Dec 12, 2021
@arctic-hen7 arctic-hen7 deleted the feat-warp-integration branch December 12, 2021 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: enhancement P-high Priority: high
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant