-
Notifications
You must be signed in to change notification settings - Fork 50
/
cbindgen.toml
42 lines (34 loc) · 1.91 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
header = """/* This library (excluding the miniz C code used for tests) is licensed under the MIT license. The library is based on the miniz C library, of which the parts used are dual-licensed under the MIT license and also the unlicense. The parts of miniz that are not covered by the unlicense is some Zip64 code which is only MIT licensed. This and other Zip functionality in miniz is not part of the miniz_oxidde and miniz_oxide_c_api rust libraries.*/"""
autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen.
* To generate this file:
* 1. Get the latest cbindgen using `cargo install --force cbindgen`
* a. Alternatively, you can clone `https://github.com/eqrion/cbindgen` and use a tagged release
* 2. Run `rustup run nightly cbindgen toolkit/library/rust/ --lockfile Cargo.lock --crate miniz_oxide_c_api -o miniz_h/miniz.h`
*/"""
include_version = true
language = "C"
includes = ["miniz_extra_defs.h"]
# An optional name to use as an include guard
# default: doesn't emit an include guard
# include_guard = "MINIZ_OXIDE_INCLUDED"
# Whether to add a `#pragma once` guard
# default: doesn't emit a `#pragma once`
pragma_once = true
cpp_compat = true
[export]
include = ["CAPIReturnStatus", "CAPIFlush", "CAPICompressionStrategy", "CAPICompressionLevel", "mz_alloc_func", "mz_free_func", "mz_realloc_func", "tinfl_status", "tdefl_flush"]
[export.rename]
# "DecompressorOxide" = "tinfl_decompressor"
"Compressor" = "tdefl_compressor"
[parse]
# Whether to parse dependent crates and include their types in the output
# default: false
parse_deps = true
# 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.
include = ["miniz_oxide"]
# A black list of crate names that are not allowed to be parsed.
exclude = ["libc"]
extra_bindings = ["miniz_oxide"]
[parse.expand]
crates = ["miniz_oxide_c_api", "miniz_oxide"]