#cheminformatics #rd-kit #ffi

sys rdk-sys

Low-level FFI Rust bindings for the RDKit C++ front-end

2 releases

0.1.1 Apr 12, 2023
0.1.0 Mar 2, 2023

#972 in Science

Download history 2/week @ 2024-02-16 31/week @ 2024-02-23 84/week @ 2024-03-01 4/week @ 2024-03-08 2/week @ 2024-03-15

93 downloads per month
Used in 2 crates

MIT/Apache

26KB
554 lines

rdk-rs

License Latest version Conda CI

Change Log

🚀 Getting started

rdk-rs looks for dynamically linked (.so) files in the $CONDA_PREFIX/lib/ directory within the conda installation of RDKit. To get up and running, simply run the following commands:

  1. 🐍 Install the latest conda distribution for your OS (we recommend mini/mambaforge)
  2. 📦 Create a conda environment that includes a stable version of RDKit by running the commands below and activate it. Feel free to change the environment name rdkit-env to whatever you want / use a different (supported) Python version.
mamba create -c conda-forge python=3.10 -n rdkit-env
conda activate rdkit-env
conda install -c conda-forge rdkit 
  1. 🔗 Dynamically link the RDKit binaries we just downloaded, for example on Linux you would run the following:
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib

and on macOS:

export DYLD_FALLBACK_LIBRARY_PATH=$CONDA_PREFIX/lib

NOTE: The conda environment containing the RDKit installation must be active for $CONDA_PREFIX to contain the right path.

Dependencies

~0.6–3MB
~46K SLoC