Bug 1946118 - Vendor new application-services search component into mozilla-central. r=bdk

Differential Revision: https://phabricator.services.mozilla.com/D236887
This commit is contained in:
Mark Banner
2025-02-06 07:42:20 +00:00
parent bf15b306dd
commit e89a00ba39
6 changed files with 18 additions and 0 deletions

View File

@@ -227,6 +227,7 @@ objc = { git = "https://github.com/glandium/rust-objc", rev = "4de89f5aa9851ceca
# application-services overrides to make updating them all simpler.
interrupt-support = { git = "https://github.com/mozilla/application-services", rev = "25934715ecc08fc922c80797c637dea64ee742d1" }
relevancy = { git = "https://github.com/mozilla/application-services", rev = "25934715ecc08fc922c80797c637dea64ee742d1" }
search = { git = "https://github.com/mozilla/application-services", rev = "25934715ecc08fc922c80797c637dea64ee742d1" }
sql-support = { git = "https://github.com/mozilla/application-services", rev = "25934715ecc08fc922c80797c637dea64ee742d1" }
suggest = { git = "https://github.com/mozilla/application-services", rev = "25934715ecc08fc922c80797c637dea64ee742d1" }
sync15 = { git = "https://github.com/mozilla/application-services", rev = "25934715ecc08fc922c80797c637dea64ee742d1" }

View File

@@ -318,6 +318,10 @@ var allowlist = [
{
file: "resource://gre/localization/en-US/netwerk/necko.ftl",
},
// To be used in Bug 1945210 - Integrate the Rust based search engine selector
// with desktop code.
{ file: "resource://gre/modules/RustSearch.sys.mjs" },
];
if (AppConstants.NIGHTLY_BUILD) {

View File

@@ -18,6 +18,7 @@ harness = false
[dependencies]
uniffi = { workspace = true }
tabs = "0.1"
search = "0.1"
suggest = "0.1"
relevancy = "0.1"
webext-storage = "0.1"

View File

@@ -7,6 +7,7 @@ mod reexport_appservices_uniffi_scaffolding {
relevancy::uniffi_reexport_scaffolding!();
suggest::uniffi_reexport_scaffolding!();
webext_storage::uniffi_reexport_scaffolding!();
search::uniffi_reexport_scaffolding!();
}
// Define extern "C" versions of these UniFFI functions, so that they can be called from C++

View File

@@ -7,6 +7,7 @@
EXTRA_JS_MODULES += [
"generated/RustRelevancy.sys.mjs",
"generated/RustRemoteSettings.sys.mjs",
"generated/RustSearch.sys.mjs",
"generated/RustSuggest.sys.mjs",
"generated/RustSync15.sys.mjs",
"generated/RustTabs.sys.mjs",

View File

@@ -9,6 +9,16 @@
# TODO: Upgrade the TOML crate and switch to array of tables syntax.
[search.async_wrappers]
# All functions/methods are wrapped to be async by default and must be `await`ed.
enable = true
# These are exceptions to the async wrapping. These functions must not be `await`ed.
main_thread = [
"SearchEngineSelector.new",
"SearchEngineSelector.clear_search_config",
"SearchEngineSelector.filter_engine_configuration",
"SearchEngineSelector.set_search_config",
]
[suggest.async_wrappers]
# All functions/methods are wrapped to be async by default and must be `await`ed.