forked from PLSysSec/wave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cbindgen.toml
83 lines (67 loc) · 2.11 KB
/
cbindgen.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# The language to output bindings in
#
# possible values: "C", "C++", "Cython"
#
# default: "C++"
language = "C"
# An optional name to use as an include guard
# default: doesn't emit an include guard
include_guard = "wave_bindings_h"
# An optional string of text to output between major sections of the generated
# file as a warning against manual editing
#
# default: doesn't emit anything
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
# Whether to include a comment with the version of cbindgen used to generate the file
# default: false
include_version = true
# Whether to make a C header C++ compatible.
# These will wrap generated functions into a `extern "C"` block, e.g.
#
# #ifdef __cplusplus
# extern "C" {
# #endif // __cplusplus
#
# // Generated functions.
#
# #ifdef __cplusplus
# } // extern "C"
# #endif // __cplusplus
#
# If the language is not C this option won't have any effect.
#
# default: false
cpp_compat = true
# The desired length of a line to use when formatting lines
# default: 100
line_length = 80
# Include doc comments from Rust as documentation
documentation = true
# A list of substitutions for converting cfg's to ifdefs. cfgs which aren't
# defined here will just be discarded.
#
# e.g.
# `#[cfg(target = "freebsd")] ...`
# becomes
# `#if defined(DEFINE_FREEBSD) ... #endif`
[defines]
"target_os = linux" = "DEFINE_LINUX"
"target_os = windows" = "DEFINE_WINDOWS"
"target_os = macos" = "DEFINE_MACOS"
# [fn]
# # An optional prefix to put before every function declaration
# # default: no prefix added
# prefix = "Z_wasi_snapshot_preview1Z_"
# # An optional postfix to put after any function declaration
# # default: no postix added
# postfix = "_iiiiii"
# Options for how your Rust library should be parsed
[parse]
# Whether to parse dependent crates and include their types in the output
# default: false
parse_deps = false
# A white list of crate names that are allowed to be parsed. If this is defined,
# only crates found in this list will ever be parsed.
#
# default: there is no whitelist (NOTE: this is the opposite of [])
include = ["veriwasi"]