Crates.io | rdkit-sys |
lib.rs | rdkit-sys |
version | 0.4.12 |
source | src |
created_at | 2022-04-04 21:07:05.058798 |
updated_at | 2024-10-14 15:56:35.797863 |
description | RDKit CFFI library builder and bindings |
homepage | |
repository | https://github.com/rdkit-rs/rdkit/tree/main/rdkit-sys |
max_upload_size | |
id | 562306 |
size | 100,145 |
Rust code that binds to the C++ rdkit library!
RDKit is a C++ mega-library, full of cheminformatics wisdom. We don't want to rewrite RDKit in Rust, we should instead meet somewhere in the middle and "bridge" Rust to C++ through some wrappers.
The goal is to do 1-1 bindings with the C++ library, exposing all the classes as we need them. The goal is not to create a high-level functionality like the MinimalLib (cffiwrapper). Our goal is to expose the building blocks. If you're looking for idiomatic Rust, check out the rdkit crate.
On Mac:
brew install rdkit
Also known to work with conda-managed RDKit, be sure to set the dynamic-linking-from-conda
feature. Not as tested, please open an issue if you have a hard time.
Or just run the test suite:
cargo test
cargo publish
without --no-verify
(otherwise it detects changes outside of OUTDIR)cargo clean
and retry with cargo build -vv
)