[package]
name = "twig-sys"
version.workspace = true
edition.workspace = true
license.workspace = true
description = "FFI bindings and native library for Twig (the Djot/Markdown/HTML/XML document engine). Used by the `twig-doc` crate."
repository = "https://github.com/diaryx-org/twig"
homepage = "https://github.com/diaryx-org/twig"
documentation = "https://docs.rs/twig-sys"
readme = "README.md"
keywords = ["djot", "markdown", "ffi", "sys", "bindings"]
categories = ["external-ffi-bindings", "text-processing"]
rust-version = "1.85"
links = "twig"
include = [
"src/**/*.rs",
"build.rs",
"README.md",
"zig/build.zig",
"zig/build.zig.zon",
"zig/src/**/*",
"zig/bindings/c/include/twig.h",
]
[lib]
name = "twig_sys"
path = "src/lib.rs"
[target.'cfg(all(target_os = "macos", target_arch = "aarch64"))'.dependencies]
twig-sys-macos-arm64 = { workspace = true }
[target.'cfg(all(target_os = "linux", target_arch = "x86_64", target_env = "gnu"))'.dependencies]
twig-sys-linux-x64-gnu = { workspace = true }
[target.'cfg(all(target_os = "linux", target_arch = "aarch64", target_env = "gnu"))'.dependencies]
twig-sys-linux-arm64-gnu = { workspace = true }
[target.'cfg(all(target_os = "windows", target_arch = "x86_64", target_env = "msvc"))'.dependencies]
twig-sys-windows-x64-msvc = { workspace = true }
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
twig-sys-wasm32 = { workspace = true }