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.2"
§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
libeditorconfig
C library - Gets the version number of the underlying
libeditorconfig
C library