Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Main crate: darknet
darknet-sys: FFI bindings to AlexeyAB's Darknet
Version 0.2.0 changes:
- Replace the unmaintained pjreddie's darknet to AlexeyAB's darknet fork.
- Users can optionally link at runtime without compiling the source code.
- Configurable source code path and include path.
Usage
To ensure the git submodules are tracked, please run git submodule init && git submodule update --recursive after you clone this repository.
There are two ways to generate the bindings:
- Building from source (default)
- Runtime linking
By default, it builds the darknet as a static library from submodule if there is no additional environment variables and features. If you want to use dynamic linking, enable 'link-dynamic' feature.
Method 1: Build from source
It is the default behavior. If you would like to build your own source, you can set the DARKNET_SRC environment variables to the path of your repository. Note that it expects a CMakeLists.txt in your repository.
# if you would like to build your own source
Method 2: Runtime linking
If you prefer not to build the source code and use the generated bindings already built in our repository, add the runtime feature to take effect.
The buildtime-bindgen allows you to re-generate bindings from headers without compiling the source code. By default, it finds the header files from the shipped darknet submodule. If you would like to provide your own header files, please set DARKNET_INCLUDE_PATH the environment variable.
Huge thanks to jerry73204