some changes
This commit is contained in:
parent
31197c8029
commit
86b008f07c
@ -18,15 +18,14 @@ strip = true
|
||||
|
||||
[profile.dev]
|
||||
debug = true
|
||||
codegen-units = 1
|
||||
opt-level = "s" #optimize for size
|
||||
opt-level = 2
|
||||
lto = false
|
||||
|
||||
[dependencies]
|
||||
meval = { git = "https://github.com/Titaniumtown/meval-rs.git" }
|
||||
eframe = { git = "https://github.com/Titaniumtown/egui", default-features = false, features = ["egui_glow"] }
|
||||
include-flate = { git = "https://github.com/Titaniumtown/include-flate.git" }
|
||||
shadow-rs = { version = "0.9.0", default-features = false }
|
||||
shadow-rs = { version = "0.9", default-features = false }
|
||||
const_format = { version = "0.2.22", default-features = false, features = ["fmt"] }
|
||||
|
||||
[build-dependencies]
|
||||
|
||||
@ -16,16 +16,14 @@ use std::ops::RangeInclusive;
|
||||
shadow!(build);
|
||||
|
||||
// Constant function that has a string containing information about the build.
|
||||
const fn build_info() -> &'static str {
|
||||
formatc!(
|
||||
const BUILD_INFO: &str = formatc!(
|
||||
"Commit: {} ({})\nBuild Date: {}\nRust Channel: {}\nRust Version: {}",
|
||||
&build::SHORT_COMMIT,
|
||||
&build::BRANCH,
|
||||
&build::BUILD_TIME,
|
||||
&build::RUST_CHANNEL,
|
||||
&build::RUST_VERSION,
|
||||
)
|
||||
}
|
||||
);
|
||||
|
||||
// Sets some hard-coded limits to the application
|
||||
const INTEGRAL_NUM_RANGE: RangeInclusive<usize> = 1..=100000;
|
||||
@ -252,7 +250,7 @@ impl epi::App for MathApp {
|
||||
.resizable(false)
|
||||
.collapsible(false)
|
||||
.show(ctx, |ui| {
|
||||
ui.label(build_info());
|
||||
ui.label(&*BUILD_INFO);
|
||||
});
|
||||
|
||||
// Side Panel which contains vital options to the operation of the application (such as adding functions and other options)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user