We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a837ba3 commit 47fe362Copy full SHA for 47fe362
Makefile
@@ -15,9 +15,16 @@ rust:
15
@bash -c 'if ! command -v rustc >/dev/null 2>&1; then \
16
echo "rustc not found, installing..."; \
17
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y; \
18
+ echo "Loading Rust environment..." && \
19
+ . $$HOME/.cargo/env; \
20
+ fi && \
21
+ if [ -f "$$HOME/.cargo/env" ]; then \
22
+ echo "Loading Rust environment from $$HOME/.cargo/env..." && \
23
24
25
+ if ! command -v cargo >/dev/null 2>&1; then \
26
+ echo "Error: cargo not found in PATH" && exit 1; \
27
fi && \
- echo "Loading Rust environment..." && \
- . $$HOME/.cargo/env && \
28
echo "Building Rust library..." && \
29
cd candle-binding && cargo build --release'
30
0 commit comments