We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f88923 commit 133bf68Copy full SHA for 133bf68
asn-compiler/src/bin/hampi-rs-asn1c.rs
@@ -46,6 +46,10 @@ struct Cli {
46
/// Log verbosity (default: info, -d: debug, -dd...: trace)
47
#[arg(short, action=clap::ArgAction::Count)]
48
debug: u8,
49
+
50
+ /// Whether to disable `rustfmt` formatting of the generated files.
51
+ #[arg(long, default_value_t = false)]
52
+ no_rustfmt: bool,
53
}
54
55
fn main() -> Result<()> {
@@ -90,6 +94,11 @@ fn main() -> Result<()> {
90
94
cli.codec.clone(),
91
95
derives.clone(),
92
96
);
97
98
+ if cli.no_rustfmt {
99
+ compiler.set_rustfmt_generated_code(false);
100
+ }
101
93
102
compiler.compile_files(&cli.files)?;
103
104
Ok(())
0 commit comments