diff options
author | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
commit | a990de90fe41456a23e58bd087d2f107d321f3a1 (patch) | |
tree | 15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/crc32fast/build.rs | |
parent | 3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff) | |
download | fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip |
Deleted vendor folder
Diffstat (limited to 'vendor/crc32fast/build.rs')
-rw-r--r-- | vendor/crc32fast/build.rs | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/vendor/crc32fast/build.rs b/vendor/crc32fast/build.rs deleted file mode 100644 index 563cb21..0000000 --- a/vendor/crc32fast/build.rs +++ /dev/null @@ -1,35 +0,0 @@ -use std::env; -use std::process::Command; -use std::str; - -fn main() { - println!("cargo:rerun-if-changed=build.rs"); - - let minor = match rustc_minor_version() { - Some(n) => n, - None => return, - }; - - if minor >= 27 { - println!("cargo:rustc-cfg=crc32fast_stdarchx86"); - } -} - -fn rustc_minor_version() -> Option<u32> { - macro_rules! otry { - ($e:expr) => { - match $e { - Some(e) => e, - None => return None, - } - }; - } - let rustc = otry!(env::var_os("RUSTC")); - let output = otry!(Command::new(rustc).arg("--version").output().ok()); - let version = otry!(str::from_utf8(&output.stdout).ok()); - let mut pieces = version.split('.'); - if pieces.next() != Some("rustc 1") { - return None; - } - otry!(pieces.next()).parse().ok() -} |