Skip to content

Commit

Permalink
capnpc: update documentation
Browse files Browse the repository at this point in the history
The generated files seem to be named <source>_capnp.rs.
  • Loading branch information
tamird authored and dwrensha committed Aug 11, 2023
1 parent dd9c072 commit a4731f9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions capnpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,6 @@
//! capnpc = "0.18"
//! ```
//!
//! In your lib.rs:
//!
//! ```ignore
//! mod foo_schema {
//! include!(concat!(env!("OUT_DIR"), "/schema_foo.rs"));
//! }
//!
//! mod bar_schema {
//! include!(concat!(env!("OUT_DIR"), "/schema_bar.rs"));
//! }
//! ```
//!
//! In your build.rs:
//!
//! ```ignore
Expand All @@ -61,6 +49,18 @@
//! }
//! ```
//!
//! In your lib.rs:
//!
//! ```ignore
//! mod foo_schema {
//! include!(concat!(env!("OUT_DIR"), "/foo_capnp.rs"));
//! }
//!
//! mod bar_schema {
//! include!(concat!(env!("OUT_DIR"), "/bar_capnp.rs"));
//! }
//! ```
//!
//! This will be equivalent to executing the shell command
//!
//! ```ignore
Expand Down

0 comments on commit a4731f9

Please sign in to comment.