mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-23 16:32:23 +03:00
abc2c8c418
* 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)
16 lines
559 B
TOML
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",
|
|
]
|