30 lines
680 B
Rust
30 lines
680 B
Rust
#![feature(const_mut_refs)]
|
|
#![feature(let_chains)]
|
|
|
|
#[macro_use]
|
|
extern crate static_assertions;
|
|
|
|
mod consts;
|
|
mod egui_app;
|
|
mod function;
|
|
mod hashmap_helper;
|
|
mod misc;
|
|
mod parsing;
|
|
mod suggestions;
|
|
|
|
// For running the program natively! (Because why not?)
|
|
#[cfg(not(target_arch = "wasm32"))]
|
|
fn main() {
|
|
let subscriber = tracing_subscriber::FmtSubscriber::builder()
|
|
.with_max_level(tracing::Level::TRACE)
|
|
.finish();
|
|
|
|
tracing::subscriber::set_global_default(subscriber).expect("setting default subscriber failed");
|
|
|
|
eframe::run_native(
|
|
"(Yet-to-be-named) Graphing Software",
|
|
eframe::NativeOptions::default(),
|
|
Box::new(|cc| Box::new(egui_app::MathApp::new(cc))),
|
|
);
|
|
}
|