mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-14 08:03:34 +00:00
add formatting bypasses to xtask-generated files
This commit is contained in:
parent
d32914fc95
commit
cee320977e
2 changed files with 4 additions and 1 deletions
|
|
@ -57,6 +57,7 @@ pub(crate) fn generate_app_menus(apps: &Vec<String>) {
|
|||
|
||||
// construct the gam_tokens
|
||||
let mut gam_tokens = String::new();
|
||||
writeln!(gam_tokens, "#![cfg_attr(rustfmt, rustfmt_skip)]").unwrap();
|
||||
writeln!(gam_tokens, "// This file is auto-generated by xtask/main.rs generate_app_menus()").unwrap();
|
||||
for (app_name, manifest) in working_set.iter() {
|
||||
writeln!(
|
||||
|
|
@ -95,6 +96,7 @@ pub(crate) fn generate_app_menus(apps: &Vec<String>) {
|
|||
|
||||
// construct the app menu
|
||||
let mut menu = String::new();
|
||||
writeln!(menu, "#![cfg_attr(rustfmt, rustfmt_skip)]").unwrap();
|
||||
writeln!(menu, "// This file is auto-generated by xtask/main.rs generate_app_menus()").unwrap();
|
||||
if apps.len() == 0 {
|
||||
writeln!(menu, "// NO APPS SELECTED: suppressing warning messages!").unwrap();
|
||||
|
|
|
|||
|
|
@ -66,7 +66,8 @@ pub(crate) fn generate_version(add_timestamp: bool) {
|
|||
}
|
||||
|
||||
fn print_header<U: Write>(out: &mut U) {
|
||||
let s = r####"// Versioning information is kept in a separate file, attached to a small, well-known server in the Xous System
|
||||
let s = r####"#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
// Versioning information is kept in a separate file, attached to a small, well-known server in the Xous System
|
||||
// This is a trade-off between rebuild times and flexibility.
|
||||
// This was autogenerated by xtask/src/main.rs:print_header(). Do not edit manually.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue