MCPcopy Index your code
hub / github.com/TheDaemoness/ec4rs

github.com/TheDaemoness/ec4rs @v1.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.0 ↗ · + Follow
198 symbols 438 edges 31 files 62 documented · 31%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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
cd tests
cmake -DEDITORCONFIG_CMD="$PWD/../target/debug/ec4rs-parse" .
ctest .

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.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 110
Function 60
Class 19
Enum 6
Interface 3

Languages

Rust100%

Modules by API surface

src/properties.rs27 symbols
src/rawvalue.rs20 symbols
src/tests/glob.rs17 symbols
src/glob/stack.rs11 symbols
src/glob/splitter.rs11 symbols
src/glob/parser/alt.rs11 symbols
src/parser.rs10 symbols
src/tests/properties.rs9 symbols
src/tests/ecparser.rs9 symbols
src/linereader.rs9 symbols
src/section.rs8 symbols
src/file.rs7 symbols

For agents

$ claude mcp add ec4rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page