Skip to content

Commit

Permalink
Include README in generated rustdoc files.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickt committed Jan 28, 2024
1 parent bf91a2b commit 0b8aede
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/twirp-build/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# twirp-build

The `twirp-build` package is responsible for generating Twirp RPC service definitions from `.proto` files.

For more information, consult the documentation for the main `twirp` package.
2 changes: 2 additions & 0 deletions crates/twirp-build/src/lib.rs
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]

use std::fmt::Write;

/// Generates twirp services for protobuf rpc service definitions.
Expand Down
2 changes: 2 additions & 0 deletions crates/twirp/src/lib.rs
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![doc = include_str!("../../../README.md")]

#[cfg(feature = "client")]
pub mod client;

Expand Down

0 comments on commit 0b8aede

Please sign in to comment.