https://github.com/vaci/capnproto-java-rpc rebased on top of capnproto-java master branch
Find a file
2014-05-26 11:05:40 -04:00
compiler/src outerClassname 2014-05-26 11:05:40 -04:00
examples/src/main outerClassname 2014-05-26 11:05:40 -04:00
project start trying to get EncodingTest configured 2014-05-25 18:42:26 -04:00
runtime/src start trying to get EncodingTest configured 2014-05-25 18:42:26 -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 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.