Compare commits
No commits in common. "3b8681360f8878e9c5039a3a2f3704b39fe5aa5a" and "4bfaf425f0730aa1ceae63302fd86cf11d368270" have entirely different histories.
3b8681360f
...
4bfaf425f0
6 changed files with 9 additions and 10 deletions
|
@ -3,9 +3,6 @@ name = "narinfo"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A parser for the narinfo file format"
|
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]
|
[dependencies]
|
||||||
derive_builder = { version = "0.11.2", default-features = false }
|
derive_builder = { version = "0.11.2", default-features = false }
|
||||||
|
|
|
@ -11,5 +11,5 @@ mod nix_cache_info;
|
||||||
mod sig;
|
mod sig;
|
||||||
|
|
||||||
pub use crate::narinfo::NarInfo;
|
pub use crate::narinfo::NarInfo;
|
||||||
pub use nix_cache_info::NixCacheInfo;
|
|
||||||
pub use sig::Sig;
|
pub use sig::Sig;
|
||||||
|
pub use nix_cache_info::NixCacheInfo;
|
||||||
|
|
|
@ -20,6 +20,7 @@ impl<'a> NarInfo<'a> {
|
||||||
///
|
///
|
||||||
/// let parsed = NarInfo::parse(data).unwrap();
|
/// let parsed = NarInfo::parse(data).unwrap();
|
||||||
/// assert_eq!(parsed.store_path, "/nix/store/zzxrhj9056vjlanfjkinvhd7458yc2z8-liblouis-3.22.0");
|
/// assert_eq!(parsed.store_path, "/nix/store/zzxrhj9056vjlanfjkinvhd7458yc2z8-liblouis-3.22.0");
|
||||||
|
///
|
||||||
/// ```
|
/// ```
|
||||||
pub fn parse(value: &'a str) -> ParsingResult<Self> {
|
pub fn parse(value: &'a str) -> ParsingResult<Self> {
|
||||||
let mut builder = NarInfoBuilder::default();
|
let mut builder = NarInfoBuilder::default();
|
||||||
|
|
|
@ -38,6 +38,7 @@ impl<'a> NixCacheInfo<'a> {
|
||||||
///
|
///
|
||||||
/// let parsed = NixCacheInfo::parse(data).unwrap();
|
/// let parsed = NixCacheInfo::parse(data).unwrap();
|
||||||
/// assert_eq!(parsed.store_dir, "/nix/store");
|
/// assert_eq!(parsed.store_dir, "/nix/store");
|
||||||
|
///
|
||||||
/// ```
|
/// ```
|
||||||
pub fn parse(value: &'a str) -> ParsingResult<Self> {
|
pub fn parse(value: &'a str) -> ParsingResult<Self> {
|
||||||
let mut builder = NixCacheInfoBuilder::default();
|
let mut builder = NixCacheInfoBuilder::default();
|
||||||
|
|
Loading…
Reference in a new issue