From 633226b58559350b548a3aea0fd152ebdc799cb6 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Fri, 31 May 2024 13:48:23 +1000 Subject: [PATCH] Install stellar and soroban CLIs when installing either --- Makefile | 5 ++--- cmd/soroban-cli/Cargo.toml | 4 ++++ cmd/stellar-cli/Cargo.toml | 4 ++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7c2f8a78c..7e307b16c 100644 --- a/Makefile +++ b/Makefile @@ -27,9 +27,8 @@ endif install_rust: install install: - cargo install --locked --path ./cmd/soroban-cli --debug - cargo install --locked --path ./cmd/stellar-cli --debug - cargo install --locked --path ./cmd/crates/soroban-test/tests/fixtures/hello --root ./target --debug --quiet + cargo install --force --locked --path ./cmd/stellar-cli --debug + cargo install --force --locked --path ./cmd/crates/soroban-test/tests/fixtures/hello --root ./target --debug --quiet # regenerate the example lib in `cmd/crates/soroban-spec-typsecript/fixtures/ts` build-snapshot: typescript-bindings-fixtures diff --git a/cmd/soroban-cli/Cargo.toml b/cmd/soroban-cli/Cargo.toml index c0142e1e6..0950aa94d 100644 --- a/cmd/soroban-cli/Cargo.toml +++ b/cmd/soroban-cli/Cargo.toml @@ -12,6 +12,10 @@ rust-version.workspace = true autobins = false default-run = "soroban" +[[bin]] +name = "stellar" +path = "src/bin/main.rs" + [[bin]] name = "soroban" path = "src/bin/main.rs" diff --git a/cmd/stellar-cli/Cargo.toml b/cmd/stellar-cli/Cargo.toml index 6c0610b6f..23e4c741e 100644 --- a/cmd/stellar-cli/Cargo.toml +++ b/cmd/stellar-cli/Cargo.toml @@ -16,6 +16,10 @@ default-run = "stellar" name = "stellar" path = "src/bin/main.rs" +[[bin]] +name = "soroban" +path = "src/bin/main.rs" + [package.metadata.binstall] pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-{ target }{ archive-suffix }" bin-dir = "{ bin }{ binary-ext }"