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:
@@ -227,6 +227,7 @@ objc = { git = "https://github.com/glandium/rust-objc", rev = "4de89f5aa9851ceca
|
|||||||
# application-services overrides to make updating them all simpler.
|
# application-services overrides to make updating them all simpler.
|
||||||
interrupt-support = { git = "https://github.com/mozilla/application-services", rev = "25934715ecc08fc922c80797c637dea64ee742d1" }
|
interrupt-support = { git = "https://github.com/mozilla/application-services", rev = "25934715ecc08fc922c80797c637dea64ee742d1" }
|
||||||
relevancy = { 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" }
|
sql-support = { git = "https://github.com/mozilla/application-services", rev = "25934715ecc08fc922c80797c637dea64ee742d1" }
|
||||||
suggest = { 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" }
|
sync15 = { git = "https://github.com/mozilla/application-services", rev = "25934715ecc08fc922c80797c637dea64ee742d1" }
|
||||||
|
|||||||
@@ -318,6 +318,10 @@ var allowlist = [
|
|||||||
{
|
{
|
||||||
file: "resource://gre/localization/en-US/netwerk/necko.ftl",
|
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) {
|
if (AppConstants.NIGHTLY_BUILD) {
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ harness = false
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
uniffi = { workspace = true }
|
uniffi = { workspace = true }
|
||||||
tabs = "0.1"
|
tabs = "0.1"
|
||||||
|
search = "0.1"
|
||||||
suggest = "0.1"
|
suggest = "0.1"
|
||||||
relevancy = "0.1"
|
relevancy = "0.1"
|
||||||
webext-storage = "0.1"
|
webext-storage = "0.1"
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ mod reexport_appservices_uniffi_scaffolding {
|
|||||||
relevancy::uniffi_reexport_scaffolding!();
|
relevancy::uniffi_reexport_scaffolding!();
|
||||||
suggest::uniffi_reexport_scaffolding!();
|
suggest::uniffi_reexport_scaffolding!();
|
||||||
webext_storage::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++
|
// Define extern "C" versions of these UniFFI functions, so that they can be called from C++
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
EXTRA_JS_MODULES += [
|
EXTRA_JS_MODULES += [
|
||||||
"generated/RustRelevancy.sys.mjs",
|
"generated/RustRelevancy.sys.mjs",
|
||||||
"generated/RustRemoteSettings.sys.mjs",
|
"generated/RustRemoteSettings.sys.mjs",
|
||||||
|
"generated/RustSearch.sys.mjs",
|
||||||
"generated/RustSuggest.sys.mjs",
|
"generated/RustSuggest.sys.mjs",
|
||||||
"generated/RustSync15.sys.mjs",
|
"generated/RustSync15.sys.mjs",
|
||||||
"generated/RustTabs.sys.mjs",
|
"generated/RustTabs.sys.mjs",
|
||||||
|
|||||||
@@ -9,6 +9,16 @@
|
|||||||
|
|
||||||
# TODO: Upgrade the TOML crate and switch to array of tables syntax.
|
# 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]
|
[suggest.async_wrappers]
|
||||||
# All functions/methods are wrapped to be async by default and must be `await`ed.
|
# All functions/methods are wrapped to be async by default and must be `await`ed.
|
||||||
|
|||||||
Reference in New Issue
Block a user