Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
👻 add empty workspace members array
Browse files Browse the repository at this point in the history
This odd little commit is a workaround for a Cargo workspaces bug,
described in rust-lang/cargo#6745; this workaround is described in a
comment there[1].

When using this repository as a submodule, it becomes impossible to
validate the definitions with the command below, if it contains a Cargo
workspace:

```
cargo run --manifest-path=validate-witx/Cargo.toml ./compute-at-edge.witx
```

Moreover, we cannot always add the repo to the `exclude` array, for
reasons explained in the attached Cargo issue.

So, we'll introduce this empty workspace array, to avoid that issue for
now.

[1]: rust-lang/cargo#6745 (comment)
  • Loading branch information
katelyn martin committed Jul 7, 2021
1 parent b4ed9a8 commit 00c3228
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions validate-witx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ version = "0.1.0"
authors = ["Fastly <[email protected]>"]
edition = "2018"

[workspace]
members = []

[dependencies]
anyhow = "^1.0.40"
witx = "^0.9.1"

0 comments on commit 00c3228

Please sign in to comment.