You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With my own Cargo.toml where I have no examples explicitly given but where I do have two standalone files in the examples directory. I found version 0.5.0 runs the examples twice each.
Putting in some dbg! lines into the cargo-examples src and rerunning, the loop that runs through the manifest examples is adding entries that are already in the examples vec, but under a different form.
The first loop adds them as File() variants, but the second loop adds them again as Named() variants.
Here's what the examples vec looked like before they were run, one after the other:
Unrelated but I found I could update the cargo_toml dependency to 0.20, from 0.14, but I did have to change the path being provided from "Cargo.toml" to "./Cargo.toml". Didn't make any difference to the doubling of the examples though so not relevant here.
And to help avoid any confusion, here is the Cargo.toml:
$ cat Cargo.toml
[package]
name = "abc"
version = "0.1.0"
edition = "2021"
[dependencies]
libc = "0.2.159"
The text was updated successfully, but these errors were encountered:
With my own Cargo.toml where I have no examples explicitly given but where I do have two standalone files in the examples directory. I found version 0.5.0 runs the examples twice each.
Putting in some dbg! lines into the cargo-examples src and rerunning, the loop that runs through the manifest examples is adding entries that are already in the
examples
vec, but under a different form.The first loop adds them as
File()
variants, but the second loop adds them again asNamed()
variants.Here's what the
examples
vec looked like before they were run, one after the other:Unrelated but I found I could update the cargo_toml dependency to 0.20, from 0.14, but I did have to change the path being provided from "Cargo.toml" to "./Cargo.toml". Didn't make any difference to the doubling of the examples though so not relevant here.
And to help avoid any confusion, here is the Cargo.toml:
The text was updated successfully, but these errors were encountered: