cbindgen.toml (959B)
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. See RunCbindgen.py */ 5 #ifndef mozilla_intl_l10n_LocalizationBindings_h 6 #error "Don't include this file directly, instead include LocalizationBindings.h" 7 #endif 8 """ 9 include_version = true 10 braces = "SameLine" 11 line_length = 100 12 tab_width = 2 13 language = "C++" 14 namespaces = ["mozilla", "intl", "ffi"] 15 includes = ["mozilla/intl/RegistryBindings.h"] 16 17 [parse] 18 parse_deps = true 19 include = ["fluent-fallback", "l10nregistry-ffi"] 20 21 [enum] 22 derive_helper_methods = true 23 24 [export.rename] 25 "ThinVec" = "nsTArray" 26 "Promise" = "dom::Promise" 27 28 [export] 29 # These are already exported by l10nregistry-ffi. 30 exclude = [ 31 "GeckoResourceId", 32 "GeckoResourceType", 33 ]