[package]
name = "fig-sys"
version.workspace = true
edition.workspace = true
license.workspace = true
description = "FFI bindings and native library for fig (the comment-preserving JSON/YAML/TOML/… config engine). Used by the `fig` crate."
repository = "https://github.com/diaryx-org/fig"
homepage = "https://github.com/diaryx-org/fig"
documentation = "https://docs.rs/fig-sys"
readme = "README.md"
keywords = ["config", "json", "ffi", "sys", "bindings"]
categories = ["external-ffi-bindings", "config", "parser-implementations"]
links = "fig"
include = [
"build.rs",
"src/**/*.rs",
"README.md",
"LICENSE-MIT",
"LICENSE-APACHE",
"zig/build.zig",
"zig/build.zig.zon",
"zig/src/**/*",
"zig/bindings/c/include/**/*",
]
[lib]
name = "fig_sys"
path = "src/lib.rs"
[features]
default = ["json", "yaml", "toml", "fig"]
json = []
yaml = []
toml = []
zon = []
xml = []
fig = []
[target.'cfg(all(target_os = "macos", target_arch = "aarch64"))'.dependencies]
fig-sys-macos-arm64 = { workspace = true }
[target.'cfg(all(target_os = "linux", target_arch = "x86_64", target_env = "gnu"))'.dependencies]
fig-sys-linux-x64-gnu = { workspace = true }
[target.'cfg(all(target_os = "linux", target_arch = "aarch64", target_env = "gnu"))'.dependencies]
fig-sys-linux-arm64-gnu = { workspace = true }
[target.'cfg(all(target_os = "windows", target_arch = "x86_64", target_env = "msvc"))'.dependencies]
fig-sys-windows-x64-msvc = { workspace = true }
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
fig-sys-wasm32 = { workspace = true }