is_wine 0.1.1

A library to easily check if the current app is running under wine.
Documentation
  • Coverage
  • 100%
    6 out of 6 items documented0 out of 0 items with examples
  • Size
  • Source code size: 10.94 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.17 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • dSyncro/is_wine
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dSyncro

is_wine

License: MIT Version

A library to easily check if the current app is running under wine.

📖 Table of Contents

Dependencies and requirements

This library has no external nor prior dependency and can run under no_std environments.

Getting Started

Just add the library to your project

cargo add is_wine

Import it and that's it!

Usage

Here is an example usage of is_wine

let is_wine = is_wine(); // Returns true under wine, false elsewise, panics on failure.

let is_wine = is_wine_lax(); // Returns true under wine, false elsewise or on failure.

let is_wine = try_is_wine(); // Returns a type-safe result.

Acknowledgement

After a rapid check on crates.io I noticed there is a similar crate performing the same task:

If you find it useful please support it too!

Side notes

Please keep in mind that at the moment this is a side project developed with no planned continuity nor schedule. Therefore support, fixes and new features can not be guaranteed.

As stated in the LICENSE, no contributor must be considered liable for the use of this project.