Skip to content

Commit

Permalink
fix: kill dependency const_format
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Franceschino committed Jul 4, 2024
1 parent 875f0c5 commit e5dac02
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 37 deletions.
28 changes: 0 additions & 28 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion cli/driver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ hax-frontend-exporter-options.workspace = true
hax-lib-macros-types.workspace = true
itertools.workspace = true
which.workspace = true
const_format = "0.2"
tracing.workspace = true
tracing-subscriber.workspace = true
tracing-tree.workspace = true
5 changes: 2 additions & 3 deletions cli/driver/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ mod features;
use callbacks_wrapper::*;
use features::*;

use const_format::formatcp;
use hax_types::cli_options::{BackendOptions, Command, ENV_VAR_OPTIONS_FRONTEND};

use rustc_driver::{Callbacks, Compilation};
Expand Down Expand Up @@ -80,11 +79,11 @@ fn main() {
setup_logging();

let options: hax_types::cli_options::Options =
serde_json::from_str(&std::env::var(ENV_VAR_OPTIONS_FRONTEND).expect(&formatcp!(
serde_json::from_str(&std::env::var(ENV_VAR_OPTIONS_FRONTEND).expect(&format!(
"Cannot find environnement variable {}",
ENV_VAR_OPTIONS_FRONTEND
)))
.expect(&formatcp!(
.expect(&format!(
"Invalid value for the environnement variable {}",
ENV_VAR_OPTIONS_FRONTEND
));
Expand Down
1 change: 0 additions & 1 deletion cli/subcommands/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ colored.workspace = true
is-terminal = "0.4.9"
hax-phase-debug-webapp.workspace = true
inquire = "0.6"
const_format = "0.2"
annotate-snippets.workspace = true
serde-jsonlines = "0.5.0"
prettyplease = "0.2.20"
Expand Down
5 changes: 1 addition & 4 deletions cli/subcommands/src/cargo_hax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ fn rustflags() -> String {
}

const ENGINE_BINARY_NAME: &str = "hax-engine";
const ENGINE_BINARY_NOT_FOUND: &str = const_format::formatcp!(
"The binary [{}] was not found in your [PATH].",
ENGINE_BINARY_NAME,
);
const ENGINE_BINARY_NOT_FOUND: &str = "The binary [hax-engine] was not found in your [PATH].";

/// Dynamically looks for binary [ENGINE_BINARY_NAME]. First, we
/// check whether [HAX_ENGINE_BINARY] is set, and use that if it
Expand Down

0 comments on commit e5dac02

Please sign in to comment.