aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/build_common.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-executor/build_common.rs')
-rw-r--r--embassy-executor/build_common.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/embassy-executor/build_common.rs b/embassy-executor/build_common.rs
index af6bb0618..b15a8369f 100644
--- a/embassy-executor/build_common.rs
+++ b/embassy-executor/build_common.rs
@@ -124,22 +124,3 @@ impl PartialOrd<&str> for CompilerDate {
124 Self::parse(other).map(|other| self.cmp(&other)) 124 Self::parse(other).map(|other| self.cmp(&other))
125 } 125 }
126} 126}
127
128pub struct CompilerInfo {
129 #[allow(unused)]
130 pub version: rustc_version::Version,
131 pub channel: rustc_version::Channel,
132 pub commit_date: Option<CompilerDate>,
133}
134
135pub fn compiler_info() -> Option<CompilerInfo> {
136 let Ok(meta) = rustc_version::version_meta() else {
137 return None;
138 };
139
140 Some(CompilerInfo {
141 version: meta.semver,
142 channel: meta.channel,
143 commit_date: meta.commit_date.as_deref().and_then(CompilerDate::parse),
144 })
145}