From 4ca28575000a6efbdc35a174a9a8079ca61f3070 Mon Sep 17 00:00:00 2001 From: _cry64 Date: Tue, 14 Apr 2026 13:25:35 +1000 Subject: [PATCH] dylib not needed --- nixide-sys/Cargo.toml | 1 - nixide/src/version.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/nixide-sys/Cargo.toml b/nixide-sys/Cargo.toml index f1f98e6..41a1b93 100644 --- a/nixide-sys/Cargo.toml +++ b/nixide-sys/Cargo.toml @@ -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. diff --git a/nixide/src/version.rs b/nixide/src/version.rs index dfe8890..568d658 100644 --- a/nixide/src/version.rs +++ b/nixide/src/version.rs @@ -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::()?, // patch length > 3 && s.ends_with("pre"), // is_prerelease ) - } + }, None => (0, false), };