Skip to content

Commit

Permalink
generating all files during build
Browse files Browse the repository at this point in the history
  • Loading branch information
mikea committed Dec 11, 2024
1 parent 82ac348 commit 1d89b35
Show file tree
Hide file tree
Showing 28 changed files with 36 additions and 32,344 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[workspace]
members = [
"recapn",
"recapn-sys",
"recapnc",
"recapn-channel",
"recapn-rpc",
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ work.r#type().set(person::phone_number::Type::Work);
recapn::io::write_message_packed(target, &builder.segments()).unwrap();
```

# Dependencies

- `capnpc` version 1.x should be installed on the system.

# Getting started

Add `recapn` to your crate dependencies.
Expand Down
3 changes: 3 additions & 0 deletions recapn-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ tokio = { version = "1.35", default-features = false, features = ["rt", "macros"
pin-project = "1.1"
hashbrown = "0.14"

[build-dependencies]
recapnc = { path = "../recapnc" }

[lints]
workspace = true
6 changes: 6 additions & 0 deletions recapn-rpc/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fn main() {
recapnc::CapnpCommand::new()
.src_prefix("schemas")
.file("schemas/rpc.capnp")
.write_to_out_dir();
}
File renamed without changes.
2 changes: 1 addition & 1 deletion recapn-rpc/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::chan::{
RpcChannel, RpcResults, SetPipeline,
};
use crate::client::Client;
use crate::gen::capnp_rpc_capnp as rpc_capnp;
use crate::gen::rpc_capnp;
use crate::pipeline::PipelineOp;
use crate::table::{CapTable, Table};
use crate::{Error, ErrorKind};
Expand Down
Loading

0 comments on commit 1d89b35

Please sign in to comment.