Skip to content

Conversation

@CraftSpider
Copy link
Contributor

@CraftSpider CraftSpider commented Aug 8, 2025

This is the big one - begin converting the engine into Rust.

CI clippy and Windows vcpkg are consistently failing. I'm leaving off fixing those till the end, as long as every other check is passing. vcpkg is a weird one in particular, it's related to a library on Windows not getting linked but that apparently works without these (non-build) changes. So I'm hoping removing most of the C code will just make it fix itself eventually.

@CraftSpider CraftSpider added the port-to-rust Replacing old code with Rust label Aug 8, 2025
@codecov
Copy link

codecov bot commented Aug 8, 2025

Codecov Report

❌ Patch coverage is 68.14912% with 974 lines in your changes missing coverage. Please review.
✅ Project coverage is 30.07%. Comparing base (e8dd681) to head (981dfce).
⚠️ Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
crates/engine_xetex/src/c_api/scaled_math.rs 31.71% 209 Missing and 2 partials ⚠️
crates/engine_xetex/src/c_api/output.rs 80.10% 131 Missing and 22 partials ⚠️
crates/engine_xetex/xetex/xetex-xetexd.h 0.93% 0 Missing and 106 partials ⚠️
crates/engine_xetex/xetex/xetex-ini.c 74.30% 0 Missing and 92 partials ⚠️
crates/engine_xetex/src/c_api/engine.rs 88.49% 68 Missing and 4 partials ⚠️
crates/engine_xetex/xetex/xetex-linebreak.c 57.14% 33 Missing and 36 partials ⚠️
crates/engine_xetex/xetex/xetex-shipout.c 52.27% 3 Missing and 60 partials ⚠️
crates/engine_xetex/src/c_api/engine/memory.rs 32.50% 54 Missing ⚠️
crates/engine_xetex/src/c_api/pool.rs 82.46% 27 Missing ⚠️
crates/engine_xetex/xetex/xetex-ext.c 3.70% 15 Missing and 11 partials ⚠️
... and 13 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1317      +/-   ##
==========================================
+ Coverage   28.85%   30.07%   +1.21%     
==========================================
  Files         273      281       +8     
  Lines      203491   181273   -22218     
  Branches   203491   181273   -22218     
==========================================
- Hits        58724    54518    -4206     
+ Misses      64143    54952    -9191     
+ Partials    80624    71803    -8821     
Components Coverage Δ
tectonic 50.89% <ø> (ø)
bridge_core 33.92% <88.46%> (-1.06%) ⬇️
bridge_flate 38.82% <ø> (ø)
bridge_fontconfig 96.17% <ø> (ø)
bridge_freetype2 92.70% <ø> (ø)
bridge_graphite2 42.47% <ø> (ø)
bridge_harfbuzz 82.83% <ø> (ø)
bridge_icu ∅ <ø> (∅)
bridge_png 100.00% <ø> (ø)
bundles 34.78% <ø> (ø)
cfg_support 94.84% <ø> (ø)
dep_support 0.00% <ø> (ø)
docmodel 84.09% <ø> (ø)
engine_bibtex 66.45% <ø> (ø)
engine_spx2html 0.00% <ø> (ø)
engine_xdvipdfmx 64.58% <ø> (+9.00%) ⬆️
engine_xetex 36.29% <67.97%> (+1.00%) ⬆️
errors 47.61% <ø> (ø)
geturl 27.16% <ø> (ø)
io_base 76.04% <ø> (ø)
pdf_io 14.17% <ø> (-0.15%) ⬇️
status_base 71.76% <ø> (ø)
xdv 55.21% <ø> (ø)
xetex_format 22.80% <ø> (ø)
xetex_layout 58.62% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CraftSpider CraftSpider force-pushed the engine-port branch 2 times, most recently from 1c66d6a to 84de890 Compare August 21, 2025 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

port-to-rust Replacing old code with Rust

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant