ba589a868e
cbindgen currently assumes that the `Cargo.lock` is in directly in the crate directory as a sibling to `Cargo.toml`; however that is usually not the case inside a workspace. Instead, this PR extracts the workspace root from the output of `cargo metadata` [1] (already used to get a list of packages) and uses the `Cargo.lock` from there. 1. This is available since Rust 1.24; see rust-lang/cargo#4940
19 lines
206 B
TOML
19 lines
206 B
TOML
[[package]]
|
|
name = "child"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"dep 0.1.0",
|
|
]
|
|
|
|
[[package]]
|
|
name = "dep"
|
|
version = "0.1.0"
|
|
|
|
[[package]]
|
|
name = "workspace"
|
|
version = "0.1.0"
|
|
dependencies = [
|
|
"dep 0.1.0",
|
|
]
|
|
|