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.3"
§Usage
Examples can be found in the tests.
Structs§
- Editor
Config Handle - EditorConfig handle
- Version
- EditorConfig version
Enums§
- Parse
Error - Parsing errors returned by
EditorConfigHandle::parse
Functions§
- get_
error_ message - Gets the error message for a parsing error from the
underlying
libeditorconfig
C library - get_
version - Gets the version number of the underlying
libeditorconfig
C library