Open ecashin opened 2 years ago
I also have a Rocket.toml
based on the TLS example in Rocket, with certs I generated with the script there, but I don't think that's affecting the compile stage.
I'd try removing 'git = "https://github.com/SergioBenitez/Rocket.git",' from your dependency line.
I'd try removing 'git = "https://github.com/SergioBenitez/Rocket.git",' from your dependency line.
Yes, thanks, I did try that, but without that you cannot use the crates that make TLS work:
ecashin@dell-Latitude-E6420:~/src/rust/vhallway$ cargo build
error: failed to select a version for `rocket`.
... required by package `vhallway v0.1.0 (/home/ecashin/src/rust/vhallway)`
versions that meet the requirements `^0.5.0-rc.1` are: 0.5.0-rc.1
the package `vhallway` depends on `rocket`, with features: `mtls` but `rocket` does not have these features.
failed to select a version for `rocket` which could resolve this conflict
ecashin@dell-Latitude-E6420:~/src/rust/vhallway$
Ah, I'll be using nginx proxy for ssl........so, I've not played with mtls feature. I get the same error when I just tried to enable mtls in my app as well.
Rocket RC2 just dropped a few days ago......might fix your tls issue.
Removing git and upgrading to rc2 fixed an issue for me with a similar error relating to "FromRequest" traits. 👍
Removing git and upgrading to rc2 fixed a similar issue for me with a similar issue relating to "FromRequest" traits. +1
Thanks for the info. I will try to stop using caddy and see if it works now.
Hi. I'm hoping to implement a simple web app that includes user authentication and uses TLS. I am using a Cargo.toml that allows me to use TLS with Rocket:
I have a minimal
main.rs
:... and see the following error when doing
cargo build
:But
cargo test --doc
works onrocket_auth
cloned from github, and theUser
doctest is similar to my usage.