diff --git a/bindings/rust/generate.sh b/bindings/rust/generate.sh index 5890e97fa7d..47f2e1ef043 100755 --- a/bindings/rust/generate.sh +++ b/bindings/rust/generate.sh @@ -2,7 +2,7 @@ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -set -e +set -xe # cd into the script directory so it can be executed from anywhere pushd "$(dirname "${BASH_SOURCE[0]}")" @@ -52,19 +52,6 @@ cargo publish --dry-run --allow-dirty cargo publish --dry-run --allow-dirty --all-features popd -# if this version has already been published we can run -# additional validation to ensure there won't be build -# problems when a new version is published -if ! ./scripts/detect-new-release; then - pushd s2n-tls - cargo publish --dry-run --allow-dirty - popd - - pushd s2n-tls-tokio - cargo publish --dry-run --allow-dirty - popd -fi - pushd integration cargo run popd diff --git a/bindings/rust/scripts/detect-new-release b/bindings/rust/scripts/detect-new-release deleted file mode 100755 index 482f7ad5041..00000000000 --- a/bindings/rust/scripts/detect-new-release +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# -# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -# SPDX-License-Identifier: Apache-2.0 -# - -set -e - -# cd into the script directory so it can be executed from anywhere -pushd "$(dirname "${BASH_SOURCE[0]}")" - -LOCAL_VERSION=$(cargo metadata --manifest-path ../Cargo.toml --no-deps --format-version 1 | jq --raw-output -c '.packages[] | select(.name == "s2n-tls").version') -CRATES_IO_VERSION=$(cargo search "s2n-tls" --limit 1 | head -n 1 | cut -d'"' -f2) - -# Exits with 0 if the local version has not been published to crates.io yet, otherwise exits with 1 -[[ "$LOCAL_VERSION" != "$CRATES_IO_VERSION" ]]