Skip to content

generate bridge header file - #246

Closed
Mrmaxmeier wants to merge 11 commits into
tectonic-typesetting:masterfrom
Mrmaxmeier:bindgen
Closed

generate bridge header file#246
Mrmaxmeier wants to merge 11 commits into
tectonic-typesetting:masterfrom
Mrmaxmeier:bindgen

Conversation

@Mrmaxmeier

@Mrmaxmeier Mrmaxmeier commented Oct 14, 2018

Copy link
Copy Markdown
Contributor

This generates a c header file using https://github.com/eqrion/cbindgen. cbindgen automagically includes all public C-representable types as well as primitive constants. This should reduce duplicate type declarations and removes some unsafe typecasts.

🚧 WIP 🚧
Unresolved stuff:

@pkgw

pkgw commented Oct 15, 2018

Copy link
Copy Markdown
Collaborator

Hi @Mrmaxmeier — can you explain a bit about the motivation for this PR? Is it basically adding the glue needed so that the Tectonic engine can be invoked from C as a library? (If so, that's great and would be a great feature to have!)

@codecov

codecov Bot commented Jan 1, 2019

Copy link
Copy Markdown

Codecov Report

Merging #246 into master will increase coverage by 0.09%.
The diff coverage is 59.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #246      +/-   ##
==========================================
+ Coverage   39.61%   39.71%   +0.09%     
==========================================
  Files         135      135              
  Lines       59489    59646     +157     
==========================================
+ Hits        23568    23687     +119     
- Misses      35921    35959      +38
Impacted Files Coverage Δ
src/digest.rs 80.43% <ø> (ø) ⬆️
tectonic/dpx-spc_dvips.c 3.31% <ø> (ø) ⬆️
tectonic/xetex-ini.c 86.96% <ø> (ø) ⬆️
tectonic/core-bridge.c 70.49% <ø> (ø) ⬆️
src/lib.rs 0% <ø> (ø) ⬆️
tectonic/dpx-tfm.c 44.79% <ø> (ø) ⬆️
tectonic/xetex-xetexd.h 66.66% <ø> (ø) ⬆️
tectonic/xetex-engine-interface.c 76.92% <ø> (-4.9%) ⬇️
tectonic/dpx-truetype.c 0% <0%> (ø) ⬆️
tectonic/dpx-subfont.c 3.38% <0%> (ø) ⬆️
... and 26 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 017d5cc...8ae9663. Read the comment docs.

@pkgw

pkgw commented Oct 6, 2020

Copy link
Copy Markdown
Collaborator

Done in #643!

@pkgw pkgw closed this Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants