#bindings #editorconfig #ffi #sys #libeditorconfig

sys editorconfig-sys

Auto-generated Rust FFI bindings to libeditorconfig

2 releases

0.1.1 Jan 27, 2024
0.1.0 Jan 27, 2024

#16 in #sys

36 downloads per month
Used in editorconfig-rs

MIT license

14KB
132 lines

Rust FFI Bindings to libeditorconfig

This crate uses bindgen and pkg-config to automatically generate Rust FFI bindings to the editorconfig-core C library.

Following the *-sys package convention, editorconfig-sys is just a thin wrapper around the native libeditorconfig library.

Workflow status

Dependencies

To use this crate, libeditorconfig >= 0.12.5 must be installed and pkg-config must be able to find it. You can check if pkg-config can find the library and which version is installed with:

pkg-config --modversion editorconfig

Installation

Add this to your Cargo.toml:

[dependencies]
editorconfig-sys = "0.1.1"

Usage

Some unsafe Rust code examples can be found in the tests.

Dependencies

~0–1.8MB
~37K SLoC