https://github.com/rizsotto/json_compilation_db
Rust crate to read/write JSON compilation database file.
https://github.com/rizsotto/json_compilation_db
clang clang-tooling compilation-database json rust
Last synced: 12 months ago
JSON representation
Rust crate to read/write JSON compilation database file.
- Host: GitHub
- URL: https://github.com/rizsotto/json_compilation_db
- Owner: rizsotto
- License: mit
- Created: 2019-09-20T09:55:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-27T21:02:46.000Z (over 1 year ago)
- Last Synced: 2024-11-01T05:25:15.729Z (over 1 year ago)
- Topics: clang, clang-tooling, compilation-database, json, rust
- Language: Rust
- Size: 69.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# JSON Compilation Database
This crate provides support for reading and writing JSON compilation database files.
## Overview
A _compilation database_ is a set of records which describe the compilation of the
source files in a given project. It describes the compiler invocation command to
compile a single source file to an object file.
This database can have many forms. One well known and supported format is the JSON
compilation database, which is a simple JSON file having the list of compilation
as an array. The definition of the JSON compilation database files is done in the
LLVM project [documentation](https://clang.llvm.org/docs/JSONCompilationDatabase.html).
## Usage
First, add this to your `Cargo.toml`:
```toml
[dependencies]
json_compilation_db = "1.0"
```
## License
This project is licensed under the [MIT license](LICENSE).
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in `json_compilation_db` by you, shall be licensed as MIT, without
any additional terms or conditions.