Files
radicle-tui/build/radicle-build/rust-version
T
Erik Kundt 954d7bfbea chore: Move to local release builds
Introduce a new local build system based on `cargo zigbuild`. It's
a generalized version of the heartwood build system, which aims to be
moved into its own repository at some point.
2025-11-27 13:39:29 +01:00

12 lines
231 B
Bash
Executable File

#! /usr/bin/env bash
set -euo pipefail
if ! version=$(grep -m 1 -oP '^\s*channel\s*=\s*"?\K([\d\.]+)' rust-toolchain.toml)
then
echo "fatal: no rust version found via rust-toolchain.toml" >&2
exit 1
else
echo "$version"
fi