mirror of
https://github.com/maplibre/martin.git
synced 2024-12-24 07:22:52 +03:00
justfile improvement and deps
This commit is contained in:
parent
35d8e25703
commit
b4dd29d5ba
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -1634,9 +1634,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hermit-abi"
|
name = "hermit-abi"
|
||||||
version = "0.3.4"
|
version = "0.3.5"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "5d3d0e0f38255e7fa3cf31335b3a56f05febd18025f4db5ef7a0cfb4f8da651f"
|
checksum = "d0c62115964e08cb8039170eb33c1d0e2388a256930279edca206fff675f82c3"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hex"
|
name = "hex"
|
||||||
|
13
justfile
13
justfile
@ -344,7 +344,14 @@ install-sqlx: (cargo-install "cargo-sqlx" "sqlx-cli" "--no-default-features" "--
|
|||||||
# Check if a certain Cargo command is installed, and install it if needed
|
# Check if a certain Cargo command is installed, and install it if needed
|
||||||
[private]
|
[private]
|
||||||
cargo-install $COMMAND $INSTALL_CMD="" *ARGS="":
|
cargo-install $COMMAND $INSTALL_CMD="" *ARGS="":
|
||||||
@if ! command -v $COMMAND &> /dev/null; then \
|
#!/usr/bin/env sh
|
||||||
echo "$COMMAND could not be found. Installing it with cargo install ${INSTALL_CMD:-$COMMAND} {{ ARGS }}" ;\
|
set -eu
|
||||||
cargo install ${INSTALL_CMD:-$COMMAND} {{ ARGS }} ;\
|
if [ ! command -v $COMMAND &> /dev/null ]; then
|
||||||
|
if [ ! command -v cargo-binstall &> /dev/null ]; then
|
||||||
|
echo "$COMMAND could not be found. Installing it with cargo install ${INSTALL_CMD:-$COMMAND} {{ ARGS }}"
|
||||||
|
cargo install ${INSTALL_CMD:-$COMMAND} {{ ARGS }}
|
||||||
|
else
|
||||||
|
echo "$COMMAND could not be found. Installing it with cargo binstall ${INSTALL_CMD:-$COMMAND} {{ ARGS }}"
|
||||||
|
cargo binstall ${INSTALL_CMD:-$COMMAND} {{ ARGS }}
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user