Compare commits
No commits in common. "1c3121f8fea802b81904d59f26f222fb129d43e8" and "8307f7f73a8c45698f514a6d8c24aec3b2272d94" have entirely different histories.
1c3121f8fe
...
8307f7f73a
5 changed files with 49 additions and 932 deletions
967
Cargo.lock
generated
967
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -11,7 +11,7 @@ leptos_axum = { workspace = true, optional = true }
|
|||
|
||||
http.workspace = true
|
||||
thiserror.workspace = true
|
||||
serde = { version = "1"}
|
||||
serde = "1.0.195"
|
||||
femark = { version = "0.1.5", optional = true }
|
||||
toml = { version = "0.8.8", optional = true }
|
||||
|
||||
|
|
|
@ -5,11 +5,10 @@ edition = "2021"
|
|||
|
||||
[dependencies]
|
||||
app = { path = "../app", default-features = false, features = ["ssr"] }
|
||||
leptos = { workspace = true, features = ["ssr"] }
|
||||
leptos = { workspace = true, features = [ "ssr" ]}
|
||||
leptos_axum.workspace = true
|
||||
|
||||
axum.workspace = true
|
||||
tokio.workspace = true
|
||||
tower.workspace = true
|
||||
tower-http.workspace = true
|
||||
sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "sqlite"] }
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
use leptos::*;
|
||||
use sqlx::{Connection, SqliteConnection};
|
||||
|
||||
pub async fn db() -> Result<SqliteConnection, ServerFnError> {
|
||||
Ok(SqliteConnection::connect("sqlite::memory:").await?)
|
||||
}
|
|
@ -5,12 +5,9 @@ use leptos::*;
|
|||
use leptos_axum::{generate_route_list, LeptosRoutes};
|
||||
|
||||
pub mod fileserv;
|
||||
pub mod db;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
use db::*;
|
||||
let mut conn = db().await.expect("DB error");
|
||||
let conf = get_configuration(None).await.unwrap();
|
||||
let leptos_options = conf.leptos_options;
|
||||
let addr = leptos_options.site_addr;
|
||||
|
|
Loading…
Add table
Reference in a new issue