Skip to main content

Crate libversion_sys

Crate libversion_sys 

Source
Expand description

FFI bindings and safe wrapper for libversion, an advanced version string comparison library.

§Raw FFI

The ffi module exposes the raw C functions and constants directly.

§Safe API

compare and compare_with_flags provide safe Rust wrappers that return std::cmp::Ordering.

Re-exports§

pub use ffi::VERSIONFLAG_ANY_IS_PATCH;
pub use ffi::VERSIONFLAG_LOWER_BOUND;
pub use ffi::VERSIONFLAG_P_IS_PATCH;
pub use ffi::VERSIONFLAG_UPPER_BOUND;
pub use ffi::version_compare2;
pub use ffi::version_compare4;

Modules§

ffi
Raw FFI bindings generated by bindgen.

Functions§

compare
Compare two version strings.
compare_with_flags
Compare two version strings with per-version flags.