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.
LLVM C FFI library
The project attempts to closely follow the LLVM C++ header structure.
If there is an upstream
llvm/IR/Value.h header, we will define the following files here:
ir/value.cpp- The actual FFI function definitions.
ir/value.rs- FFI declarations for that file.
.cpp file should have an associated
All FFI functions declared in Rust should be glob imported into the crate root.
All functions will be prefixed with
LLVMRust and will be exported as
functions with the C ABI and no name mangling.
These should be named like
Methods and static functions
If we have a
get function on
Value, the FFI function should look like
Static functions are not capitalized differently than standard methods.
When there is an overloaded method, and the additional overloads are solely for convienence, only implement the most general method.