MCPcopy Create free account
hub / github.com/davidblewett/rure-python / read

Method read

regex/build.rs:39–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38impl Version {
39 fn read() -> Result<Version, String> {
40 let rustc = env::var_os("RUSTC").unwrap_or(OsString::from("rustc"));
41 let output = Command::new(&rustc)
42 .arg("--version")
43 .output()
44 .unwrap()
45 .stdout;
46 Version::parse(&String::from_utf8(output).unwrap())
47 }
48
49 fn parse(mut s: &str) -> Result<Version, String> {
50 if !s.starts_with("rustc ") {

Callers 3

setup.pyFile · 0.80
__enter__Method · 0.80
mainFunction · 0.80

Calls 2

unwrapMethod · 0.80
parseFunction · 0.50

Tested by

no test coverage detected