/
View dependency graph
Depends on
- dh-cargo (dh-sequence-cargo)
- rust-chrono (librust-chrono-0.4+default-dev)
- rust-deb822-fast (librust-deb822-fast+default-dev, librust-deb822-fast+derive-dev)
- rust-deb822-lossless (librust-deb822-lossless+default-dev)
- cargo, debhelper-compat, librust-patchkit-0.3+default-dev, librust-url-2+default-dev, libstd-rust-dev, rustc
README (full)
Rust parser for Debian DEP-3 patch headers
Examples
use dep3::PatchHeader;
use std::str::FromStr;
let text = r#"From: John Doe <john.doe@example>
Date: Mon, 1 Jan 2000 00:00:00 +0000
Subject: [PATCH] fix a bug
Bug-Debian: https://bugs.debian.org/123456
Bug: https://bugzilla.example.com/bug.cgi?id=123456
Forwarded: not-needed
"#;
let patch_header = PatchHeader::from_str(text).unwrap();
assert_eq!(patch_header.description(), Some("[PATCH] fix a bug".to_string()));
assert_eq!(patch_header.vendor_bugs("Debian").collect::<Vec<_>>(), vec!["https://bugs.debian.org/123456".to_string()]);
Features
lossless(default): round-trip preserving parser built ondeb822-lossless.patchkit: parse the unified diff body of adebian/patches/*file intopatchkitstructures alongside its DEP-3 header, via thedep3::patchkitmodule.
See https://dep-team.pages.debian.net/deps/dep3/ for details
| dir | debian/ |
| dir | examples/ |
| dir | src/ |
| file | .cargo_vcs_info.json |
| file | .gitignore |
| file | Cargo.lock |
| file | Cargo.toml |
| file | Cargo.toml.orig |
| file | README.md |
| file | disperse.conf |