Firefox Application Services
Перейти к файлу
Ben Dean-Kawamura eac793d16a Updating Android NDK to 25c 2023-03-30 09:55:52 -04:00
.cargo Make `cargo uniffi-bindgen` alias work when executed from a crate. 2021-06-18 05:09:51 +00:00
.circleci Updating Rust versions to match Firefox 110 2023-01-27 12:52:38 -05:00
.github Update chrono to avoid RUSTSEC-2020-0159. Fixes #4590 (#5451) 2023-03-29 14:48:38 +11:00
.vscode Update vscode recommended extensions 2020-04-20 19:19:23 -04:00
automation Add emoji to What's New and What's Changed (#5309) 2023-01-04 20:32:39 +00:00
build-scripts Remove unsupported kotlin-android-extensions plugin usage 2023-03-07 08:18:32 -05:00
components Allow tests to specify the chunking size when inserting folders into places. (#5450) 2023-03-30 10:31:37 +11:00
docs Updating Android NDK to 25c 2023-03-30 09:55:52 -04:00
examples Remove dependency on the clipboard crate for the tabs example (#5443) 2023-03-29 11:46:40 +11:00
gradle/wrapper Update Gradle to version 7.6.1 and Android Gradle Plugin to 7.4.1 2023-03-02 12:13:50 -05:00
libs Upgrade NDK to r25b. 2023-03-30 09:55:52 -04:00
megazords Update chrono to avoid RUSTSEC-2020-0159. Fixes #4590 (#5451) 2023-03-29 14:48:38 +11:00
taskcluster Updating Android NDK to 25c 2023-03-30 09:55:52 -04:00
testing Minor cleanups of sync engine code: (#5365) 2023-02-08 13:50:38 +11:00
tools Adding the clean-gradle-autopublish.py script 2023-03-21 14:02:12 -04:00
xcconfig Remove all Carthage and switch to xcframeworks (#4619) 2022-02-03 15:05:05 -10:00
.buildconfig-android.yml Cut release v97.3.0 (#5453) 2023-03-29 22:00:36 +01:00
.cron.yml Updating our cron file 2022-04-27 10:37:33 -04:00
.detekt.yml Update android dependencies [ci full] (#4345) 2021-07-26 11:09:11 +10:00
.gitignore Removes db files added by accident (#5211) 2022-11-02 14:33:13 -06:00
.gitmodules Remove submodule from .gitmodules 2021-03-22 18:14:41 -07:00
.mergify.yml Update mergify queue rules (#5379) 2023-02-13 15:01:01 +01:00
.swiftlint.yml Merge ios and ios-rust directories and clean up Xcode project (#4830) 2022-03-03 10:03:32 -10:00
.taskcluster.yml ci: bump taskgraph and its dependencies 2023-02-13 15:01:36 +01:00
CHANGELOG.md Cut release v97.3.0 (#5453) 2023-03-29 22:00:36 +01:00
CHANGES_UNRELEASED.md Updating Android NDK to 25c 2023-03-30 09:55:52 -04:00
CODE_OF_CONDUCT.md
COPYRIGHT Remove the `ffi-support` crate sources from this repo. 2021-06-01 15:56:49 +10:00
Cargo.lock Update chrono to avoid RUSTSEC-2020-0159. Fixes #4590 (#5451) 2023-03-29 14:48:38 +11:00
Cargo.toml Create shared remote settings client and port Nimbus to it. 2023-02-15 14:03:12 -08:00
DEPENDENCIES.md Update chrono to avoid RUSTSEC-2020-0159. Fixes #4590 (#5451) 2023-03-29 14:48:38 +11:00
LICENSE
README.md Misc updates now that we got rid of carthage [ci full] (#4827) 2022-02-07 16:23:55 -08:00
build.gradle Updating Android NDK to 25c 2023-03-30 09:55:52 -04:00
clippy.toml
codecov.yml Tell codecov our default branch is `main` 2020-07-24 09:39:45 -07:00
gradle.properties
gradlew Import nimbus-sdk as submodule, republish as part of the megazord. 2020-11-09 16:40:21 +11:00
gradlew.bat Import nimbus-sdk as submodule, republish as part of the megazord. 2020-11-09 16:40:21 +11:00
proguard-rules-consumer-jna.pro
publish.gradle FML: Generate Kotlin from FML intermediate representation (#4607) r=tarik 2021-11-06 14:27:37 +00:00
rust-toolchain.toml Updating Rust versions to match Firefox 110 2023-01-27 12:52:38 -05:00
settings.gradle Add the nimbus-gradle-plugin to application services (#5173) 2023-01-12 15:45:35 -05:00

README.md

Firefox Application Services

Application Services (a-s) is a collection of Rust Components that are used to enable Firefox applications to integrate with Firefox accounts, sync, experimentation, etc. Each component is built using a core of shared code written in Rust, wrapped with native language bindings for different platforms.

Contributing

To contribute, please review the Mozilla Community Participation Guidelines and then visit our how to contribute guide.

Contact

Get in touch with other community members on Matrix, or through issues here on GitHub.

Documentation

High-level docs

The Application Services Book contains high-level documentation about the code in this repository. It's built from the ./docs/ directory.

Package docs

We use rustdoc to document both the public API of the components and the various internal implementation details. View them on https://mozilla.github.io/application-services/book/rust-docs/fxa_client/index.html. Once you have completed the build steps, you can view the docs by running:

cargo doc --no-deps --document-private-items --open

Building

Building the Rust Components

  1. Clone or Download the repository:
  $ git clone https://github.com/mozilla/application-services # (or use the ssh link)
  $ cd application-services
  $ git submodule init
  $ git submodule update --recursive
  1. Follow these instructions to install your system-level dependencies
  2. Run the a-s Rust unit tests
cargo test

Consumer build, integration and testing

The application-services library primary consumers are Fenix (Firefox on Android) and Firefox iOS. Assure you are able to run integration tests (for Android and iOS if using MacOS) by following the instructions to build for Android and iOS integrations.

Android integration builds and helpful tools

Firefox for iOS integration

Firefox Desktop

Rust Components

./components/ contains the source for each component, and its FFI bindings.

Please note that we are in the process of moving away from hand-written ffi code and instead favouring the use of the uniffi library.

List of components

  • autofill - for storage and syncing of credit card and address information
  • crashtest - testing-purposes (crashing the Rust code)
  • fxa-client - for applications that need to sign in with FxA, access encryption keys for sync, and more.
  • logins - for storage and syncing of a user's saved login credentials
  • nimbus - for integrating with Mozilla's experimentation platform for Firefox
  • places - for storage and syncing of a user's saved browsing history
  • push - for applications to receive real-time updates via WebPush
  • rc_log - for connecting component log output to the application's log stream
  • support - low-level utility libraries
  • sync15 - shared library for accessing data in Firefox Sync
  • sync_manager - integrates multiple sync engines/ stores into a single framework
  • tabs - an in-memory syncing engine for remote browser tabs
  • viaduct - an HTTP request library
  • webext-storage - powers an implementation of the chrome.storage.sync WebExtension API