From 7099b99b1c9205c03b71c4ebd4e7a9131c7f336b Mon Sep 17 00:00:00 2001 From: Ryan Kelly Date: Fri, 18 Jun 2021 14:44:53 +1000 Subject: [PATCH] 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. --- .cargo/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cargo/config b/.cargo/config index e23173f08..7c9494ee2 100644 --- a/.cargo/config +++ b/.cargo/config @@ -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"]