https://github.com/vaci/capnproto-java-rpc rebased on top of capnproto-java master branch
Find a file
2014-05-24 17:53:07 -04:00
compiler/src/main/cpp get group builder 2014-05-24 10:45:55 -04:00
examples/src/main update readme 2014-05-24 15:14:44 -04:00
project Remove generator module and replace with compiler and runtime modules 2014-05-19 08:37:13 -04:00
runtime/src/main/java/org/capnproto it works 2014-05-24 15:09:59 -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 oops 2014-05-15 23:08:58 -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 Remove generator module and replace with compiler and runtime modules 2014-05-19 08:37:13 -04:00
README.md remove brackets 2014-05-24 17:53:07 -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.