1header = """/* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */""" 4autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen. 5 * To generate this file: 6 * 1. Get the latest cbindgen using `cargo +nightly install --force cbindgen` 7 * a. Alternatively, you can clone `https://github.com/eqrion/cbindgen` and use a tagged release 8 * 2. Run `rustup run nightly cbindgen toolkit/library/rust/ --crate webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h` 9 */""" 10include_version = true 11braces = "SameLine" 12line_length = 100 13tab_width = 2 14language = "C++" 15namespaces = ["mozilla", "wr"] 16 17[parse] 18parse_deps = true 19include = ["log", "webrender", "webrender_api"] 20expand = ["euclid"] 21 22[fn] 23prefix = "WR_INLINE" 24postfix = "WR_FUNC" 25args = "Vertical" 26rename_args = "GeckoCase" 27 28[struct] 29derive_eq = true 30 31[enum] 32add_sentinel = true 33 34[defines] 35"target_os = windows" = "XP_WIN" 36"target_os = macos" = "XP_MACOSX" 37 38