Skip to main content

mathtex_portable_engine_generated/
lib.rs

1//! Auto-patched portable engine source from Web2C/C2Rust bootstrap output.
2
3// Clippy lints the translated functions trigger, other lints stay on for the hand written runtime.
4#![allow(
5    clippy::assign_op_pattern,
6    clippy::collapsible_if,
7    clippy::collapsible_match,
8    clippy::if_same_then_else,
9    clippy::manual_range_patterns,
10    clippy::needless_return,
11    clippy::precedence,
12    clippy::single_match,
13    clippy::toplevel_ref_arg,
14    clippy::unit_arg,
15    clippy::unnecessary_cast,
16    clippy::wildcard_in_or_patterns
17)]
18
19pub mod runtime;
20// XeTeX engine functions, split into per letter partial `impl` blocks under `functions/`.
21pub(crate) mod functions;
22
23pub use runtime::memory_word_bytes;
24pub use runtime::{
25    EmptyFontPlatform, EmptyPlatform, EmptyResourceProvider, FontPlatform, FormatImageError,
26    GlyphAssembly, PortableClock, PortableFontHandle, PortableFontMetrics, PortableFormatImage,
27    PortableError, PortableErrorKind, PortableGlyphBounds, PortableHostBox, PortableHostBoxGlyph,
28    PortableHostBoxRequest,
29    PortableHostBoxRule, PortableHostBoxRun, PortableHostBoxStyle, PortableLinebreakRequest,
30    PortableMathAssemblyPart, PortableMathKernCorner, PortableMathVariant, PortableNativeGlyph,
31    PortableNativeGlyphMetrics, PortableNativeTextMetrics, PortableNoadKind, PortableNodeHandle,
32    PortableNodeKind, PortableNodeSnapshot, PortablePlatform, PortableResourceRequestRecord,
33    PortableSourceSpan, PortableTexEngine, ResourceKind, ResourceProvider, ResourceRequest,
34    FILE_SIZE_PROBE_MODE, SANDBOX_OP_BUDGET,
35};