From 5c8aa33795605bfcd3b2f9589b4fa4870207c11b Mon Sep 17 00:00:00 2001 From: Vaibhav Rabber Date: Mon, 16 Dec 2024 22:36:20 +0530 Subject: [PATCH] chore: Update cargo binary name to `s2` (#84) Signed-off-by: Vaibhav Rabber --- .github/workflows/release.yml | 3 --- Cargo.toml | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9bfccb0..002881b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,9 +46,6 @@ jobs: - name: Set CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER if: matrix.target == 'aarch64-unknown-linux-gnu' run: echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV - - name: rename the package to s2 - shell: bash - run: sed -i.bak -E '/^\[package\]/,/^\[.*\]/ s/^name *= *"[^"]*"/name = "s2"/' Cargo.toml - name: Build run: cargo build --release --target ${{ matrix.target }} - name: Create pem and certificate.der files diff --git a/Cargo.toml b/Cargo.toml index f2e6b0e..d1cf745 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,10 @@ keywords = ["streamstore", "s2", "log", "stream", "s3"] repository = "https://github.com/s2-streamstore/streamstore-cli" homepage = "https://github.com/s2-streamstore/streamstore-cli" +[[bin]] +name = "s2" +path = "src/main.rs" + [dependencies] async-stream = "0.3.6" base16ct = { version = "0.2.0", features = ["alloc"] }