| Crates.io | is_wine |
| lib.rs | is_wine |
| version | 0.1.2 |
| created_at | 2025-02-11 10:42:13.079319+00 |
| updated_at | 2025-02-14 14:22:28.357546+00 |
| description | A library to easily check if the current app is running under wine. |
| homepage | |
| repository | https://github.com/dSyncro/is_wine |
| max_upload_size | |
| id | 1551252 |
| size | 11,581 |
This library has no external nor prior dependency and can run under no_std environments.
Just add the library to your project
cargo add is_wine
Import it and that's it!
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.
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!
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.