yagcdn/backend/src/statics.rs

11 lines
443 B
Rust
Raw Normal View History

2019-07-27 17:14:08 +02:00
use crate::{config::Opt, service::Github};
use structopt::StructOpt;
2019-07-24 17:54:00 +02:00
const VERSION: &str = env!("CARGO_PKG_VERSION");
2019-07-27 16:15:11 +02:00
pub(crate) const FAVICON: &[u8] = include_bytes!("../static/favicon32.png");
2019-07-24 17:54:00 +02:00
lazy_static! {
pub(crate) static ref USER_AGENT: String = format!("gitache/{}", VERSION);
2019-07-27 17:14:08 +02:00
pub(crate) static ref OPT: Opt = Opt::from_args();
pub(crate) static ref GITHUB_AUTH_QUERY: String = Github::auth_query().unwrap_or_default();
2019-07-24 17:54:00 +02:00
}