Make `cargo uniffi-bindgen` alias work when executed from a crate.

Previously, our special `cargo uniffi-bindgen` alias would work correctly
when executed from the workspace root directory, but would not work when
executed in the root directory of a crate (because from that location,
`cargo run` tries to run a binary from the crate you're in rather than
from the containing workspace).

This tweaks the alias to explicitly specify the package containing
the command, so it should work from any directory.
This commit is contained in:
Ryan Kelly 2021-06-18 14:44:53 +10:00 коммит произвёл mergify[bot]
Родитель 009be5430a
Коммит 7099b99b1c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1,5 +1,5 @@
[alias]
regen-protobufs = ["run", "--bin", "protobuf-gen", "tools/protobuf_files.toml"]
uniffi-bindgen = ["run", "--bin", "embedded-uniffi-bindgen"]
uniffi-bindgen = ["run", "--package", "embedded-uniffi-bindgen", "--"]
dev-install = ["install", "asdev"]
verify_env = ["asdev", "verify_env"]