# Configure UniFFI sources # # Each key is the UDL namespace of the component. # # # IMPORTANT: Please Request review from a DOM peer before # committing to using UniFFI. There are other ways to consume Rust from # JavaScript that might fit your use case better. # TODO: Upgrade the TOML crate and switch to array of tables syntax. [context_id.async_wrappers] enable = true main_thread = [ "ContextIDComponent.new", ] [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", "SearchEngineSelector.set_config_overrides", ] [suggest.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 = [ "raw_suggestion_url_matches", "SuggestStore.new", "SuggestStore.interrupt", "SuggestStoreBuilder.new", "SuggestStoreBuilder.data_path", "SuggestStoreBuilder.load_extension", "SuggestStoreBuilder.remote_settings_bucket_name", "SuggestStoreBuilder.remote_settings_server", "SuggestStoreBuilder.remote_settings_service", "SuggestStoreBuilder.build", ] [relevancy.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 = [ "RelevancyStore.new", "RelevancyStore.close", "RelevancyStore.interrupt", "score", ] [remote_settings.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 = [ "RemoteSettings.new", "RemoteSettingsService.new", ] [error_support.async_wrappers] # All functions/methods are wrapped to be async by default and must be `await`ed. enable = true [tabs.async_wrappers] # All functions/methods are wrapped to be async by default and must be `await`ed. enable = true [webext_storage.async_wrappers] enable = true [arithmetical.async_wrappers] enable = true [uniffi_custom_types.async_wrappers] enable = true [uniffi_fixture_callbacks.async_wrappers] enable = true main_thread = [ "log_even_numbers_main_thread", ] [uniffi_fixture_external_types.async_wrappers] enable = true [uniffi_geometry.async_wrappers] enable = true [uniffi_rondpoint.async_wrappers] enable = true [uniffi_sprites.async_wrappers] enable = true [uniffi_todolist.async_wrappers] enable = true