coolprop-sys

Crates.iocoolprop-sys
lib.rscoolprop-sys
version7.2.0
created_at2025-05-04 17:22:50.928226+00
updated_at2025-12-24 21:29:45.316506+00
descriptionRaw FFI bindings to CoolProp
homepagehttps://github.com/portyanikhin/rfluids
repositoryhttps://github.com/portyanikhin/rfluids
max_upload_size
id1659817
size96,878
Vladimir Portyanikhin (portyanikhin)

documentation

README

coolprop-sys

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.
Commit count: 356

cargo fmt