5
0
mirror of git://git.proxmox.com/git/pxar.git synced 2025-01-03 09:17:38 +03:00

format: Document source of format const values

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2023-04-28 10:54:43 +02:00 committed by Thomas Lamprecht
parent 6ad046f9f9
commit 00d36bf97b
2 changed files with 2 additions and 0 deletions

View 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);

View 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