From 1d2c78b7e0bf7ff7c2ba66d4ddae9383062edc50 Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Fri, 28 Apr 2023 10:54:43 +0200 Subject: [PATCH] format: Document source of format const values Signed-off-by: Christian Ebner (cherry picked from commit 00d36bf97b8f5a79e5dcac486f8b72bad2b7f190) --- examples/mk-format-hashes.rs | 1 + src/format/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/mk-format-hashes.rs b/examples/mk-format-hashes.rs index 4ab6fff..1ad606c 100644 --- a/examples/mk-format-hashes.rs +++ b/examples/mk-format-hashes.rs @@ -54,6 +54,7 @@ const CONSTANTS: &[(&str, &str, &str)] = &[ ]; fn main() { + println!("// Generated by `cargo run --example mk-format-hashes`"); for constant in CONSTANTS { if !constant.0.is_empty() { println!("/// {}", constant.0); diff --git a/src/format/mod.rs b/src/format/mod.rs index 742e126..72a193c 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -78,6 +78,7 @@ pub mod mode { pub const ISVTX : u64 = 0o0001000; } +// Generated by `cargo run --example mk-format-hashes` /// Beginning of an entry (current version). pub const PXAR_ENTRY: u64 = 0xd5956474e588acef; /// Previous version of the entry struct