#wine #detect #detection #linux #windows

no-std is_wine

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

3 releases

new 0.1.2 Feb 14, 2025
0.1.1 Feb 11, 2025
0.1.0 Feb 11, 2025

#115 in No standard library

Download history 300/week @ 2025-02-10

300 downloads per month

MIT license

6KB
63 lines

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.

Dependencies

~126MB
~2M SLoC