Backed out changeset ebc60855035e (bug 1829026) as requested for causing Bug 1869760...
[gecko.git] / xpcom / rust / gkrust_utils / cbindgen.toml
blob967fbefd4731e56646bab331a1468a76300dec31
1 header = """/* 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/. */"""
4 autogen_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 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 xpcom/rust/gkrust_utils --lockfile Cargo.lock --crate gkrust_utils -o xpcom/base/gk_rust_utils_ffi_generated.h`
9  */
10 #include "nsError.h"
11 #include "nsString.h"
12 """
13 include_version = true
14 braces = "SameLine"
15 line_length = 100
16 tab_width = 2
17 language = "C++"
18 namespaces = ["mozilla"]
20 [export]
21 # Skip constants because we don't have any
22 item_types = ["globals", "enums", "structs", "unions", "typedefs", "opaque", "functions"]
24 [enum]
25 add_sentinel = true
26 derive_helper_methods = true
28 [defines]
29 "target_os = windows" = "XP_WIN"
30 "target_os = macos" = "XP_MACOSX"
31 "target_os = android" = "ANDROID"