Skip to content
Snippets Groups Projects
Commit 8a536872 authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1751331 - Use the mozbuild crate in glean. r=chutten

parent 0786e9da
No related branches found
No related tags found
No related merge requests found
......@@ -1666,6 +1666,7 @@ dependencies = [
"glean",
"inherent",
"log",
"mozbuild",
"nsstring",
"once_cell",
"serde",
......
......@@ -17,9 +17,10 @@ serde = { version = "1.0", features = ["derive"] }
uuid = { version = "0.8.1", features = ["v4"] }
xpcom = { path = "../../../../xpcom/rust/xpcom", optional = true }
thin-vec = { version = "0.2.1", features = ["gecko-ffi"] }
mozbuild = { version = "0.1", optional = true }
[dev-dependencies]
tempfile = "3.1.0"
[features]
with_gecko = ["xpcom", "nsstring"]
with_gecko = ["xpcom", "nsstring", "mozbuild"]
......@@ -9,10 +9,7 @@
//! 'toolkit/components/glean/metrics.yaml`.
#[cfg(not(feature = "cargo-clippy"))]
include!(concat!(
env!("MOZ_TOPOBJDIR"),
"/toolkit/components/glean/api/src/metrics.rs"
));
include!(mozbuild::objdir_path!("toolkit/components/glean/api/src/metrics.rs"));
#[cfg(not(feature = "cargo-clippy"))]
use crate::private::{EventMetric, EventRecordingError, ExtraKeys};
......
......@@ -9,7 +9,4 @@
//! 'toolkit/components/glean/pings.yaml`.
#[cfg(not(feature = "cargo-clippy"))]
include!(concat!(
env!("MOZ_TOPOBJDIR"),
"/toolkit/components/glean/api/src/pings.rs"
));
include!(mozbuild::objdir_path!("toolkit/components/glean/api/src/pings.rs"));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment