Rust Interface ============== `See the BridgeStan Crate documentation on docs.rs `__ ---- Installation ------------ The BridgeStan Rust client is available on `crates.io `__ and via :command:`cargo`: .. code-block:: shell cargo add bridgestan To build and use BridgeStan models, a copy of the BridgeStan C++ source code is required. Please follow the :doc:`Getting Started guide <../getting-started>` or use the Rust client in tandem with an interface such as :doc:`Python <./python>` which automates this process. ``STAN_THREADS=true`` needs to be specified when compiling a model, for more details see the `API reference `__. Example Program --------------- An example program is provided alongside the Rust crate in :file:`examples/example.rs`: .. raw:: html
Show example.rs .. literalinclude:: ../../rust/examples/example.rs :language: Rust .. raw:: html
API Reference ------------- See docs.rs for the full API reference: ``__