Hi thanks for the reply, yes I do have openSSl installed "OpenSSL 1.1.1k 25 Mar 2021"...unfortunately enabling the feature boringssl-vendored didn't fix the problem.
I figured out how to fix this. the problem occurred because I had reqwest crate in my toml...since it uses openssl too, there were some conflicts....so I had to enable this feature : reqwest = { version="0.xx", default-features=false, features=["rustls-tls"] } to fix the conflicts.
Yes, in general using rustls will save you from alot of these compiling problems (as opposed to native-tls). Also, if the only available crate for a project is native-tls, you can use the "vendored" feature to make cross-compiling more friendly.