.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.3. .TH CBINDGEN "1" "May 2021" "cbindgen 0.19.0" "User Commands" .SH NAME cbindgen \- manual page for cbindgen 0.19.0 .SH DESCRIPTION cbindgen 0.19.0 Generate C bindings for a Rust library .SS "USAGE:" .IP cbindgen [FLAGS] [OPTIONS] [INPUT] .SS "FLAGS:" .TP \fB\-\-clean\fR Whether to use a new temporary directory for expanding macros. Affects performance, but might be required in certain build processes. .TP \fB\-\-cpp\-compat\fR Whether to add C++ compatibility to generated C bindings .TP \fB\-d\fR, \fB\-\-parse\-dependencies\fR Whether to parse dependencies when generating bindings .TP \fB\-h\fR, \fB\-\-help\fR Prints help information .TP \fB\-q\fR, \fB\-\-quiet\fR Report errors only (overrides verbosity options). .TP \fB\-v\fR Enable verbose logging .TP \fB\-V\fR, \fB\-\-version\fR Prints version information .TP \fB\-\-verify\fR Generate bindings and compare it to the existing bindings file and error if they are different .SS "OPTIONS:" .TP \fB\-c\fR, \fB\-\-config\fR Specify path to a `cbindgen.toml` config to use .TP \fB\-\-crate\fR If generating bindings for a crate, the specific crate to generate bindings for .TP \fB\-l\fR, \fB\-\-lang\fR Specify the language to output bindings in [possible values: c++, C++, c, C, cython, Cython] .TP \fB\-\-lockfile\fR Specify the path to the Cargo.lock file explicitly. If this is not specified, the Cargo.lock file is searched for in the same folder as the Cargo.toml file. This option is useful for projects that use workspaces. .TP \fB\-\-metadata\fR Specify the path to the output of a `cargo metadata` command that allows to get dependency information. This is useful because cargo metadata may be the longest part of cbindgen runtime, and you may want to share it across cbindgen invocations. By default cbindgen will run `cargo metadata \fB\-\-all\-features\fR \fB\-\-format\-version\fR 1 \fB\-\-manifest\-path\fR .TP \fB\-o\fR, \fB\-\-output\fR The file to output the bindings to .TP \fB\-\-profile\fR Specify the profile to use when expanding macros. Has no effect otherwise. [possible values: Debug, debug, Release, release] .TP \fB\-s\fR, \fB\-\-style\fR