forked from mirrors/gecko-dev
This is part 1 of 3 and vendors the [suggest component](https://github.com/mozilla/application-services/tree/main/components/suggest) 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: 1. 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 if `suggest::uniffi_reexport_scaffolding!()` is necessary 2. I ran `./mach vendor rust` That's it, there were no errors or problems. Differential Revision: https://phabricator.services.mozilla.com/D187323
8 lines
293 B
Rust
8 lines
293 B
Rust
/* 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/.
|
|
*/
|
|
|
|
fn main() {
|
|
uniffi::generate_scaffolding("./src/remote_settings.udl").unwrap();
|
|
}
|