is_wine

Crates.iois_wine
lib.rsis_wine
version0.1.2
created_at2025-02-11 10:42:13.079319+00
updated_at2025-02-14 14:22:28.357546+00
descriptionA library to easily check if the current app is running under wine.
homepage
repositoryhttps://github.com/dSyncro/is_wine
max_upload_size
id1551252
size11,581
Domenico Mancini (dSyncro)

documentation

README

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.

Commit count: 3

cargo fmt