Skip to content

Commit

Permalink
docs: Crate doc comments (#1168)
Browse files Browse the repository at this point in the history
* doc: Add basic doc comments describing most of the tabby crates

* Apply suggestions from code review

Co-authored-by: Meng Zhang <[email protected]>

---------

Co-authored-by: Meng Zhang <[email protected]>
  • Loading branch information
boxbeam and wsxiaoys authored Jan 7, 2024
1 parent f9dc54a commit 81f46dc
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/llama-cpp-bindings/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Bindings to raw C++ LLaMA implementation. implements the TextGeneration trait and being used in tabby to generate text / code.
mod llama;
mod utils;

Expand Down
2 changes: 2 additions & 0 deletions crates/tabby-common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Common tabby types and utilities.
//! Defines common types and utilities used across multiple tabby subprojects, especially serialization and deserialization targets.
pub mod api;
pub mod config;
pub mod index;
Expand Down
1 change: 1 addition & 0 deletions crates/tabby-download/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Responsible for downloading ML models for use with tabby.
use std::{fs, path::Path};

use aim_downloader::{bar::WrappedBar, https};
Expand Down
1 change: 1 addition & 0 deletions crates/tabby-inference/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Lays out the abstract definition of a text generation model, and utilities for encodings.
pub mod decoding;

use async_trait::async_trait;
Expand Down
2 changes: 2 additions & 0 deletions crates/tabby-scheduler/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Responsible for scheduling all of the background jobs for tabby.
//! Includes syncing respositories and updating indices.
mod dataset;
mod index;
mod repository;
Expand Down
1 change: 1 addition & 0 deletions crates/tabby/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Core tabby functionality. Defines primary API and CLI behavior.
mod routes;
mod services;

Expand Down
2 changes: 2 additions & 0 deletions ee/tabby-webserver/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Defines behavior for the tabby webserver which allows users to interact with enterprise features.
//! Using the web interface (e.g chat playground) requires using this module with the `--webserver` flag on the command line.
mod handler;
mod hub;
mod oauth;
Expand Down

0 comments on commit 81f46dc

Please sign in to comment.