capnproto-java-rpc/README.md

18 lines
679 B
Markdown
Raw Normal View History

2014-05-11 14:50:00 +00:00
# capnproto-java: Cap'n Proto for Java
2014-05-17 02:37:25 +00:00
This is an experimental pure Java implementation of [Cap'n Proto](http://capnproto.org).
2014-05-11 14:50:00 +00:00
2014-05-17 02:37:25 +00:00
It doesn't do much yet.
2014-05-11 18:15:15 +00:00
2014-05-17 02:37:25 +00:00
## getting started
2014-05-17 02:37:25 +00:00
You will need [SBT](http://scala-sbt.org). We recommend [this version](https://github.com/paulp/sbt-extras).
2014-05-16 02:53:49 +00:00
```
2014-05-17 02:37:25 +00:00
$ sbt compile
2014-05-16 02:53:49 +00:00
$ echo '(people = [(id = 123, name = "Alice", email = "alice@example.com", employment = (school = "MIT"))])' | capnp encode examples/src/main/schema/addressbook.capnp AddressBook | java -cp generator/target/scala-2.11/classes:examples/target/scala-2.11/classes/ org.capnproto.examples.AddressbookMain read
2014-05-17 02:37:25 +00:00
```
To generate IntelliJ project files, do `sbt update gen-idea`.