upgrade cargo dependencies

This commit is contained in:
2025-12-04 18:46:46 -05:00
parent 134f11c628
commit d6cb0fba1a
7 changed files with 183 additions and 248 deletions

View File

@@ -1,6 +1,4 @@
use crate::{
consts::COLORS, function_entry::FunctionEntry, misc::random_u64, widgets::widgets_ontop,
};
use crate::{consts::COLORS, function_entry::FunctionEntry, widgets::widgets_ontop};
use egui::{Button, Id, Key, Modifiers, PopupCloseBehavior, TextEdit, WidgetText};
use emath::vec2;
use parsing::Movement;
@@ -256,7 +254,7 @@ impl FunctionManager {
/// Create and push new empty function entry
pub fn push_empty(&mut self) {
self.functions.push((
Id::new(random_u64().expect("unable to generate random id")),
Id::new(format!("function #{}", self.functions.len() + 1)),
FunctionEntry::default(),
));
}

View File

@@ -12,7 +12,7 @@ use egui::{
use egui_plot::Plot;
use emath::{Align, Align2};
use epaint::{Margin, Rounding};
use epaint::Margin;
use instant::Instant;
use itertools::Itertools;
use std::{io::Read, ops::BitXorAssign};
@@ -179,7 +179,7 @@ impl MathApp {
fn decompress_fonts() -> epaint::text::FontDefinitions {
let mut data = Vec::new();
let _ =
ruzstd::StreamingDecoder::new(
ruzstd::decoding::StreamingDecoder::new(
&mut const {
include_bytes!(concat!(env!("OUT_DIR"), "/compressed_data")).as_slice()
},

View File

@@ -1,7 +1,6 @@
use base64::{Engine as _, engine::general_purpose};
use egui_plot::{Line, PlotPoint, PlotPoints, Points};
use emath::Pos2;
use getrandom::getrandom;
use itertools::Itertools;
use parsing::FlatExWrapper;
@@ -195,16 +194,6 @@ pub fn hashed_storage_read(data: &str) -> Option<(HashBytes, Vec<u8>)> {
Some((hash, data_bytes.to_vec()))
}
/// Creates and returns random u64
pub fn random_u64() -> Result<u64, getrandom::Error> {
// Buffer of 8 `u8`s that are later merged into one u64
let mut buf = [0u8; 8];
// Populate buffer with random values
getrandom(&mut buf)?;
// Merge buffer into u64
Ok(u64::from_be_bytes(buf))
}
include!(concat!(env!("OUT_DIR"), "/valid_chars.rs"));
pub fn is_valid_char(c: char) -> bool {