forked from NextGraph/nextgraph-rs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
570 B
27 lines
570 B
|
|
use rust_embed::{EmbeddedFile, RustEmbed};
|
|
use std::path::Path;
|
|
|
|
|
|
#[derive(RustEmbed)]
|
|
#[folder = "./dist/"]
|
|
#[include = "*.sha256"]
|
|
#[include = "*.gzip"]
|
|
|
|
pub struct AppAuth;
|
|
|
|
pub fn get_app_auth_sha256() -> EmbeddedFile {
|
|
AppAuth::get("index.sha256").unwrap()
|
|
}
|
|
|
|
// pub fn get_app_auth_sha256_bytes() -> &'static [u8] {
|
|
// include_bytes!("../dist/index.sha256")
|
|
// }
|
|
|
|
pub fn get_app_auth_gzip() -> EmbeddedFile {
|
|
AppAuth::get("index.gzip").unwrap()
|
|
}
|
|
|
|
// pub fn get_app_auth_gzip_bytes() -> &'static [u8] {
|
|
// include_bytes!("../dist/index.gzip")
|
|
// }
|