doc: Include README as top-level module documentation for all crates
This commit is contained in:
parent
bdc0e44d45
commit
0862921537
9 changed files with 17 additions and 7 deletions
|
|
@ -1,5 +1,7 @@
|
|||
# `tree-sitter-config`
|
||||
# Tree-sitter Config
|
||||
|
||||
Manages Tree-sitter's configuration file.
|
||||
|
||||
You can use a configuration file to control the behavior of the `tree-sitter`
|
||||
command-line program. This crate implements the logic for finding and the
|
||||
command-line program. This crate implements the logic for finding and the
|
||||
parsing the contents of the configuration file.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
//! Manages tree-sitter's configuration file.
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# `tree-sitter-loader`
|
||||
# Tree-sitter Loader
|
||||
|
||||
The `tree-sitter` command-line program will dynamically find and build grammars
|
||||
at runtime, if you have cloned the grammars' repositories to your local
|
||||
filesystem. This helper crate implements that logic, so that you can use it in
|
||||
filesystem. This helper crate implements that logic, so that you can use it in
|
||||
your own program analysis tools, as well.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#![doc = include_str!("../README.md")]
|
||||
|
||||
use anyhow::{anyhow, Context, Error, Result};
|
||||
use libloading::{Library, Symbol};
|
||||
use once_cell::unsync::OnceCell;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#![doc = include_str!("../README.md")]
|
||||
|
||||
pub mod generate;
|
||||
pub mod highlight;
|
||||
pub mod logger;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# `tree-sitter-highlight`
|
||||
# Tree-sitter Highlight
|
||||
|
||||
[![crates.io badge]][crates.io]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#![doc = include_str!("../README.md")]
|
||||
|
||||
pub mod c_lib;
|
||||
pub mod util;
|
||||
pub use c_lib as c;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# `tree-sitter-tags`
|
||||
# Tree-sitter Tags
|
||||
|
||||
[![crates.io badge]][crates.io]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#![doc = include_str!("../README.md")]
|
||||
|
||||
pub mod c_lib;
|
||||
|
||||
use memchr::memchr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue