Compare commits
No commits in common. "4bfaf425f0730aa1ceae63302fd86cf11d368270" and "3b8681360f8878e9c5039a3a2f3704b39fe5aa5a" have entirely different histories.
4bfaf425f0
...
3b8681360f
6 changed files with 10 additions and 9 deletions
|
@ -3,6 +3,9 @@ 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 sig::Sig;
|
|
||||||
pub use nix_cache_info::NixCacheInfo;
|
pub use nix_cache_info::NixCacheInfo;
|
||||||
|
pub use sig::Sig;
|
||||||
|
|
|
@ -20,7 +20,6 @@ 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,7 +38,6 @@ 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