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