https://github.com/phxql/capnp-java-test
A small example project to work with Cap'n proto and Java.
https://github.com/phxql/capnp-java-test
Last synced: 11 months ago
JSON representation
A small example project to work with Cap'n proto and Java.
- Host: GitHub
- URL: https://github.com/phxql/capnp-java-test
- Owner: phxql
- Created: 2018-10-14T12:14:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-14T12:20:04.000Z (almost 8 years ago)
- Last Synced: 2025-02-25T18:47:52.446Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## What is this?
A small example project to work with [Cap'n proto](https://capnproto.org/index.html) and Java.
## Usage
1. Install cap'n proto
1. On Fedora you can `dnf install capnproto capnproto-devel`
1. Install [cap'n proto for Java](https://dwrensha.github.io/capnproto-java/index.html)
1. Put the `capnpc-java` binary somewhere on your `$PATH`
1. The schema is stored in `src/main/capnp/foo.capnp`
1. Execute the `build.sh` to compile the schema to Java files
1. The generated java file is stored in `src/main/java/de/mkammerer/capnp/test/Capnp.java`
1. See `Main` class for reading / writing
## License
[CC0](https://creativecommons.org/publicdomain/zero/1.0/)