bindbc-onnxruntime 1.2.0

Dynamic bindings to ONNX Runtime, compatible with -betterC, @nogc, and nothrow.

To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:


This project provides dynamic bindings to the C API of ONNX Runtime. The bindings are @nogc and nothrow compatible and can be compiled for compatibility with -betterC.


By default, bindbc-onnxruntime is configured to compile as a dynamic binding that is not -betterC compatible. The dynamic binding has no link-time dependency on the library, so the shared library must be manually loaded at runtime.

To use ONNX Runtime, add bindbc-onnxruntime as a dependency to your project's package config file. For example, the following is configured to use ONNX Runtime as a dynamic binding that is not -betterC compatible:


dependencies {
    "bindbc-onnxruntime": "~>1.2.0",


dependency "bindbc-onnxruntime" version="~>1.2.0"

Enable support versions

Support for ONNX Runtime versions can be configured at compile time by adding the appropriate version to a versions directive in your package configuration file (or on the command line if you are building with a tool other than dub).

bindbc-onnxruntime defines a D version identifier for each ONNX Runtime version. The following table lists each identifier and the ONNX Runtime versions they enable.

VersionVersion IDONNXRuntimeSupport Member


  • Support GPU binding
  • more test
  • lempiji
1.2.0 2020-May-30
1.2.0-gpu 2023-Mar-05
1.2.0-beta 2020-Mar-14
~master 2023-Mar-05
Show all 4 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 32 downloads total

Short URL: