gfx/webrender_bindings/cbindgen.toml
author Kershaw Chang <kershaw@mozilla.com>
Fri, 01 Feb 2019 22:16:17 +0000
changeset 456538 de93460e55c469f93834a87d5820d9d94c3d386e
parent 453672 d884f9b54dc622c7e499633aec2180c236ea5ed5
child 462772 a0d285d8abb3bf9afe9303eb6b0e5ed351611a62
permissions -rw-r--r--
Bug 1500710 - Add default MIME type definition for .wasm as 'application/wasm' r=bzbarsky Add {"application/wasm", "wasm"} mapping in extraMimeEntries Differential Revision: https://phabricator.services.mozilla.com/D18189

header = """/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */"""
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 webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h`
 */"""
include_version = true
braces = "SameLine"
line_length = 100
tab_width = 2
language = "C++"
namespaces = ["mozilla", "wr"]

[export]
# Skip constants because we don't have any
item_types = ["globals", "enums", "structs", "unions", "typedefs", "opaque", "functions"]

[parse]
parse_deps = true
include = ["log", "euclid", "webrender", "webrender_api"]

[fn]
prefix = "WR_INLINE"
postfix = "WR_FUNC"
args = "Vertical"
rename_args = "GeckoCase"

[struct]
derive_eq = true

[enum]
add_sentinel = true
derive_helper_methods = true

[defines]
"target_os = windows" = "XP_WIN"
"target_os = macos" = "XP_MACOSX"
"target_os = android" = "ANDROID"