Crate editorconfig_rs
source ·Expand description
§Rust Bindings to libeditorconfig
This crate provides a safe Rust wrapper to the native libeditorconfig C library, using the editorconfig-sys FFI bindings.
§Dependencies
This crate uses editorconfig-sys which currently requires you to install libeditorconfig. Please refer to the editorconfig-sys README for more information.
§Installation
Add this to your Cargo.toml:
[dependencies]
editorconfig-rs = "0.2.1"
§Usage
Examples can be found in the tests.
Structs§
- EditorConfig handle
- EditorConfig version
Enums§
- Parsing errors returned by
EditorConfigHandle::parse
Functions§
- Gets the error message for a parsing error from the underlying
libeditorconfigC library - Gets the version number of the underlying
libeditorconfigC library