Skip to content

Commit

Permalink
feat(capi): allow cbindgen to generate docs
Browse files Browse the repository at this point in the history
with `documentation=true` cbindgen now properly
generates/copies any rust documentation that
are on `#[no_mangle] pub extern "C" fn` into
their corresponding declaration in the header file.

This will allows to finally start adding some documentation
on the CAPI (tfhe.h)
  • Loading branch information
tmontaigu committed Feb 5, 2024
1 parent 5513d3a commit 6d40163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tfhe/cbindgen.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ after_includes = ""
braces = "SameLine"
line_length = 100
tab_width = 2
documentation = false
documentation = true
documentation_style = "auto"
line_endings = "LF" # also "CR", "CRLF", "Native"

Expand Down

0 comments on commit 6d40163

Please sign in to comment.