Skip to content

Commit

Permalink
trim deps (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon authored Sep 1, 2023
1 parent f803888 commit 9881aae
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 77 deletions.
59 changes: 4 additions & 55 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions soroban-env-host/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@ wasmi = { workspace = true }
static_assertions = "1.1.0"
sha2 = "0.10.0"
ed25519-dalek = {version = "2.0.0", features = ["rand_core"] }
# NB: this must match the same curve25519 version used by ed25519-dalek above
curve25519-dalek = "4.0.0"
# NB: this must match the same rand version used by ed25519-dalek above
rand = "0.8.5"
# NB: this must match the same rand_chacha version used by ed25519-dalek above
rand_chacha = "0.3.1"
hex = "0.4.3"
num-traits = "0.2.15"
num-integer = "0.1.45"
num-derive = "0.4.0"
log = "0.4.17"
backtrace = "0.3"
k256 = {version = "0.13.1", features=["ecdsa", "arithmetic"]}
# NB: getrandom is a transitive dependency of k256 which we're not using directly
Expand All @@ -41,9 +37,8 @@ sha3 = "0.10.8"
tracy-client = { version = "=0.15.2", features = ["enable", "timer-fallback"], default-features = false, optional = true }

[dev-dependencies]
env_logger = "0.9.0"
hex = "0.4.3"
itertools = "0.10.3"
log = "0.4.17"
tabwriter = "1.2.1"
thousands = "0.2.0"
soroban-test-wasms = { package = "soroban-test-wasms", path = "../soroban-test-wasms" }
Expand Down
2 changes: 1 addition & 1 deletion soroban-env-host/benches/common/modelfit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn fit_linear_regression(x: Vec<f64>, y: Vec<f64>) -> FPCostModel {
.unwrap();
let params = model.parameters();
let r2 = model.rsquared();
info!(
println!(
"Linear regression found parameters {:?}, with R2 = {}",
params, r2
);
Expand Down
1 change: 0 additions & 1 deletion soroban-env-host/benches/variation_histograms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ impl Benchmark for LinearModelTables {

#[cfg(all(test, any(target_os = "linux", target_os = "macos")))]
fn main() -> std::io::Result<()> {
env_logger::init();
for_each_host_cost_measurement::<LinearModelTables>()?;
Ok(())
}
1 change: 0 additions & 1 deletion soroban-env-host/benches/worst_case_linear_models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ fn extract_wasmi_fuel_costs(

#[cfg(all(test, any(target_os = "linux", target_os = "macos")))]
fn main() -> std::io::Result<()> {
env_logger::init();
let params = for_each_host_cost_measurement::<WorstCaseLinearModels>()?;
let params_wasm = for_each_wasm_insn_measurement::<WorstCaseLinearModels>()?;

Expand Down
13 changes: 0 additions & 13 deletions soroban-env-host/src/events/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,19 +153,6 @@ impl InternalEventsBuffer {
Ok(())
}

#[allow(unused)]
pub fn dump_to_debug_log(&self) {
use log::debug;
debug!("=======Start of events=======");
for e in self.vec.iter() {
match &e.0 {
InternalEvent::Contract(c) => debug!("Contract event: {:?}", c),
InternalEvent::Diagnostic(c) => debug!("Diagnostic event: {:?}", c),
}
}
debug!("========End of events========")
}

/// Converts the internal events into their external representation. This should only be called
/// either when the host is finished (via `try_finish`), or when an error occurs.
pub fn externalize(&self, host: &Host) -> Result<Events, HostError> {
Expand Down

0 comments on commit 9881aae

Please sign in to comment.