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 35c8ec8 commit a837ba3Copy full SHA for a837ba3
Makefile
@@ -11,8 +11,15 @@ build: rust build-router
11
12
# Build the Rust library
13
rust:
14
- @echo "Building Rust library..."
15
- cd candle-binding && cargo build --release
+ @echo "Ensuring rust is installed..."
+ @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
+ fi && \
19
+ echo "Loading Rust environment..." && \
20
+ . $$HOME/.cargo/env && \
21
+ echo "Building Rust library..." && \
22
+ cd candle-binding && cargo build --release'
23
24
# Build router
25
build-router: rust
0 commit comments