Compare commits

..

No commits in common. "4bfaf425f0730aa1ceae63302fd86cf11d368270" and "3b8681360f8878e9c5039a3a2f3704b39fe5aa5a" have entirely different histories.

6 changed files with 10 additions and 9 deletions

View file

@ -3,6 +3,9 @@ name = "narinfo"
version = "1.0.0"
edition = "2021"
description = "A parser for the narinfo file format"
repository = "https://im.badat.dev/bad/narinfo-rs"
license = "MIT OR Apache-2.0"
keywords = ["nix", "nixos"]
[dependencies]
derive_builder = { version = "0.11.2", default-features = false }

View file

@ -11,5 +11,5 @@ mod nix_cache_info;
mod sig;
pub use crate::narinfo::NarInfo;
pub use sig::Sig;
pub use nix_cache_info::NixCacheInfo;
pub use sig::Sig;

View file

@ -20,7 +20,6 @@ impl<'a> NarInfo<'a> {
///
/// let parsed = NarInfo::parse(data).unwrap();
/// assert_eq!(parsed.store_path, "/nix/store/zzxrhj9056vjlanfjkinvhd7458yc2z8-liblouis-3.22.0");
///
/// ```
pub fn parse(value: &'a str) -> ParsingResult<Self> {
let mut builder = NarInfoBuilder::default();

View file

@ -38,7 +38,6 @@ impl<'a> NixCacheInfo<'a> {
///
/// let parsed = NixCacheInfo::parse(data).unwrap();
/// assert_eq!(parsed.store_dir, "/nix/store");
///
/// ```
pub fn parse(value: &'a str) -> ParsingResult<Self> {
let mut builder = NixCacheInfoBuilder::default();