This commit is contained in:
Austen Adler 2023-03-15 23:44:43 -04:00
parent 8b39e6fe69
commit a4be37911c
4 changed files with 0 additions and 5 deletions

1
Cargo.lock generated
View File

@ -1734,7 +1734,6 @@ name = "web"
version = "0.1.0"
dependencies = [
"rocket",
"rust-embed",
"serde",
"tokio",
"ufmt",

View File

@ -2,7 +2,6 @@
#![allow(clippy::cast_possible_truncation, clippy::multiple_crate_versions)]
#![allow(unused_imports)]
pub mod dense;
pub mod v0;
use conversions::lat_lon_to_cellid;
pub use s2::s1::angle::Angle;

View File

@ -10,6 +10,5 @@ rocket = {version="0.5.0-rc.2", features=["json"]}
tokio = {version="1"}
xpin={path=".."}
serde = {version="1", features=["derive"]}
rust-embed = { version = "6.6.0", features = ["rocket"] }
ufmt = "0.2.0"
web-frontend={path="../web-frontend/"}

View File

@ -1,6 +1,5 @@
use rocket::get;
use rocket::http::ContentType;
use rust_embed::RustEmbed;
use std::borrow::Cow;
use std::ffi::OsStr;
@ -9,7 +8,6 @@ use web_frontend::Asset;
#[get("/<file..>")]
pub(crate) fn dist(file: PathBuf) -> Option<(ContentType, Cow<'static, [u8]>)> {
eprintln!("file: {file:?}");
if let Some(a) = Asset::get(&format!("{}", file.display().to_string())) {
let content_type = file
.extension()