diff options
author | David Goulet <dgoulet@torproject.org> | 2021-09-14 11:03:00 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-10-06 15:12:04 -0400 |
commit | ae9042abbfbd9b854fe46138e62cc0b3f6696b68 (patch) | |
tree | ca7d06040a74d77e26562bbc1d209a462d59351f /scripts/maint/updateRustDependencies.sh | |
parent | c3e50f0fde701c01d68ebea60e8b9e978937a201 (diff) | |
download | tor-ae9042abbfbd9b854fe46138e62cc0b3f6696b68.tar.gz tor-ae9042abbfbd9b854fe46138e62cc0b3f6696b68.zip |
rust: Remove Rust support from tree
Closes #40469
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'scripts/maint/updateRustDependencies.sh')
-rwxr-xr-x | scripts/maint/updateRustDependencies.sh | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/scripts/maint/updateRustDependencies.sh b/scripts/maint/updateRustDependencies.sh deleted file mode 100755 index e37a633675..0000000000 --- a/scripts/maint/updateRustDependencies.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright (c) 2018 The Tor Project, Inc. -# Copyright (c) 2018 isis agora lovecruft -# See LICENSE for license information -# -# updateRustDependencies.sh -# ------------------------- -# Update our vendored Rust dependencies, either adding/removing -# dependencies and/or upgrading current dependencies to newer -# versions. -# -# To use this script, first add your dependencies, exactly specifying -# their versions, into the appropriate *crate-level* Cargo.toml in -# src/rust/ (i.e. *not* /src/rust/Cargo.toml, but instead the one for -# your crate). -# -# Next, run this script. Then, go into src/ext/rust and commit the -# changes to the tor-rust-dependencies repo. - -set -e - -HERE=$(dirname "$(realpath "$0")") -TOPLEVEL=$(dirname "$(dirname "$HERE")") -TOML="$TOPLEVEL/src/rust/Cargo.toml" -VENDORED="$TOPLEVEL/src/ext/rust/crates" -CARGO=$(command -v cargo) - -if ! test -f "$TOML" ; then - printf "Error: Couldn't find workspace Cargo.toml in expected location: %s\\n" "$TOML" -fi - -if ! test -d "$VENDORED" ; then - printf "Error: Couldn't find directory for Rust dependencies! Expected location: %s\\n" "$VENDORED" -fi - -if test -z "$CARGO" ; then - printf "Error: cargo must be installed and in your \$PATH\\n" -fi - -if test -z "$(cargo --list | grep vendor)" ; then - printf "Error: cargo-vendor not installed\\n" -fi - -$CARGO vendor -v --locked --explicit-version --no-delete --sync "$TOML" "$VENDORED" |