dylib not needed
This commit is contained in:
parent
4ac2855bc8
commit
4ca2857500
2 changed files with 2 additions and 3 deletions
|
|
@ -15,7 +15,6 @@ targets = [ "x86_64-unknown-linux-gnu" ]
|
|||
|
||||
[lib]
|
||||
path = "src/lib.rs"
|
||||
# crate-type = ["dylib"] # build libnixide_sys.so
|
||||
|
||||
# NOTE: `[features]` have a 1-1 correspondence to the
|
||||
# NOTE: shared libraries produced by the Nix C API.
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ impl NixVersion {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// ```rs
|
||||
/// use nixide::NixVersion;
|
||||
///
|
||||
/// assert_eq!(NixVersion::parse("2.26"), Ok(NixVersion::new(2, 26, 0, false)));
|
||||
|
|
@ -72,7 +72,7 @@ impl NixVersion {
|
|||
s[..offset].parse::<u32>()?, // patch
|
||||
length > 3 && s.ends_with("pre"), // is_prerelease
|
||||
)
|
||||
}
|
||||
},
|
||||
None => (0, false),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue