mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-07 19:59:18 +02:00
When running clippy, the linter, `MOZ_TOPOBJDIR` is not set (and the `metrics.rs` file might not even be generated yet), so we need to manually define some things we expect from it so the rest of the build can assume it's there. See https://bugzilla.mozilla.org/show_bug.cgi?id=1674726. Differential Revision: https://phabricator.services.mozilla.com/D95509
15 lines
595 B
Rust
15 lines
595 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 https://mozilla.org/MPL/2.0/.
|
|
|
|
//! This file contains the Generated Glean Metrics API (Ping portion)
|
|
//!
|
|
//! The contents of this module are generated by
|
|
//! `toolkit/components/glean/build_scripts/glean_parser_ext/run_glean_parser.py`, from
|
|
//! 'toolkit/components/glean/pings.yaml`.
|
|
|
|
#[cfg(not(feature = "cargo-clippy"))]
|
|
include!(concat!(
|
|
env!("MOZ_TOPOBJDIR"),
|
|
"/toolkit/components/glean/api/src/pings.rs"
|
|
));
|