dds-bridge-sys 2.0.0

Generated bindings to DDS, the double dummy solver for bridge
Documentation

dds-bridge-sys

Build Status Crates.io Docs.rs

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

Usage

Initialize the thread pool before calling other library functions:

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

Supported parallel backends

This crate supports the following parallel backends (in order of precedence by DDS):

  1. Windows API
  2. OpenMP
  3. Grand Central Dispatch (on macOS and iOS)
  4. C++ std::thread

Features

The default openmp feature automatically uses OpenMP if the C++ compiler supports it. If this causes issues, you can disable this feature with --no-default-features.