Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions Cargo.lock

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

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ log = { version = "*" }
log4rs = { version = "*", features = ["gzip"] }
walkdir = { version = "*" }
rayon = { version = "*" }
blake3 = { version = "*" }
hex = { version = "*" }
toml_edit = { version = "*" }

syn = { version = "2", features = ["full", "extra-traits"] }
Expand Down
45 changes: 0 additions & 45 deletions src/fingerprint.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ pub mod commands;
pub mod config;
pub mod dep_tree;
pub mod doc;
pub mod fingerprint;
pub mod format;
pub mod generator;
pub mod metadata;
Expand Down
37 changes: 0 additions & 37 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ enum Commands {
)]
Clean(CleanArgs),

#[command(
name = "fingerprint",
about = "Print the fingerprint of the verification targets",
alias = "fp"
)]
Fingerprint(FingerprintArgs),

#[command(
name = "list",
about = "List all available verification targets",
Expand Down Expand Up @@ -307,18 +300,6 @@ struct BuildArgs {
#[derive(Parser, Debug)]
struct CleanArgs {}

#[derive(Parser, Debug)]
struct FingerprintArgs {
#[arg(
short = 't',
long = "targets",
value_parser = verus::find_target,
help = "The targets to fingerprint",
num_args = 0..,
action = ArgAction::Append)]
targets: Vec<VerusTarget>,
}

#[derive(Parser, Debug)]
struct ListTargetsArgs {}

Expand Down Expand Up @@ -424,13 +405,6 @@ struct FmtArgs {

fn verify(args: &VerifyArgs) -> Result<(), DynError> {
let targets = args.targets.clone();
// verify-only-module should only apply to the main target
// Conditions: exactly one target AND pass_through contains "--verify-only-module"
let verify_only_module_main_only = targets.len() == 1
&& args
.pass_through
.iter()
.any(|arg| arg == "--verify-only-module" || arg.starts_with("--verify-only-module="));
let options = verus::ExtraOptions {
max_errors: args.max_errors,
log: args.log,
Expand All @@ -440,7 +414,6 @@ fn verify(args: &VerifyArgs) -> Result<(), DynError> {
pass_through: args.pass_through.clone(),
count_line: args.count_line,
focus: args.focus,
verify_only_module_main_only,
};

verus::exec_verify(&targets, &options)
Expand Down Expand Up @@ -482,20 +455,11 @@ fn build(args: &BuildArgs) -> Result<(), DynError> {
pass_through: args.pass_through.clone(),
count_line: false,
focus: false,
verify_only_module_main_only: false,
};

verus::exec_build(&targets, &options)
}

fn fingerprint(args: &FingerprintArgs) -> Result<(), DynError> {
let targets = args.targets.clone();
for target in targets {
println!("{}: {}", target.name, target.fingerprint());
}
Ok(())
}

fn clean(_args: &CleanArgs) -> Result<(), DynError> {
verus::exec_clean()
}
Expand Down Expand Up @@ -567,7 +531,6 @@ fn main() {
Commands::Doc(args) => doc(args),
Commands::Bootstrap(args) => bootstrap(args),
Commands::Build(args) => build(args),
Commands::Fingerprint(args) => fingerprint(args),
Commands::ListTargets(args) => list_targets(args),
Commands::NewTarget(args) => new_target(args),
Commands::ShowItem(args) => show_item(args),
Expand Down
Loading
Loading