Vendor the application-services suggest Rust component into mozilla-central
Categories
(Firefox :: Sync, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox119 | --- | fixed |
People
(Reporter: adw, Assigned: adw)
References
Details
Attachments
(3 files)
We'd like to use the new Suggest component from application-services in desktop. This will allow us to use the same implementation across mobile and desktop to power the Firefox Suggest feature in the urlbar.
I'm filing this in Firefox::Sync since that seems to be the best place for application-services bugs. Please let me know or feel free to move this to a better component if there is one. The consumer of the Rust component will be desktop's urlbar.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
This is part 1 of 2 and vendors the suggest component from
application-services into m-c. suggest
depends on remote_settings
, so it was
also vendored. Part 2 will generate JS bindings with uniffi.
This is my first time doing this so I'll explain how I generated this patch in
case I did something wrong:
- I manually added
suggest
to the following files:- Top-level Cargo.toml
- toolkit/library/rust/shared/Cargo.toml
- toolkit/library/rust/shared/lib.rs -- I followed the example of
tabs
,
not sure ifsuggest::uniffi_reexport_scaffolding!()
is necessary
- I ran
./mach vendor rust
That's it, there were no errors or problems.
Assignee | ||
Comment 2•2 years ago
|
||
This is part 2 of 2 and generates JS bindings for the suggest component. Part 1
is D187323.
This is my first time doing this so I'll explain how I generated this patch in
case I did something wrong:
- Added suggest to toolkit/components/uniffi-bindgen-gecko-js/mach_commands.py
- Ran
./mach uniffi generate
- Added the generated RustSuggest.sys.mjs to mc/toolkit/components/uniffi-bindgen-gecko-js/components/moz.build
Depends on D187323
Assignee | ||
Comment 3•2 years ago
|
||
Depends on D187324
Assignee | ||
Comment 4•2 years ago
|
||
Comment 6•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ce79a3892b2d
https://hg.mozilla.org/mozilla-central/rev/458969404775
https://hg.mozilla.org/mozilla-central/rev/97d2090c8118
Description
•