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.

Build status Crates.io

§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§

EditorConfigHandle
EditorConfig handle
Version
EditorConfig version

Enums§

ParseError
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