Cleanup
This commit is contained in:
parent
8b39e6fe69
commit
a4be37911c
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -1734,7 +1734,6 @@ name = "web"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rocket",
|
"rocket",
|
||||||
"rust-embed",
|
|
||||||
"serde",
|
"serde",
|
||||||
"tokio",
|
"tokio",
|
||||||
"ufmt",
|
"ufmt",
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#![allow(clippy::cast_possible_truncation, clippy::multiple_crate_versions)]
|
#![allow(clippy::cast_possible_truncation, clippy::multiple_crate_versions)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
pub mod dense;
|
|
||||||
pub mod v0;
|
pub mod v0;
|
||||||
use conversions::lat_lon_to_cellid;
|
use conversions::lat_lon_to_cellid;
|
||||||
pub use s2::s1::angle::Angle;
|
pub use s2::s1::angle::Angle;
|
||||||
|
@ -10,6 +10,5 @@ rocket = {version="0.5.0-rc.2", features=["json"]}
|
|||||||
tokio = {version="1"}
|
tokio = {version="1"}
|
||||||
xpin={path=".."}
|
xpin={path=".."}
|
||||||
serde = {version="1", features=["derive"]}
|
serde = {version="1", features=["derive"]}
|
||||||
rust-embed = { version = "6.6.0", features = ["rocket"] }
|
|
||||||
ufmt = "0.2.0"
|
ufmt = "0.2.0"
|
||||||
web-frontend={path="../web-frontend/"}
|
web-frontend={path="../web-frontend/"}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
use rocket::get;
|
use rocket::get;
|
||||||
use rocket::http::ContentType;
|
use rocket::http::ContentType;
|
||||||
use rust_embed::RustEmbed;
|
|
||||||
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
use std::ffi::OsStr;
|
use std::ffi::OsStr;
|
||||||
@ -9,7 +8,6 @@ use web_frontend::Asset;
|
|||||||
|
|
||||||
#[get("/<file..>")]
|
#[get("/<file..>")]
|
||||||
pub(crate) fn dist(file: PathBuf) -> Option<(ContentType, Cow<'static, [u8]>)> {
|
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())) {
|
if let Some(a) = Asset::get(&format!("{}", file.display().to_string())) {
|
||||||
let content_type = file
|
let content_type = file
|
||||||
.extension()
|
.extension()
|
||||||
|
Loading…
Reference in New Issue
Block a user