upgrade to dioxus 0.7.1
Build dioxus container / BuildContainer (push) Successful in 3m10s

This commit is contained in:
2025-11-27 17:31:55 -07:00
parent 128791bccd
commit 40bb8e18ef
7 changed files with 743 additions and 1044 deletions
-10
View File
@@ -311,13 +311,3 @@ pub fn init_logging() {
.with_env_filter(env_filter)
.init();
}
// TODO: once we update to dioxus 0.7, swap this out with the dioxus-asset-resolver crate
pub async fn read_asset_bytes(asset: &dioxus::prelude::Asset) -> color_eyre::Result<Vec<u8>> {
let cur_exe = std::env::current_exe().unwrap();
let path = cur_exe
.parent()
.unwrap()
.join(asset.to_string().trim_matches('/'));
Ok(std::fs::read(&path).with_context(|| format!("native path \"{}\"", path.display()))?)
}
-6
View File
@@ -448,12 +448,6 @@ pub fn init_logging() {
info!("logging initiated");
}
// TODO: once we update to dioxus 0.7, swap this out with the dioxus-asset-resolver crate
pub async fn read_asset_bytes(asset: &dioxus::prelude::Asset) -> color_eyre::Result<Vec<u8>> {
let url = absolute_url(asset.to_string().trim_matches('/'))?;
Ok(reqwest::get(url).await?.bytes().await?.to_vec())
}
pub struct SpawnHandle;
impl SpawnHandle {