Skip to content

Commit aba9d2b

Browse files
claude: Make typst-gather build mandatory in configure scripts
Remove conditional cargo check - build should fail if Rust is not available rather than silently skipping typst-gather. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b4f2020 commit aba9d2b

2 files changed

Lines changed: 6 additions & 17 deletions

File tree

‎configure.cmd‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,9 @@ IF EXIST !QUARTO_BIN_PATH!\quarto.cmd (
8989
ECHO NOTE: To use quarto please use quarto.cmd (located in this folder) or add the following path to your PATH
9090
ECHO !QUARTO_BIN_PATH!
9191

92-
REM Build typst-gather if cargo is available
93-
where cargo >nul 2>nul
94-
if %ERRORLEVEL% EQU 0 (
95-
ECHO Building typst-gather...
96-
cargo build --release --manifest-path package\typst-gather\Cargo.toml
97-
) else (
98-
ECHO Note: Rust/cargo not found, skipping typst-gather build
99-
ECHO Install Rust to use 'quarto call typst-gather'
100-
)
92+
REM Build typst-gather
93+
ECHO Building typst-gather...
94+
cargo build --release --manifest-path package\typst-gather\Cargo.toml
10195

10296
endlocal & set QUARTO_BIN_DEV=%QUARTO_BIN_PATH%
10397

‎configure.sh‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ else
103103
quarto --version
104104
fi
105105

106-
# Build typst-gather if cargo is available
107-
if command -v cargo &> /dev/null; then
108-
echo "Building typst-gather..."
109-
cargo build --release --manifest-path package/typst-gather/Cargo.toml
110-
else
111-
echo "Note: Rust/cargo not found, skipping typst-gather build"
112-
echo "Install Rust to use 'quarto call typst-gather'"
113-
fi
106+
# Build typst-gather
107+
echo "Building typst-gather..."
108+
cargo build --release --manifest-path package/typst-gather/Cargo.toml

0 commit comments

Comments
 (0)