#dds #bridge #generated-bindings #dummy #thread-pool #solver #double-dummy

sys no-std dds-bridge-sys

Generated bindings to DDS, the double dummy solver for bridge

16 releases (stable)

2.0.2 Aug 9, 2024
2.0.1 Jun 10, 2024
1.2.0 Jun 2, 2024
1.1.5 May 31, 2024
0.1.3 May 26, 2024

#1328 in Game dev

29 downloads per month
Used in 2 crates (via dds-bridge)

Apache-2.0

490KB
16K SLoC

C++ 16K SLoC // 0.1% comments Rust 206 SLoC

dds-bridge-sys

Build Status Crates.io Docs.rs

Generated bindings to dds-bridge/dds, the C++ double dummy solver for contract bridge.

Usage

This library needs manual initialization! Initialize the thread pool with SetMaxThreads before calling other library functions:

use dds_bridge_sys as dds;
// 0 stands for automatic configuration
unsafe { dds::SetMaxThreads(0) };

Also note that functions using the thread pool are not reentrant. You may want to use a mutex to ensure that only one thread is using the thread pool.

No runtime deps

~0–2.2MB
~44K SLoC