[pbs-devel] [PATCH pxar] format: Document source of format const values

Christian Ebner c.ebner at proxmox.com
Fri Apr 28 10:54:43 CEST 2023


Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
 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
-- 
2.30.2






More information about the pbs-devel mailing list