Skip to content

Commit e44ddf0

Browse files
committed
refactor(cli): rename command haxmeta into serialize
1 parent 7ce79fc commit e44ddf0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cli/subcommands/src/cargo_hax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ fn run_command(options: &Options, haxmeta_files: Vec<EmitHaxMetaMessage>) -> boo
682682
}
683683
error
684684
}
685-
Command::HaxMeta { .. } => {
685+
Command::Serialize { .. } => {
686686
for EmitHaxMetaMessage { path, .. } in haxmeta_files {
687687
HaxMessage::ProducedFile { path, wrote: true }.report(options.message_format, None);
688688
}

hax-types/src/cli_options/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,10 @@ pub enum Command<E: Extension> {
431431
include_extra: bool,
432432
},
433433

434-
/// Export to a `haxmeta` file, the internal binary format used by hax to
434+
/// Serialize to a `haxmeta` file, the internal binary format used by hax to
435435
/// store the ASTs produced by the hax exporter.
436-
#[clap(name = "haxmeta", hide = true)]
437-
HaxMeta {
436+
#[clap(hide = true)]
437+
Serialize {
438438
/// Whether the bodies are exported as THIR, built MIR, const
439439
/// MIR, or a combination. Repeat this option to extract a
440440
/// combination (e.g. `-k thir -k mir-built`). Pass `--kind`
@@ -462,15 +462,15 @@ impl<E: Extension> Command<E> {
462462
pub fn body_kinds(&self) -> Vec<ExportBodyKind> {
463463
match self {
464464
Command::JSON { kind, .. } => kind.clone(),
465-
Command::HaxMeta { kind, .. } => kind.clone(),
465+
Command::Serialize { kind, .. } => kind.clone(),
466466
Command::Backend { .. } | Command::CliExtension { .. } => vec![ExportBodyKind::Thir],
467467
}
468468
}
469469
pub fn backend_name(&self) -> Option<BackendName> {
470470
match self {
471471
Command::Backend(backend_options) => Some((&backend_options.backend).into()),
472472
Command::JSON { .. } => None,
473-
Command::HaxMeta { backend, .. } => backend.clone(),
473+
Command::Serialize { backend, .. } => backend.clone(),
474474
Command::CliExtension(_) => None,
475475
}
476476
}

0 commit comments

Comments
 (0)