tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

cbindgen.toml (1320B)


      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 
      5 /* urlpattern is implemented in third_party Rust code.
      6 * Since the library doesn't expose itself with extern "C" FFI calls,
      7 * we make our own wrapper to be able to call from C++. This file contains the
      8 * C declarations of these files.
      9 
     10 * WARNING: DO NOT CALL ANY OF THESE FUNCTIONS. USE |URLPatternGlue| INSTEAD! */
     11 """
     12 autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen. */
     13 
     14 #include "nsTArray.h"
     15 #include "nsString.h"
     16 
     17 // using MozURL = mozilla::net::MozURL;
     18 namespace mozilla {
     19 namespace net {
     20 class MozURL;
     21 }
     22 }
     23 
     24 typedef struct UrlPatternOptions UrlPatternOptions;
     25 
     26 """
     27 
     28 include_guard = "mozilla_net_urlpattern_glue_h"
     29 include_version = true
     30 braces = "SameLine"
     31 line_length = 100
     32 tab_width = 2
     33 language = "C++"
     34 namespaces = []
     35 includes = ["nsString.h", "atomic"]
     36 
     37 [export]
     38 exclude = ["Lazy"]
     39 item_types = ["globals", "enums", "structs", "unions", "typedefs", "opaque", "functions", "constants"]
     40 
     41 [parse]
     42 include = ["urlpattern"]
     43 parse_deps = true
     44 
     45 [export.rename]
     46 "SpecSlice" = "MozURLSpecSlice"
     47 "MozURL" = "mozilla::net::MozURL"
     48 "ThinVec" = "nsTArray"