diff --git a/lang/rust/files/patch-vendor_openssl-sys_build_main.rs b/lang/rust/files/patch-vendor_openssl-sys_build_main.rs new file mode 100644 index 000000000000..9ad7c483db6a --- /dev/null +++ b/lang/rust/files/patch-vendor_openssl-sys_build_main.rs @@ -0,0 +1,20 @@ +--- vendor/openssl-sys/build/main.rs.orig 2020-05-09 12:59:59 UTC ++++ vendor/openssl-sys/build/main.rs +@@ -204,6 +204,8 @@ See rust-openssl README for more information: + (3, 0, 0) => ('3', '0', '0'), + (3, 0, 1) => ('3', '0', '1'), + (3, 0, _) => ('3', '0', 'x'), ++ (3, 1, 0) => ('3', '1', '0'), ++ (3, 1, _) => ('3', '1', 'x'), + _ => version_error(), + }; + +@@ -244,7 +246,7 @@ fn version_error() -> ! { + " + + This crate is only compatible with OpenSSL 1.0.1 through 1.1.1, or LibreSSL 2.5 +-through 3.0.x, but a different version of OpenSSL was found. The build is now aborting ++through 3.1.x, but a different version of OpenSSL was found. The build is now aborting + due to this version mismatch. + + "