Bug 1791851 - Add tabs as a uniffi component r=teshaq,LougeniaBailey,bdk

Differential Revision: https://phabricator.services.mozilla.com/D157979
This commit is contained in:
Sammy Khamis 2022-10-25 20:03:22 +00:00
parent 91b6f8fd65
commit 0d48542497
5 changed files with 29 additions and 1 deletions

View file

@ -79,6 +79,7 @@ DIRS += [
"tooltiptext",
"typeaheadfind",
"uniffi-js",
"uniffi-bindgen-gecko-js/components",
"utils",
"url-classifier",
"urlformatter",

View file

@ -0,0 +1,6 @@
This directory is where modules generated by UniFFI will be created.
All files in this directory, other than this one, are generated and should
not be hand-edited.
To update these files, execute `./mach uniffi generate`

View file

@ -0,0 +1,12 @@
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
EXTRA_JS_MODULES += [
"generated/RustTabs.jsm",
]
with Files("**"):
BUG_COMPONENT = ("Toolkit", "UniFFI Bindings")

View file

@ -13,8 +13,9 @@ from mach.decorators import (
# committing to using UniFFI. There are other ways to consume Rust from
# JavaScript that might fit your use case better.
UDL_FILES = [
# TODO: Use UniFFI
"third_party/rust/tabs/src/tabs.udl",
]
FIXTURE_UDL_FILES = [
"third_party/rust/uniffi-example-geometry/src/geometry.udl",
"third_party/rust/uniffi-example-arithmetic/src/arithmetic.udl",

View file

@ -57,6 +57,14 @@ extern crate audio_thread_priority;
#[cfg(not(target_os = "android"))]
extern crate webext_storage_bridge;
#[cfg(not(target_os = "android"))]
extern crate tabs;
#[cfg(not(target_os = "android"))]
mod reexport_tabs {
tabs::uniffi_reexport_scaffolding!();
}
#[cfg(feature = "webrtc")]
extern crate mdns_service;
extern crate neqo_glue;