crane/checks/illegal-bin/Cargo.toml
Ivan Petkov abc2c8c418
mkDummySrc: drop dummy lib.rs by default, not main.rs
* There are some edge cases where cargo will allow a lib.rs file to be
  present but not a main.rs (e.g. a binary cannot be called "examples",
  which will happen if the crate is called that and a main.rs file is
  present)
2022-01-07 20:42:24 -08:00

16 lines
559 B
TOML

# This cargo workspace contains a member called "examples"
# If we drop a dummy file in `src/main.rs` cargo will complain with:
#
# error: failed to load manifest for workspace member `/build/dummy-src/examples`
# Caused by:
# failed to parse manifest at `/build/dummy-src/examples/Cargo.toml`
# Caused by:
# the binary target name `examples` is forbidden, it conflicts with with cargo's build directory names
#
# Instead we need to drop a dummy file at `src/lib.rs`, and this is a
# regression test for that case.
[workspace]
members = [
"examples",
]