Skip to content

Commit

Permalink
style: document what each feature does
Browse files Browse the repository at this point in the history
also add library module comment with that information

re #91
  • Loading branch information
hasezoey committed Oct 29, 2023
1 parent dd44b25 commit 8d0ece0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,22 @@ readme = "README.md"
repository = "https://github.com/Wulf/dsync"
license = "MIT OR Apache-2.0"
keywords = ["diesel", "crud", "database", "codegen", "generation"]
categories = ["command-line-utilities", "development-tools", "development-tools::ffi", "web-programming"]
categories = [
"command-line-utilities",
"development-tools",
"development-tools::ffi",
"web-programming",
]
authors = ["Haris <4259838+Wulf@users.noreply.github.com>"]
edition = "2021"

[features]
default = ["tsync", "backtrace"]
# enable support for tsync (https://github.com/Wulf/tsync)
tsync = []
# enable support for diesel_async (https://github.com/weiznich/diesel_async)
async = []
# enable support for backtraces on errors
backtrace = []

[dependencies]
Expand Down
12 changes: 12 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
//! dsync library
//!
//! The dsync library allows creating a custom binary for dsync
//!
//! ## Features
//!
//! - `async`: enable support for [diesel_async](https://github.com/weiznich/diesel_async)
//! - `tsync`: enable support for [tsync](https://github.com/Wulf/tsync)
//! - `backtrace`: enable attaching backtraces to dsync errors
//!
//! default features: `tsync`, `backtrace`
mod code;
pub mod error;
mod file;
Expand Down

0 comments on commit 8d0ece0

Please sign in to comment.