Dependency update (#73)
* Cargo update * Updated crates * Removed unused file * Code cleanup * Version bump * Removed commented code
This commit was merged in pull request #73.
This commit is contained in:
Generated
+330
-298
File diff suppressed because it is too large
Load Diff
+7
-7
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "icarus-dm"
|
name = "icarus-dm"
|
||||||
version = "0.7.1"
|
version = "0.7.2"
|
||||||
rust-version = "1.88"
|
rust-version = "1.88"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
@@ -8,10 +8,10 @@ edition = "2024"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
futures = { version = "0.3.31" }
|
futures = { version = "0.3.31" }
|
||||||
http = { version = "1.3.1" }
|
http = { version = "1.3.1" }
|
||||||
reqwest = { version = "0.12.20", features = ["json", "blocking", "multipart", "stream"] }
|
reqwest = { version = "0.12.23", features = ["json", "blocking", "multipart", "stream"] }
|
||||||
serde = { version = "1.0.219", features = ["derive"] }
|
serde = { version = "1.0.228", features = ["derive"] }
|
||||||
serde_json = "1.0.140"
|
serde_json = "1.0.145"
|
||||||
tokio = { version = "1.45.1", features = ["full"] }
|
tokio = { version = "1.47.1", features = ["full"] }
|
||||||
tokio-util = { version = "0.7.15", features = ["codec"] }
|
tokio-util = { version = "0.7.16", features = ["codec"] }
|
||||||
uuid = { version = "1.17.0", features = ["v4", "serde"] }
|
uuid = { version = "1.18.1", features = ["v4", "serde"] }
|
||||||
icarus_models = { git = "ssh://git@git.kundeng.us/phoenix/icarus_models.git", tag = "v0.6.6-65-eac7562b80-111" }
|
icarus_models = { git = "ssh://git@git.kundeng.us/phoenix/icarus_models.git", tag = "v0.6.6-65-eac7562b80-111" }
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
pub mod api;
|
pub mod api;
|
||||||
pub mod flags;
|
pub mod flags;
|
||||||
pub mod icarus_action;
|
pub mod icarus_action;
|
||||||
pub mod upload_form;
|
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
use std::default::Default;
|
|
||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
|
||||||
|
|
||||||
#[derive(Debug, Default, Deserialize, Serialize)]
|
|
||||||
pub struct UploadForm {
|
|
||||||
pub url: Option<String>,
|
|
||||||
pub filepath: Option<String>,
|
|
||||||
}
|
|
||||||
@@ -1,32 +1,3 @@
|
|||||||
use serde::{Deserialize, Serialize};
|
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
|
||||||
pub struct Checks {}
|
|
||||||
|
|
||||||
impl Checks {
|
|
||||||
pub fn _is_numeric(text: &str) -> bool {
|
|
||||||
text.parse::<f64>().is_ok()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn _index_of_item_in_container<F>(container: &str, item: &char, func: F) -> i32
|
|
||||||
where
|
|
||||||
F: Fn(&char, &char) -> bool,
|
|
||||||
{
|
|
||||||
let mut index = -1;
|
|
||||||
|
|
||||||
for c in container.chars() {
|
|
||||||
if func(&c, item) {
|
|
||||||
index += 1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
index += 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
index
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn exit_program(code: i32) {
|
pub fn exit_program(code: i32) {
|
||||||
std::process::exit(code);
|
std::process::exit(code);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user