diff --git a/capnpc/src/lib.rs b/capnpc/src/lib.rs index db1003de0..bd00a97ee 100644 --- a/capnpc/src/lib.rs +++ b/capnpc/src/lib.rs @@ -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 @@ -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