coolprop_sys/
lib.rs

1//! [<img alt="GitHub" src="https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="22">](https://github.com/portyanikhin/rfluids)
2//! [<img alt="docs.rs" src="https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs" height="22">](https://docs.rs/coolprop-sys)
3//! [<img alt="crates.io" src="https://img.shields.io/crates/v/coolprop-sys?style=for-the-badge&logo=rust&labelColor=555555&color=fc8d62" height="22">](https://crates.io/crates/coolprop-sys)
4//! [<img alt="CI" src="https://img.shields.io/github/actions/workflow/status/portyanikhin/rfluids/ci.yml?style=for-the-badge&logo=githubactions&logoColor=ffffff&label=ci&labelColor=555555" height="22">](https://github.com/portyanikhin/rfluids/actions/workflows/ci.yml)
5//!
6//! Raw FFI bindings to [CoolProp](https://coolprop.github.io/CoolProp/).
7//!
8//! ## Supported platforms
9//!
10//! - `Linux x86-64`
11//! - `macOS AArch64`
12//! - `macOS x86-64`
13//! - `Windows AArch64`
14//! - `Windows x86-64`
15//!
16//! ## MSRV
17//!
18//! `coolprop-sys` requires `rustc` 1.85.0 or later.
19//!
20//! ## How to install
21//!
22//! Run the following command in your project directory:
23//!
24//! ```shell
25//! cargo add coolprop-sys
26//! ```
27//!
28//! 🎁 It comes with native `CoolProp` dynamic libraries for supported platforms.
29//! The library required for your platform will be automatically copied
30//! to the target directory during build.
31//!
32//! #### License
33//!
34//! <sup>
35//! This project is licensed under
36//! <a href="https://github.com/portyanikhin/rfluids/blob/main/LICENSE">MIT License</a>.
37//! </sup>
38
39pub mod bindings;
40
41/// `CoolProp` dynamic library absolute path.
42#[cfg(all(target_os = "windows", target_arch = "x86_64"))]
43pub const COOLPROP_PATH: &str = coolprop_sys_windows_x86_64::COOLPROP_PATH;
44#[cfg(all(target_os = "windows", target_arch = "aarch64"))]
45pub const COOLPROP_PATH: &str = coolprop_sys_windows_aarch64::COOLPROP_PATH;
46#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
47pub const COOLPROP_PATH: &str = coolprop_sys_linux_x86_64::COOLPROP_PATH;
48#[cfg(all(target_os = "macos", target_arch = "x86_64"))]
49pub const COOLPROP_PATH: &str = coolprop_sys_macos_x86_64::COOLPROP_PATH;
50#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
51pub const COOLPROP_PATH: &str = coolprop_sys_macos_aarch64::COOLPROP_PATH;