Firefox Application Services
Перейти к файлу
Bastian Gruber 48a71c2ebe feat: remove codecov 2024-11-07 01:31:19 +00:00
.cargo Starting new Remote Settings API 2024-10-24 13:47:32 +00:00
.circleci feat: remove codecov 2024-11-07 01:31:19 +00:00
.github
.vscode
automation feat: remove codecov 2024-11-07 01:31:19 +00:00
build-scripts
components feat: move versioning into its own support crate 2024-11-06 11:21:12 +00:00
docs feat: remove codecov 2024-11-07 01:31:19 +00:00
examples Starting new Remote Settings API 2024-10-24 13:47:32 +00:00
gradle Update Protobuf to version 4.28.2 2024-10-22 23:05:27 +00:00
libs Update NSS to version 3.106 2024-10-24 18:44:50 +00:00
megazords update Rust for recorded context to handle event store queries 2024-10-29 15:33:06 +00:00
taskcluster build(deps): bump mozilla-taskgraph from 3.0.0 to 3.0.1 in /taskcluster 2024-11-07 01:16:21 +00:00
testing
tools Build improvements with UniFFI library mode 2024-10-17 17:59:42 +00:00
xcconfig
.buildconfig-android.yml
.cron.yml
.detekt.yml
.gitignore ios-rust: Ignore generated UniFFI sources. 2024-10-28 19:59:16 +00:00
.gitmodules
.mailmap
.mergify.yml
.swiftlint.yml
.taskcluster.yml Bug 1927210 - Enable git-issue-comment actions 2024-11-06 20:25:06 +00:00
CHANGELOG.md Refactored sendEventToDevice to return closeTabs result 2024-10-30 23:28:50 +00:00
CODE_OF_CONDUCT.md
COPYRIGHT
Cargo.lock feat: move versioning into its own support crate 2024-11-06 11:21:12 +00:00
Cargo.toml feat: move versioning into its own support crate 2024-11-06 11:21:12 +00:00
DEPENDENCIES.md
LICENSE
README.md feat: remove codecov 2024-11-07 01:31:19 +00:00
build.gradle Update NDK to r27c 2024-10-24 21:09:21 +00:00
clippy.toml
gradle.properties
gradlew
gradlew.bat
install-nimbus-cli.sh
proguard-rules-consumer-jna.pro
publish.gradle
rust-toolchain.toml
settings.gradle
version.txt Start release v134.0 2024-10-28 13:20:08 +00: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. Note that most components have their FFI generated by 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
  • 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

Note the above list is partial; see the actual list under the components directory.