]> git.proxmox.com Git - pxar.git/commitdiff
format: Document source of format const values
authorChristian Ebner <c.ebner@proxmox.com>
Fri, 28 Apr 2023 08:54:43 +0000 (10:54 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 May 2023 09:27:08 +0000 (11:27 +0200)
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
examples/mk-format-hashes.rs
src/format/mod.rs

index 4ab6fff2e02fc7d1cc00e4faefb0a38f8119a0bb..1ad606c939da4867719df6d862a4938fd983d90d 100644 (file)
@@ -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);
index 742e1268e21ee6aac8ba34dae61e8253ef8b9b33..72a193c3106112fd67ecf641bf144de5b5321024 100644 (file)
@@ -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