RustInitRustComponents.sys.mjs

RustInitRustComponents.sys.initialize(profilePath)

Global initialization routines for Rust components, when logins/keydb feature is activated. Must be called before any other calls to Rust components.

Receives the path to the profile directory.

For adding additional initialization code: Note that this function is called very early in the app lifetime and therefore affects the startup time. Only the most necessary things should be done here.

Arguments:
  • profilePath (string)

RustInitRustComponents.sys.initializeGlean()

Initialize Glean telemetry

This is called in [initialize], but it’s also split out so that you can call it separately if you want. It’s safe to call both initialize_glean() and initialize() during startup.