#ffi #bindings #cool-prop

sys coolprop-sys

Raw FFI bindings to CoolProp

1 stable release

Uses new Rust 2024

new 6.7.0 May 4, 2025

#242 in Science

Download history 89/week @ 2025-04-29

89 downloads per month
Used in rfluids

MIT license

26MB
119 lines

Contains (ELF lib, 7MB) native/lib/lin-x86-64/libCoolProp.so, (Mach-o library, 5MB) native/lib/mac-aarch64/libCoolProp.dylib, (Mach-o library, 5.5MB) native/lib/mac-x86-64/libCoolProp.dylib, (Windows DLL, 4.5MB) native/lib/win-aarch64/CoolProp.dll, (Windows DLL, 4.5MB) native/lib/win-x86-64/CoolProp.dll, (static library, 19KB) native/lib/win-aarch64/CoolProp.lib and 1 more.

coolprop-sys

GitHub docs.rs crates.io CI

Raw FFI bindings to CoolProp.

Supported platforms

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

MSRV

coolprop-sys requires rustc 1.85.0 or later.

How to install

Run the following command in your project directory:

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.

License

This project is licensed under MIT License.

Dependencies

~0–6.5MB
~39K SLoC