Compare commits

...

2 commits

Author SHA1 Message Date
Adam
44f1d3acef leptos 0.6.3 already 2024-01-26 21:43:19 -05:00
Adam
7af51932ff yank ssg 2024-01-26 20:47:00 -05:00
2 changed files with 30 additions and 31 deletions

56
Cargo.lock generated
View file

@ -1041,9 +1041,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]] [[package]]
name = "leptos" name = "leptos"
version = "0.6.2" version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07ddb6345d8791d75a77621f38f96efac61f9de415521da49d4ec1d72841ad79" checksum = "10b936412e6ff7b7d4033043f1382c687a9f1995a9871a68b7189f408133c2a0"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"leptos_config", "leptos_config",
@ -1063,9 +1063,9 @@ dependencies = [
[[package]] [[package]]
name = "leptos_axum" name = "leptos_axum"
version = "0.6.2" version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc09f66498d5932a0da61dfe988e5a39f5b210d7b2553f8a657ff2747b337925" checksum = "ddd9ee8367c3c55047a7270f071448943a771f30f34ee51d1cc0f760e9907aba"
dependencies = [ dependencies = [
"axum", "axum",
"cfg-if", "cfg-if",
@ -1087,9 +1087,9 @@ dependencies = [
[[package]] [[package]]
name = "leptos_config" name = "leptos_config"
version = "0.6.2" version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "007728ee99154fbaae4136816f2de73a9b6ee53bdca8c8e66303c68463f126cf" checksum = "2a809362f6a14c740bfb38a9d8151ab06be7ccd4049a3354c1aab0f8d2bdf741"
dependencies = [ dependencies = [
"config", "config",
"regex", "regex",
@ -1100,9 +1100,9 @@ dependencies = [
[[package]] [[package]]
name = "leptos_dom" name = "leptos_dom"
version = "0.6.2" version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "073c7dddff5415f9efc95450ccfcecf6a70e4972ff5380899782e83f908cbae7" checksum = "d4e58dcb4c8504460eda3c57919ffa826c44a542253c6c93be75d21bfcd2b776"
dependencies = [ dependencies = [
"async-recursion", "async-recursion",
"cfg-if", "cfg-if",
@ -1130,9 +1130,9 @@ dependencies = [
[[package]] [[package]]
name = "leptos_hot_reload" name = "leptos_hot_reload"
version = "0.6.2" version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aa39ec2b81d532954adff1a3c95869b8f639a9dc44b1c8ebf190ab952ae7d0f0" checksum = "273d7f2f1823a70944a72c8b47f925c489e38f6121808cd4c7f759b1b5efd5e6"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"camino", "camino",
@ -1148,9 +1148,9 @@ dependencies = [
[[package]] [[package]]
name = "leptos_integration_utils" name = "leptos_integration_utils"
version = "0.6.2" version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "16cca15d3ff715a9f326bc98073325e4f4087f280885b2dd0a78f0104ad536d8" checksum = "172169abef42e1d2c5c4e17d58e2521669ec600808590a03c58c6a87eabf76b0"
dependencies = [ dependencies = [
"futures", "futures",
"leptos", "leptos",
@ -1162,9 +1162,9 @@ dependencies = [
[[package]] [[package]]
name = "leptos_macro" name = "leptos_macro"
version = "0.6.2" version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef651b98a10c087aaf827e75ce60435b1e5f75ed9dd6acf7fb29df480958a375" checksum = "669b724389f52fa2b0c8eb55fc1cd652a6738360d0a76d966b62fb3368fc0bf7"
dependencies = [ dependencies = [
"attribute-derive", "attribute-derive",
"cfg-if", "cfg-if",
@ -1185,9 +1185,9 @@ dependencies = [
[[package]] [[package]]
name = "leptos_meta" name = "leptos_meta"
version = "0.6.2" version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e454c6bde92daf0d4f1dc785421cc53301c4973495d3389cb2b9d52baa938b29" checksum = "3f6ae4f0934d77239f57dec8b438a2c7e8662a46c4704fed8d831f5329c6fcfb"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"indexmap 2.1.0", "indexmap 2.1.0",
@ -1199,9 +1199,9 @@ dependencies = [
[[package]] [[package]]
name = "leptos_reactive" name = "leptos_reactive"
version = "0.6.2" version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef4afa68353fff93870aaf0b222e273530ebb9b460ad51b9b527395fd4f11350" checksum = "3624e8d4d2da4c79adc045c177be50050c70fb266d30d93892676f8100bb68aa"
dependencies = [ dependencies = [
"base64", "base64",
"cfg-if", "cfg-if",
@ -1227,9 +1227,9 @@ dependencies = [
[[package]] [[package]]
name = "leptos_router" name = "leptos_router"
version = "0.6.2" version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "11f20a15065fd2ac89c9b492b2c4acf746bf61f995c647d7e57bf070bdce1719" checksum = "c0964eb6de904e102b71ed5707594edfbabe11789cc9bc097e5556574324ce7c"
dependencies = [ dependencies = [
"cached", "cached",
"cfg-if", "cfg-if",
@ -1259,9 +1259,9 @@ dependencies = [
[[package]] [[package]]
name = "leptos_server" name = "leptos_server"
version = "0.6.2" version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5e518e25e671e8c99a1c3389afb9c094a6930735b555ee166b544a57f3f54a1" checksum = "9b31b4f6e1afecb955011548516020feab2ce165c407508e6357ad2a29e91c18"
dependencies = [ dependencies = [
"inventory", "inventory",
"lazy_static", "lazy_static",
@ -1971,9 +1971,9 @@ dependencies = [
[[package]] [[package]]
name = "server_fn" name = "server_fn"
version = "0.6.2" version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f4a5fa078a95688bc5b065064647bb64682064408d5fa5a9705e9e85dec95bf" checksum = "e7ede360796ba28c57625aa7cbbb25e7e87408f93cc662b68244d7dbfa1f589f"
dependencies = [ dependencies = [
"axum", "axum",
"bytes", "bytes",
@ -2006,9 +2006,9 @@ dependencies = [
[[package]] [[package]]
name = "server_fn_macro" name = "server_fn_macro"
version = "0.6.2" version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a5b20407751cd063e5bf529d5a56ff8a6485dbd2d5495b8a3a355d232ff4b3df" checksum = "b69afff1278975e9f862661a1bc5d8944aa9b542215359a550d4054864423779"
dependencies = [ dependencies = [
"const_format", "const_format",
"convert_case", "convert_case",
@ -2020,9 +2020,9 @@ dependencies = [
[[package]] [[package]]
name = "server_fn_macro_default" name = "server_fn_macro_default"
version = "0.6.2" version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ec18da12164b10d82315d0188d8c3ddecf173d7d59402475009729b4d8886b3" checksum = "b3b697f47a27c5e25361cb26838c05689aebc1659a561c4376e72e2e5165eb4c"
dependencies = [ dependencies = [
"server_fn_macro", "server_fn_macro",
"syn 2.0.48", "syn 2.0.48",

View file

@ -2,7 +2,7 @@ use app::*;
use axum::Router; use axum::Router;
use fileserv::file_and_error_handler; use fileserv::file_and_error_handler;
use leptos::*; use leptos::*;
use leptos_axum::{build_static_routes, generate_route_list_with_exclusions_and_ssg, LeptosRoutes}; use leptos_axum::{generate_route_list, LeptosRoutes};
pub mod fileserv; pub mod fileserv;
@ -11,8 +11,7 @@ async fn main() {
let conf = get_configuration(None).await.unwrap(); let conf = get_configuration(None).await.unwrap();
let leptos_options = conf.leptos_options; let leptos_options = conf.leptos_options;
let addr = leptos_options.site_addr; let addr = leptos_options.site_addr;
let (routes, data) = generate_route_list_with_exclusions_and_ssg(App, None); let routes = generate_route_list(App);
build_static_routes(&leptos_options, App, &routes, data).await;
let app = Router::new() let app = Router::new()
.leptos_routes(&leptos_options, routes, App) .leptos_routes(&leptos_options, routes, App)