dylib not needed

This commit is contained in:
do butterflies cry? 2026-04-14 13:25:35 +10:00
parent 4ac2855bc8
commit 4ca2857500
Signed by: cry
GPG key ID: F68745A836CA0412
2 changed files with 2 additions and 3 deletions

View file

@ -15,7 +15,6 @@ targets = [ "x86_64-unknown-linux-gnu" ]
[lib] [lib]
path = "src/lib.rs" path = "src/lib.rs"
# crate-type = ["dylib"] # build libnixide_sys.so
# NOTE: `[features]` have a 1-1 correspondence to the # NOTE: `[features]` have a 1-1 correspondence to the
# NOTE: shared libraries produced by the Nix C API. # NOTE: shared libraries produced by the Nix C API.

View file

@ -45,7 +45,7 @@ impl NixVersion {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```rs
/// use nixide::NixVersion; /// use nixide::NixVersion;
/// ///
/// assert_eq!(NixVersion::parse("2.26"), Ok(NixVersion::new(2, 26, 0, false))); /// assert_eq!(NixVersion::parse("2.26"), Ok(NixVersion::new(2, 26, 0, false)));
@ -72,7 +72,7 @@ impl NixVersion {
s[..offset].parse::<u32>()?, // patch s[..offset].parse::<u32>()?, // patch
length > 3 && s.ends_with("pre"), // is_prerelease length > 3 && s.ends_with("pre"), // is_prerelease
) )
} },
None => (0, false), None => (0, false),
}; };