Skip to main content

git_bot_feedback/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(docsrs, feature(doc_cfg))]
3#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, missing_docs)]
4// I wish there was a way to just disable this for the README,
5// but it has to applied to the whole crate because of the `#!`
6// prefix in `#![doc = include_str!()]`.
7#![allow(
8    clippy::doc_lazy_continuation,
9    reason = "false positive for list in README.md (which renders as expected)"
10)]
11
12pub mod client;
13pub use client::{RestApiClient, RestApiRateLimitHeaders};
14pub mod error;
15pub use error::RestClientError;
16mod comments;
17pub use comments::{
18    review_comments::{ReviewAction, ReviewComment, ReviewOptions},
19    thread_comments::{CommentKind, CommentPolicy, ThreadCommentOptions},
20};
21mod output_variable;
22pub use output_variable::OutputVariable;
23mod file_annotations;
24pub use file_annotations::{AnnotationLevel, FileAnnotation};
25
26#[cfg(feature = "file-changes")]
27mod git_diff;
28#[cfg(feature = "file-changes")]
29pub use git_diff::{DiffHunkHeader, parse_diff};
30#[cfg(feature = "file-changes")]
31mod file_utils;
32#[cfg(feature = "file-changes")]
33pub use file_utils::{FileDiffLines, LinesChangedOnly, file_filter::FileFilter};
34
35// Re-export dependencies for users of optional feature
36#[cfg(feature = "file-changes")]
37#[cfg_attr(docsrs, doc(cfg(feature = "file-changes")))]
38pub use fast_glob;
39#[cfg(feature = "file-changes")]
40#[cfg_attr(docsrs, doc(cfg(feature = "file-changes")))]
41pub use regex;