mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
Formatting changes.
This commit is contained in:
Generated
+2
-2
@@ -1360,9 +1360,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "uuid"
|
||||
version = "1.22.0"
|
||||
version = "1.23.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a68d3c8f01c0cfa54a75291d83601161799e4a89a39e0929f4b0354d88757a37"
|
||||
checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76"
|
||||
dependencies = [
|
||||
"js-sys",
|
||||
"wasm-bindgen",
|
||||
|
||||
+1
-3
@@ -18,12 +18,10 @@ include = ["LICENSE", "**/*.rs", "Cargo.toml"]
|
||||
|
||||
[workspace.dependencies]
|
||||
rkyv = "0.8.16"
|
||||
serde = { version = "1.0.228", features = ["derive"] }
|
||||
serde_json = "1.0.149"
|
||||
thiserror = "2.0.18"
|
||||
chrono = "0.4.44"
|
||||
static_init = "1.0.4"
|
||||
unshell = { path = "." }
|
||||
unshell = { path = "." }
|
||||
# ush-obfuscate = { path = "./ush-obfuscate" }
|
||||
# base62 = { path = "./base62" }
|
||||
|
||||
|
||||
@@ -334,10 +334,7 @@ fn build_examples(root: &Path) {
|
||||
}
|
||||
|
||||
fn run_binary(binary: &Path, iterations: usize, label: &str) {
|
||||
run_command(
|
||||
label,
|
||||
Command::new(binary).arg(iterations.to_string()),
|
||||
);
|
||||
run_command(label, Command::new(binary).arg(iterations.to_string()));
|
||||
}
|
||||
|
||||
fn run_strace(binary: &Path, iterations: usize) {
|
||||
@@ -394,12 +391,18 @@ fn run_heaptrack(root: &Path, heap_dir: &Path, name: &str, binary: &Path, iterat
|
||||
|
||||
fn run_command(label: &str, command: &mut Command) {
|
||||
println!("--- {label} ---");
|
||||
let output = command.output().unwrap_or_else(|error| panic!("{label} failed to launch: {error}"));
|
||||
let output = command
|
||||
.output()
|
||||
.unwrap_or_else(|error| panic!("{label} failed to launch: {error}"));
|
||||
if !output.stdout.is_empty() {
|
||||
print!("{}", String::from_utf8_lossy(&output.stdout));
|
||||
}
|
||||
if !output.stderr.is_empty() {
|
||||
print!("{}", String::from_utf8_lossy(&output.stderr));
|
||||
}
|
||||
assert!(output.status.success(), "{label} failed with status {}", output.status);
|
||||
assert!(
|
||||
output.status.success(),
|
||||
"{label} failed with status {}",
|
||||
output.status
|
||||
);
|
||||
}
|
||||
|
||||
@@ -99,7 +99,9 @@ pub fn run_forward_call_receive(iterations: usize) -> usize {
|
||||
.as_ref()
|
||||
.map(|(route, frame)| route_value(*route).wrapping_add(frame.len()))
|
||||
.unwrap_or_default();
|
||||
checksum = checksum.wrapping_add(forwarded).wrapping_add(outcome.dropped as usize);
|
||||
checksum = checksum
|
||||
.wrapping_add(forwarded)
|
||||
.wrapping_add(outcome.dropped as usize);
|
||||
}
|
||||
black_box(checksum)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user