(args: Vec<String>)
| 400 | } |
| 401 | |
| 402 | fn aot_serializer(args: Vec<String>) -> Result<()> { |
| 403 | match args.first().map(String::as_str) { |
| 404 | Some("serialize") => serialize_aot_cli(&args[1..]), |
| 405 | Some("probe") => probe_aot_serializer_in_process(), |
| 406 | Some(other) => bail!("unknown aot-serializer subcommand: {other}"), |
| 407 | None => bail!( |
| 408 | "usage: cargo run -p xtask --features aot-serializer -- aot-serializer <serialize|probe>" |
| 409 | ), |
| 410 | } |
| 411 | } |
| 412 | |
| 413 | #[cfg(not(feature = "aot-serializer"))] |
| 414 | fn serialize_aot_cli(_args: &[String]) -> Result<()> { |
no test coverage detected