Crate coolprop_sys

Crate coolprop_sys 

Source
Expand description

GitHub docs.rs crates.io CI

Raw FFI bindings to CoolProp

§Supported platforms

  • Linux x86-64
  • macOS AArch64
  • macOS x86-64
  • Windows AArch64
  • Windows x86-64

§MSRV

coolprop-sys requires rustc 1.85.0 or later.

§How to install

Add this to your Cargo.toml:

[dependencies]
coolprop-sys = "7"

Or via command line:

cargo add coolprop-sys

🎁 It comes with native CoolProp dynamic libraries for supported platforms. The library required for your platform will be automatically copied to the target directory during build.

It also includes pre-generated FFI bindings, so libclang is not required for normal builds.

§Regenerating bindings

If you need to regenerate the FFI bindings (requires libclang), enable the regen-bindings feature.

Add this to your Cargo.toml:

[dependencies]
coolprop-sys = { version = "7", features = ["regen-bindings"] }

Or via command line:

cargo add coolprop-sys --features regen-bindings
§License
This project is licensed under MIT License.

Modules§

bindings
Raw FFI bindings to CoolProp.

Constants§

COOLPROP_PATH

Statics§

COOLPROP
Global instance of the CoolProp dynamic library.