https://github.com/vaci/capnproto-java-rpc rebased on top of capnproto-java master branch
Find a file
2014-05-28 19:30:37 -04:00
compiler/src fix the build 2014-05-28 19:30:37 -04:00
examples/src/main Void is an actual value 2014-05-28 19:17:27 -04:00
project floating point accessors 2014-05-26 16:32:48 -04:00
runtime/src fix the build 2014-05-28 19:30:37 -04:00
.gitignore Add make as a compile task in the generator project, remove capnpc-java binary when sbt clean is run 2014-05-16 13:16:00 -04:00
.travis.yml attempt to fix build on travis 2014-05-24 21:48:55 -04:00
CONTRIBUTORS ah, so that's how you spell it 2014-05-15 23:30:05 -04:00
LICENSE ah, so that's how you spell it 2014-05-15 23:30:05 -04:00
Makefile examples/test depends on makeExamples 2014-05-25 17:34:57 -04:00
README.md will this make the travis thingy clickable? 2014-05-27 21:31:16 -04:00
version.sbt Add SBT as build system, add Java package annotation for generated code 2014-05-15 19:05:20 -04:00

capnproto-java: Cap'n Proto for Java

Build Status

This is an experimental pure Java implementation of Cap'n Proto.

It doesn't do much yet.

getting started

You will need SBT. We recommend this version.

To compile:

$ sbt compile

To read a message:

$ echo '(people = [(id = 123, name = "Alice", email = "alice@example.com", employment = (school = "MIT"))])' \
 | capnp encode examples/src/main/schema/addressbook.capnp AddressBook \
 | java -cp runtime/target/scala-2.11/classes:examples/target/scala-2.11/classes/ \
   org.capnproto.examples.AddressbookMain read

To write a message:

$ java -cp runtime/target/scala-2.11/classes:examples/target/scala-2.11/classes/  \
  org.capnproto.examples.AddressbookMain write \
  | capnp decode examples/src/main/schema/addressbook.capnp AddressBook

To generate IntelliJ project files, do sbt update gen-idea.