Skip to content

Commit

Permalink
goes raalog
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderARodin committed Jan 23, 2024
1 parent 1b1df84 commit 9d5768f
Show file tree
Hide file tree
Showing 20 changed files with 9 additions and 10 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ clean.dist:
run: release
@cargo run --release

all: test release release.wasm

release:
@cargo rustc --release -- -C prefer-dynamic
release.wasm:
Expand Down
1 change: 0 additions & 1 deletion src~/base_domik_view.rs → src/base_domik_view.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const VERS: &str = "v0.1.0";

//use crate::raadbg::log;

use crate::domik_ui_elements::*;

Expand Down
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions src~/main.rs → src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ mod domik_ui_elements;
mod base_domik_view;
mod test_view;

mod raadbg;
use raadbg::log;
use raalog::*;

#[ cfg(not(target_arch = "wasm32")) ]
fn main() -> Result<(), eframe::Error> {
log::simple("[BINARY]: MAIN has beed entered..");
log::info("MAIN has beed entered..");

let options = eframe::NativeOptions {
viewport: egui::ViewportBuilder::default()
Expand All @@ -35,7 +34,7 @@ fn main() -> Result<(), eframe::Error> {

#[ cfg(target_arch = "wasm32") ]
fn main() {
log::simple("[WASM]: MAIN has beed entered..");
log::info("MAIN has beed entered..");

console_error_panic_hook::set_once();

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions src~/root_app.rs → src/root_app.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![allow(non_snake_case)]

use raalog::*;
use crate::log_view::LogView;
use crate::raadbg::log;
use crate::base_domik_view::BaseDomikView;

use crate::test_view::TestView;
Expand Down Expand Up @@ -36,7 +36,7 @@ impl Default for RootApp {
impl RootApp {
pub fn new(cc: &eframe::CreationContext) -> Self {
if let Some(storage) = cc.storage{
log::simple("trying to load..");
log::info("trying to load..");
return eframe::get_value(storage, eframe::APP_KEY).unwrap_or_default();
}
Default::default()
Expand All @@ -46,9 +46,9 @@ impl RootApp {

impl eframe::App for RootApp {
fn save(&mut self, storage: &mut dyn eframe::Storage) {
log::simple("saving..");
log::info("saving..");
eframe::set_value(storage, eframe::APP_KEY, self);
log::simple("..saved");
log::info("..saved");
}

fn update( &mut self, ctx: &egui::Context, _frame: &mut eframe::Frame ) {
Expand Down
1 change: 0 additions & 1 deletion src~/test_view.rs → src/test_view.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

//use crate::raadbg::log;

use egui::Color32;

Expand Down

0 comments on commit 9d5768f

Please sign in to comment.