Closed lupine closed 4 years ago
Related issue wrt duplicate dependencies: #870
OK, I've created PRs for each of the current errors. I think once those three are merged, we could add a simple cargo deny
configuration that will alert when new advisories are created, and that would be sufficient to close this issue if we have another for the duplicate dependencies.
If https://github.com/budziq/rust-skeptic/pull/119 is accepted, it will remove one of deltachat-core-rust's many dependencies once it filters down, since we already depend on tempfile v3.1.0
^^.
It's not a big gain, but there are many like this, and the concrete goal of a green linter encourages contributions towards it.
@lupine a lot of deps have changed and updated with #1356 Could you run tests and PRs against that for the moment please? otherwise we will have to redo a lot of the work
OK, the async branch has been merged and it's down to a single RUSTSEC error:
It doesn't look like I can contribute effectively from a fork, so I can't create the PR for it, or for adding cargo deny more generally.
On Thu, May 28, 2020 at 01:49 -0700, Nick Thomas wrote:
226 │ rusqlite 0.22.0 registry+https://github.com/rust-lang/crates.io-index
this is probably going away when https://github.com/deltachat/deltachat-core-rust/pull/1534 is merged. No idea how "cargo deny" could best be integrated regularly --
It doesn't look like I can contribute from a fork, so I can't create the PR for it, or for adding cargo deny more generally.
@lupine, you are invited now to write-access, use carefully ;)
@lupine closing this, i think we have worked through most issues here apart from #1534 Maybe you can do a PR introducing Cargo-deny?
As discussed in the IRC channel.
I don't know a lot about the Rust ecosystem yet, so I'm throwing linters at my own code excessively, to teach myself what is good practice and what is not. One of those linters is https://github.com/EmbarkStudios/cargo-deny - this one is mostly about dependencies, and my main dependency is
deltachat-core-rust
, so rather than fixing the lints myself, I thought it might be a good idea to add acargo deny
step to deltachat-core-rust.Here's the output on current master, with this
deny.toml
file (mostly boilerplate, but note I assume some licenses are fine to get that section of the output down):Running
cargo deny check --hide-inclusion-graph
gets me this output:I assume that rationalising the dependency graph so only one version of each dependency is used will reduce build times and binary size, which can only be a good thing. The other errors seem well worth fixing too.
Happy to create a PR for this if there's interest!