- To build: download
rust
and runcargo build
. This builds a dynamically linkable library intarget/debug
; to build a release build (much faster) runcargo build --release
- To test: run
cargo test
- Can be found inside of
src/bayesian_network.rs
- Includes interfaces for building Bayesian networks, compiling them, and querying them
- Can be found in
src/lib.rs
- An example of building is found in the
c/
subdirectory, which has a makefile for building and linking against anrsbn
build - See
c/rsbn.h
for the API. This is automatically generated based onsrc/lib.rs
usingcbindgen
; to regenerate it (if the rust API changes), callcbindgen --crate rsbn --output c/rsbn.h