Updated to use the new Dioxus v0.7.0-rc.1

The system is using the nightly toolchain now due to Dioxus needing it.
This commit is contained in:
2025-10-08 15:17:48 -04:00
parent ce80af94ee
commit 725824003b
8 changed files with 1345 additions and 553 deletions

View File

@ -8,18 +8,20 @@ const FAVICON: Asset = asset!("/assets/favicon.ico");
const BLOG: Asset = asset!("/assets/blog.css");
fn main()
{
#[cfg(feature = "server")]
{
let _ = tokio::runtime::Runtime::new()
.unwrap()
.block_on(async move { bard::init_database("/home/myrddin/cybermages/website/tavern.db").await });
let rt = tokio::runtime::Runtime::new().unwrap();
rt.block_on(async
{
let db_path = "/home/myrddin/cybermages/website/tavern.db";
let _ = bard::init_database(db_path).await;
});
}
#[cfg(feature = "web")]
dioxus::launch(App);
LaunchBuilder::new().launch(App);
}
#[component]