Skip to content

Commit

Permalink
chore: replaced perseus-warp with perseus-axum in examples
Browse files Browse the repository at this point in the history
Warp appears to be now largely unmaintained, and is no longer
recommended as the integration for new Perseus projects.
  • Loading branch information
arctic-hen7 committed Jan 18, 2023
1 parent ea3d76c commit fb01b9f
Show file tree
Hide file tree
Showing 61 changed files with 85 additions and 85 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
EXAMPLE_INTEGRATION=warp
EXAMPLE_INTEGRATION=axum
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Here's a taste of Perseus (see [the _tiny_ example](https://github.com/framesurg
use perseus::prelude::*;
use sycamore::prelude::*;
#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(
Expand Down
2 changes: 1 addition & 1 deletion docs/0.4.x/en-US/reference/migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Perseus v0.4.x added a significant number of breaking changes, as almost the ent
3. Delete the old `.perseus/` directory (this is no longer needed).
4. Rename your `lib.rs` file to `main.rs`.
5. Update each error page instantiation function to provide, as another argument, a function that returns a Sycamore `View<G>` for the document metadata of that error page (e.g. title).
6. Change the `#[perseus::main]` attribute on the function in `main.rs` to be `#[perseus::main(perseus_warp::dflt_server)]` (replace `perseus_warp` with whatever server integration you decide to use).
6. Change the `#[perseus::main]` attribute on the function in `main.rs` to be `#[perseus::main(perseus_axum::dflt_server)]` (replace `perseus_axum` with whatever server integration you decide to use).
7. Update your view code for Sycamore's new version (mostly including adding a `cx` parameter as the first argument of every function that returns a `View<G>`).
8. Add `.build()` to the bottom of all `Template::new` calls, and change those to `Template::build`.
9. Remove `#[perseus::template_rx]` and `#[perseus::template]` entirely. Templates that take state should use `#[auto_scope]` now.
Expand Down
2 changes: 1 addition & 1 deletion docs/next/en-US/migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Perseus v0.4.x added a significant number of breaking changes, as almost the ent
2. Upgrade the Perseus CLI with `cargo install perseus-cli --version 0.4.0-beta.16`.
3. Delete the old `.perseus/` directory (this is no longer needed).
4. Rename your `lib.rs` file to `main.rs` and delete `.perseus/` (it's been removed entirely!).
5. Change the `#[perseus::main]` attribute on the function in `main.rs` to be `#[perseus::main(perseus_warp::dflt_server)]` (replace `perseus_warp` with whatever server integration you decide to use).
5. Change the `#[perseus::main]` attribute on the function in `main.rs` to be `#[perseus::main(perseus_axum::dflt_server)]` (replace `perseus_axum` with whatever server integration you decide to use).
6. Update your view code for Sycamore's new version (mostly including adding a `cx` parameter as the first argument of every function that returns a `View<G>`).
7. Add `.build()` to the bottom of all `Template::new` calls, and change those to `Template::build`.
8. Remove `#[perseus::template_rx]` and `#[perseus::template]` entirely. Templates that take reactive state should use `#[auto_scope]` now.
Expand Down
4 changes: 2 additions & 2 deletions examples/comprehensive/tiny/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sycamore = "^0.8.1"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/comprehensive/tiny/Cargo.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ sycamore = "^0.8.1"

[target.'cfg(engine)'.dependencies]
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
perseus-warp = { version = "=0.4.0-beta.16", features = [ "dflt-server" ] }
perseus-axum = { version = "=0.4.0-beta.16", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/comprehensive/tiny/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use perseus::prelude::*;
use sycamore::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(
Expand Down
4 changes: 2 additions & 2 deletions examples/core/basic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fantoccini = "0.17"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/basic/Cargo.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ serde_json = "1"

[target.'cfg(engine)'.dependencies]
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
perseus-warp = { version = "=0.4.0-beta.16", features = [ "dflt-server" ] }
perseus-axum = { version = "=0.4.0-beta.16", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/basic/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod templates;

use perseus::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
4 changes: 2 additions & 2 deletions examples/core/capsules/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fantoccini = "0.17"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/capsules/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod templates;

use perseus::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
4 changes: 2 additions & 2 deletions examples/core/error_views/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fantoccini = "0.17"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/error_views/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod templates;

use perseus::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
4 changes: 2 additions & 2 deletions examples/core/freezing_and_thawing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fantoccini = "0.17"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/freezing_and_thawing/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod templates;

use perseus::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
4 changes: 2 additions & 2 deletions examples/core/global_state/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fantoccini = "0.17"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/global_state/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod templates;

use perseus::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
4 changes: 2 additions & 2 deletions examples/core/helper_build_state/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fantoccini = "0.17"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/helper_build_state/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod templates;

use perseus::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
4 changes: 2 additions & 2 deletions examples/core/i18n/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fantoccini = "0.17"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/i18n/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod templates;

use perseus::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
4 changes: 2 additions & 2 deletions examples/core/idb_freezing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fantoccini = "0.17"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/idb_freezing/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod templates;

use perseus::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
4 changes: 2 additions & 2 deletions examples/core/index_view/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fantoccini = "0.17"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/index_view/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod templates;

use perseus::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
4 changes: 2 additions & 2 deletions examples/core/js_interop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ fantoccini = "0.17"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
wasm-bindgen = "0.2"
2 changes: 1 addition & 1 deletion examples/core/js_interop/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod templates;

use perseus::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
4 changes: 2 additions & 2 deletions examples/core/plugins/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fantoccini = "0.17"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/plugins/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod templates;

use perseus::{plugins::Plugins, prelude::*};

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
4 changes: 2 additions & 2 deletions examples/core/preload/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fantoccini = "0.17"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/preload/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod templates;

use perseus::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
4 changes: 2 additions & 2 deletions examples/core/router_state/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ serde_json = "1"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/router_state/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod templates;

use perseus::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
4 changes: 2 additions & 2 deletions examples/core/rx_state/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fantoccini = "0.17"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/rx_state/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod templates;

use perseus::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
4 changes: 2 additions & 2 deletions examples/core/set_headers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ureq = "2"
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
## **WARNING!** Before running this example outside the Perseus repo, replace the below line with
## the one commented out below it (changing the path dependency to the version you want to use)
perseus-warp = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-warp = { path = "../../../packages/perseus-warp", features = [ "dflt-server" ] }
perseus-axum = { package = "perseus-integration", path = "../../../packages/perseus-integration", default-features = false }
# perseus-axum = { path = "../../../packages/perseus-axum", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/set_headers/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod templates;

use perseus::prelude::*;

#[perseus::main(perseus_warp::dflt_server)]
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
Expand Down
Loading

0 comments on commit fb01b9f

Please sign in to comment.