wgpu/wgpu-native/cbindgen.toml
2019-05-10 21:55:09 -04:00

36 lines
591 B
TOML

header = "#define WGPU_LOCAL"
include_version = true
braces = "SameLine"
line_length = 100
tab_width = 2
language = "C"
[export]
prefix = "WGPU"
#TODO: figure out why cbindgen even tries to export a private type...
exclude = ["BufferMapResult"]
[parse]
parse_deps = false
[parse.expand]
crates = ["wgpu-native"]
features = ["local"]
[fn]
[struct]
derive_eq = true
[enum]
prefix_with_name = true
derive_helper_methods = true
[macro_expansion]
bitflags = true
[defines]
"feature = window-winit" = "WGPU_WINDOW_WINIT"
"feature = local" = "WGPU_LOCAL"
"feature = remote" = "WGPU_REMOTE"