5
0
mirror of git://git.proxmox.com/git/pxar.git synced 2025-03-19 22:50:36 +03:00

format: Document source of format const values

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
(cherry picked from commit 00d36bf97b8f5a79e5dcac486f8b72bad2b7f190)
This commit is contained in:
Christian Ebner 2023-04-28 10:54:43 +02:00 committed by Fabian Grünbichler
parent eb2fb432a9
commit 1d2c78b7e0
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