-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: made the engine code functional in the user's code No support for serving yet and there's still Wasm binary bloat. * feat: added support for serving Still a lot of Wasm binary bloat. * feat: integrated client-side code This is untested as yet, I'll update the CLI first. * feat: updated the cli and brought everything together This is still untested because of a Cargo dependency unification issue. * fix: fixed all issues by changing the cargo resolver This is literally dark magic. * fix: fixed `HydrateNode`/`DomNode` issues and reformed original structure * fix: fixed small errors with cli * fix: fixed some macro and example errors * style: appeased `clippy` * chore: updated bonnie checking script * chore: deleted `.perseus/`! * feat: added convenience macros Also changed the `run_dflt_engine` and `run_client` APIs to make them all take functions that return apps, rather than apps directly, which makes the Actix Web integration able to work normally (by making everything else share its quirks). * feat: added more convenience macros * refactor: broke out macros under a new features This feature is the default though. * feat: added dflt engine system for export-only apps * test: updated all examples Except `fetching`, need to merge from `main`. * test: updated `fetching` example * style: appeased clippy * fix: fixed unused code warnings from macros Just made the user's functions `pub` to stop the compiler whining. * feat: added `#[main_export]` for apps not using a server * feat: added support for custom cargo/wasm-pack args to cli * fix: fixed actix dflt server return type * test: made all examples work with all integrations There's now an `EXAMPLE_INTEGRATION` environment variable that controls this, which is set to `warp` by default in a new `.env` file, which Bonnie can read. * fix: fixed i18n translator misreference * feat: superseded `autoserde` macro This also adds a `build_paths` macro to make that work with the new systems. * test: fixed testing script * chore: updated `bonnie.toml` for new layout * ci: removed `ci-prep` calls and added `wasm32-unknown-unknown` target for `check` op * ci: fixed remnant `ci-prep` invocation * fix: fixed global build state server/client division * fix: added missing build paths annotation * test: removed unnecessary test from plugins example This made it uncompilable because of the silly way I've set that up. I'll fix that as I rewrite the docs for v0.4.0. * chore: updated `bn test` command with all core examples * feat: added `should_revalidate` macro * fix: fixed imports in headers example * fix: fixed static content paths in new layout * fix: fixed imports in state generation example BREAKING CHANGE: Changed multiple APIs for functional plugin actions related to the builder (they all take the new EngineError type now) Restructured exports related to engine functionality (this will get progressively worse as this PR develops!) Removed the HOST and PORT environment variables for configuring the server (these are replaced with PERSEUS_HOST and PERSEUS_PORT) Substantially refactored exports from Perseus Divided client-side and server-side exports (many functions will now need to be target-gated) Replaced #[autoserde(...)] macro with macros for each state function (#[build_state], #[build_paths], etc.) The #[build_paths] macro must now be applied to all build paths functions (for client/server functionality division) #[perseus::main] now takes an argument as the default server to use (server integrations should now be imported and used) Made state functions automatically target-gated as #[cfg(not(feature = "wasm32"))] The #[should_revalidate] macro must now be applied to all revalidation determination functions (for client/server functionality division)
- Loading branch information
1 parent
3cc247b
commit 14f415a
Showing
170 changed files
with
2,304 additions
and
1,951 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
EXAMPLE_INTEGRATION=warp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
|
||
.perseus/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
93 changes: 0 additions & 93 deletions
93
examples/core/basic/.perseus/builder/src/bin/export_error_page.rs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.