mirror of
https://github.com/bspeice/capnp_cookbook_2
synced 2024-12-03 05:08:11 -05:00
Initial commit, still needs actual main.rs code
This commit is contained in:
commit
d2d09dd976
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/target/
|
||||
**/*.rs.bk
|
33
Cargo.lock
generated
Normal file
33
Cargo.lock
generated
Normal file
@ -0,0 +1,33 @@
|
||||
[[package]]
|
||||
name = "byteorder"
|
||||
version = "1.2.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "capnp"
|
||||
version = "0.8.14"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "capnp_cookbook_1"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"capnp 0.8.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"capnpc 0.8.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "capnpc"
|
||||
version = "0.8.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"capnp 0.8.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[metadata]
|
||||
"checksum byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "652805b7e73fada9d85e9a6682a4abd490cb52d96aeecc12e33a0de34dfd0d23"
|
||||
"checksum capnp 0.8.14 (registry+https://github.com/rust-lang/crates.io-index)" = "e5f3355379315b02a7c2259c58c769901a84eb0b747786c81e9dd4b7f1295d02"
|
||||
"checksum capnpc 0.8.8 (registry+https://github.com/rust-lang/crates.io-index)" = "932ae6d94484a79afd5d68559253848e93b19bac518790150bce65403bcd7ecd"
|
10
Cargo.toml
Normal file
10
Cargo.toml
Normal file
@ -0,0 +1,10 @@
|
||||
[package]
|
||||
name = "capnp_cookbook_1"
|
||||
version = "0.1.0"
|
||||
authors = ["Bradlee Speice <bspeice@kcg.com>"]
|
||||
|
||||
[build-dependencies]
|
||||
capnpc = "0.8"
|
||||
|
||||
[dependencies]
|
||||
capnp = "0.8"
|
8
build.rs
Normal file
8
build.rs
Normal file
@ -0,0 +1,8 @@
|
||||
extern crate capnpc;
|
||||
|
||||
fn main() {
|
||||
::capnpc::CompilerCommand::new()
|
||||
.src_prefix("schema")
|
||||
.file("schema/point.capnp")
|
||||
.run().expect("compiling schema");
|
||||
}
|
6
schema/point.capnp
Normal file
6
schema/point.capnp
Normal file
@ -0,0 +1,6 @@
|
||||
@0xab555145c708dad2;
|
||||
|
||||
struct Point {
|
||||
x @0 :Int32;
|
||||
y @1 :Int32;
|
||||
}
|
3
src/main.rs
Normal file
3
src/main.rs
Normal file
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
Loading…
Reference in New Issue
Block a user