You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
when I add openssl as a dependent crate to my crate, I get a lot of compilations errors within openssl like:
error[E0412]: cannot find type `Pkcs7Flags` in this scope
--> /home/jolivier/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-0.10.50/src/pkcs7.rs:262:16
|
262 | flags: Pkcs7Flags,
| ^^^^^^^^^^ not found in this scope
error[E0422]: cannot find struct, variant or union type `X509VerifyFlags` in this scope
--> /home/jolivier/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-0.10.50/src/x509/verify.rs:116:9
|
64 | / foreign_type_and_impl_send_sync! {
65 | | type CType = ffi::X509_VERIFY_PARAM;
66 | | fn drop = ffi::X509_VERIFY_PARAM_free;
67 | |
... |
71 | | pub struct X509VerifyParamRef;
72 | | }
| |_- similarly named struct `X509VerifyParam` defined here
...
116 | X509VerifyFlags { bits }
| ^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `X509VerifyParam`
Or
error[E0412]: cannot find type `SslVerifyMode` in this scope
--> /home/jolivier/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-0.10.50/src/ssl/mod.rs:2339:52
|
2339 | pub fn set_verify_callback<F>(&mut self, mode: SslVerifyMode, verify: F)
| ^^^^^^^^^^^^^ not found in this scope
I have 60 errors in total so not reproducing all of them here. They seem to be all related to the use of the bitflags! macro. All of the errors I checked were related to a struct declared via this macro.
I tried in stable and nightly versions:
Ok, I dig deeper and found the issue:
bitflags 1.0.3 does not support Edition 2018 and this is fixed via bitflags/bitflags#165
I don't understand why version 1.0.3 was chosen but after deleting my local cargo cache it uses version 1.3.2 that doesn't have this issue anymore.
Thanks for the help anyway.
Hello,
when I add
openssl
as a dependent crate to my crate, I get a lot of compilations errors withinopenssl
like:Or
I have 60 errors in total so not reproducing all of them here. They seem to be all related to the use of the
bitflags!
macro. All of the errors I checked were related to astruct
declared via this macro.I tried in stable and nightly versions:
My Cargo.toml:
I tried the
vendored
build but got the same issue.The text was updated successfully, but these errors were encountered: