Rocket seems to be using outdated dependencies. This leads to two "security" problems found by cargo-audit:
$ cargo audit
[...]
warning: 1 warning found
Crate: block-cipher-trait
Title: crate has been renamed to `block-cipher`
Date: 2020-05-26
URL: https://rustsec.org/advisories/RUSTSEC-2020-0018
Dependency tree:
block-cipher-trait 0.6.2
โโโ aesni 0.6.0
โ โโโ aes 0.3.2
โ โโโ aes-gcm 0.5.0
โ โโโ cookie 0.11.3
โ โโโ rocket_http 0.4.5
โ โโโ rocket_codegen 0.4.5
โ โ โโโ rocket 0.4.5
โ โ โโโ rocket_contrib 0.4.5
โ โ โ โโโ my-lovely-crate x.x.x
โ โ โโโ my-lovely-crate x.x.x
โ โโโ rocket 0.4.5
โโโ aes-soft 0.3.3
โ โโโ aes 0.3.2
โโโ aes-gcm 0.5.0
โโโ aes 0.3.2
Crate: net2
Title: `net2` crate has been deprecated; use `socket2` instead
Date: 2020-05-01
URL: https://rustsec.org/advisories/RUSTSEC-2020-0016
Dependency tree:
net2 0.2.35
โโโ miow 0.2.1
โ โโโ mio 0.6.22
โ โโโ notify 4.0.15
โ โ โโโ rocket_contrib 0.4.5
โ โ โโโ my-lovely-crate x.x.x
โ โโโ mio-extras 2.0.6
โ โโโ notify 4.0.15
โโโ mio 0.6.22
warning: 1 warning found!
However, the new versions do not only change patch level, but may contain breaking changes.
Maybe some kind of CI check would be helpful, e.g. using cargo-audit or even cargo-deny.
Rocket version: 0.4.5 (latest as of writing)
OS: Linux
a lot of dependencies have been updated recently, can you run this check against the master branch, too?
The first is gone, but the second is still there (in rocket 0.5.0-dev):
warning: 1 warning found
Crate: net2
Title: net2 crate has been deprecated; use socket2 instead
Date: 2020-05-01
URL: https://rustsec.org/advisories/RUSTSEC-2020-0016
net2 is a dependency of mio which itself is a dependency of tokio; there is nothing we can do to remove our transitive dependency outside of not depending on hyper or tokio. As such, I'm closing this issue. I would suggest raising this issue in the appropriate issue tracker, mio's.
Sorry, my fault. In fact, the problem is that notify did not update to mio 0.7 yet due to the deprecation of mio-extras. I linked the corresponding issue.
Most helpful comment
The first is gone, but the second is still there (in rocket 0.5.0-dev):
warning: 1 warning found
Crate: net2
Title:
net2crate has been deprecated; usesocket2insteadDate: 2020-05-01
URL: https://rustsec.org/advisories/RUSTSEC-2020-0016