Skip to main content

_native/
stub.rs

1//! Stub implementation used when the `python-bindings` feature is disabled.
2//! This keeps workspace builds working on hosts without a Python toolchain.
3
4pub const PYTHON_BINDINGS_ENABLED: bool = false;
5
6/// Explain why the bindings are unavailable in this build.
7pub fn bindings_disabled_reason() -> &'static str {
8    "fontlift-python built without `python-bindings`; enable the feature (used by maturin) to compile the PyO3 extension."
9}