doc: Include README as top-level module documentation for all crates

This commit is contained in:
Andrew Hlynskyi 2023-08-28 21:16:02 +03:00
parent bdc0e44d45
commit 0862921537
9 changed files with 17 additions and 7 deletions

View file

@ -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.

View 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};

View file

@ -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.

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
use anyhow::{anyhow, Context, Error, Result};
use libloading::{Library, Symbol};
use once_cell::unsync::OnceCell;

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
pub mod generate;
pub mod highlight;
pub mod logger;

View file

@ -1,4 +1,4 @@
# `tree-sitter-highlight`
# Tree-sitter Highlight
[![crates.io badge]][crates.io]

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
pub mod c_lib;
pub mod util;
pub use c_lib as c;

View file

@ -1,4 +1,4 @@
# `tree-sitter-tags`
# Tree-sitter Tags
[![crates.io badge]][crates.io]

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
pub mod c_lib;
use memchr::memchr;