I build on windows with cargo.toml settings:
[dependencies]
curl = {version="0.4.33", features = ["ssl"]}
Then when I call http service I get an error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error
{ description: "A requested feature, protocol or option was not found built-in in this libcurl
due to a build-time decision.", code: 4, extra: None }'
How to enable NTLM support for curl Rust crate?
The rust curl crate will attempt to link against the existing curl library on your system if it can find it. In that case, you will only be able to use features which are compiled into that existing curl library.
Going by the error you are getting, I would assume that NTLM was not enabled when your curl library was compiled. You can check that by running the curl cli progam (which is usually linked to the library) with the
-V
option:If you enable the crate feature
static-curl
then it will build the curl library itself and statically link it. It appears that it will enable all applicable features in that scenario (although I have not tested that).