Git Product home page Git Product logo

ec4rs's Introduction

ec4rs: EditorConfig For Rust

CI crates.io API docs

An EditorConfig core in safe Rust.

This library enables you to integrate EditorConfig support into any tools which may benefit from it, such as code editors, formatters, and style linters. It includes mechanisms for type-safe parsing of properties, so that your tool doesn't have to do it itself. It also exposes significant portions of its logic, allowing you to use only the parts you need.

Name idea shamelessly stolen from ec4j. This library has minimal dependencies (only std at this time).

For example usage, see the docs.

Testing

The main repository for this library includes the EditorConfig core tests as a Git submodule. This library should pass all of these tests. To run the test suite, run the following commands in a POSIX-like shell:

cargo build --package ec4rs_tools
git submodule update --init --recursive
cmake -DEDITORCONFIG_CMD="$PWD/target/debug/ec4rs-parse" -Stests -Btests
ctest --test-dir tests

License

ec4rs is licensed under the Apache License 2.0 with no NOTICE text.

Contributors submitting code changes must agree to the terms of the Developer Certificate of Origin (DCO) to have their contributions accepted for inclusion. A copy of the DCO may be found in DCO.txt. Contributors should sign-off on their commits (see git commit -s) to indicate explicit agreement.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.