Stream: general

Topic: Cargo deny failing


view this post on Zulip Brian Jones (Dec 27 2021 at 23:58):

Hello,
This is more a Rust related issue, but thought I'd ask since I'm not having luck finding the answer. I'm creating a PR for the wasi-nn crate which updates the Cargo.toml to include the tensorflow rust binding crate. So basically I'm adding `tensorflow = "0.17.0" to the wasi-nn/Cargo.toml. However, this causes the Run cargo deny check bans licenses test to fail because it adds several duplicate lock entries. Anyone know how I can prevent the sub crates tensorflow uses from pulling in older versions of crates Wasmtime allready is using?

view this post on Zulip Brian Jones (Dec 28 2021 at 02:07):

Looking closer it appears tensorflow-internal-macros is importing the older versions of proc-macro2, quote, and syn. I'm guessing this is a bug in the crate, but if you know of a way to fix this locally I'd appreciate the insite.

view this post on Zulip bjorn3 (Dec 28 2021 at 13:08):

Anyone know how I can prevent the sub crates tensorflow uses from pulling in older versions of crates Wasmtime allready is using?

You can submit a PR to the tensorflow bindings to update the dependencies and then once a new version is released update to it.

view this post on Zulip Brian Jones (Dec 28 2021 at 19:09):

Thanks, I did that. Its likely they are on holiday so might be a bit before it happens. So yeah, just looks like they didn't publish the version changes to crates.io, should be an easy fix.


Last updated: Oct 23 2024 at 20:03 UTC