9 releases

0.4.1 Feb 5, 2024
0.4.0 Jun 12, 2023
0.3.2 May 18, 2023
0.3.1 Oct 3, 2022
0.1.0 Jun 4, 2021

#408 in Filesystem

Download history 102/week @ 2023-12-23 62/week @ 2023-12-30 121/week @ 2024-01-06 129/week @ 2024-01-13 114/week @ 2024-01-20 204/week @ 2024-01-27 198/week @ 2024-02-03 196/week @ 2024-02-10 260/week @ 2024-02-17 277/week @ 2024-02-24 201/week @ 2024-03-02 185/week @ 2024-03-09 181/week @ 2024-03-16 237/week @ 2024-03-23 272/week @ 2024-03-30 176/week @ 2024-04-06

889 downloads per month
Used in 23 crates (8 directly)

MIT license

130KB
2.5K SLoC

The tectonic_bridge_core crate

This crate is part of the Tectonic project. It provides a C API to core I/O services provided by the Tectonic Rust code. This API is then consumed by the various C/C++ “engines” implementing the TeX software.

If your project depends on this crate, Cargo will export for your build script an environment variable named DEP_TECTONIC_BRIDGE_CORE_INCLUDE, which will be the name of a directory containing the generated tectonic_bridge_core.h file that exposes this crate’s C API.

You will need to ensure that your Rust code actually references this crate in order for the linker to include the C API symbols. If you are not actively using its Rust API, a use statement will suffice:

#[allow(unused_imports)]
#[allow(clippy::single_component_path_imports)]
use tectonic_bridge_core;

Cargo features

This crate does not currently provide any Cargo features.

Updating the generated header

This crate exposes Rust functions to C/C++ code using a header file created by cbindgen. To update the header, run:

cbindgen --output support/tectonic_bridge_core_generated.h

Dependencies

~5–17MB
~157K SLoC