cbindgen.toml (925B)
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 https://mozilla.org/MPL/2.0/. */ 4 5 #ifndef mozilla_dom_RustTypes_h 6 #error "Don't include this file directly, include mozilla/dom/RustTypes.h instead" 7 #endif 8 """ 9 include_guard = "mozilla_dom_GeneratedElementDocumentState_h" 10 include_version = true 11 language = "C++" 12 namespaces = ["mozilla", "dom"] 13 includes = ["mozilla/Assertions.h"] 14 15 [enum] 16 derive_helper_methods = true 17 derive_const_casts = true 18 cast_assert_name = "MOZ_DIAGNOSTIC_ASSERT" 19 20 [struct] 21 associated_constants_in_body = true 22 derive_eq = true 23 derive_neq = true 24 25 [macro_expansion] 26 bitflags = true 27 28 [export] 29 include = [ 30 "ElementState", 31 "DocumentState", 32 ] 33 34 [export.body] 35 "ElementState" = """ 36 STATE_HELPERS(ElementState) 37 """ 38 "DocumentState" = """ 39 STATE_HELPERS(DocumentState) 40 """