gecko-dev/toolkit/components/glean/api/src/pings.rs
Jan-Erik Rediger b171782687 Bug 1674728 - Allow clippy to run correctly on FOG code. r=chutten
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
2020-11-03 14:01:14 +00:00

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"
));