mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-04 08:24:43 +01:00
Update docs for v0.3.0 release of C++ api
This commit is contained in:
parent
e7da4859de
commit
f51c34361d
3 changed files with 10 additions and 10 deletions
|
@ -7,11 +7,11 @@ More thorough docs are available at [http://jparyani.github.io/pycapnp/](http://
|
|||
First you need a system-wide installation of the Cap'n Proto C++ library >= 0.3. Follow the [official installation docs](http://kentonv.github.io/capnproto/install.html) or for the lazy:
|
||||
|
||||
```bash
|
||||
wget http://capnproto.org/capnproto-c++-0.3.0-rc5.tar.gz
|
||||
tar xzf capnproto-c++-0.3.0-rc5.tar.gz
|
||||
cd capnproto-c++-0.3.0-rc5
|
||||
curl -O http://capnproto.org/capnproto-c++-0.3.0.tar.gz
|
||||
tar zxf capnproto-c++-0.3.0.tar.gz
|
||||
cd capnproto-c++-0.3.0
|
||||
./configure
|
||||
make -j8 check
|
||||
make -j6 check
|
||||
sudo make install
|
||||
```
|
||||
|
||||
|
|
|
@ -8,11 +8,11 @@ C++ Cap'n Proto Library
|
|||
|
||||
You need to install the C++ Cap'n Proto library first. It requires a C++ compiler with C++11 support, such as GCC 4.7+ or Clang 3.2+. Follow installation docs at `http://kentonv.github.io/capnproto/install.html <http://kentonv.github.io/capnproto/install.html>`_, or if you're feeling lazy, you can run the commands below::
|
||||
|
||||
wget http://capnproto.org/capnproto-c++-0.3.0-rc5.tar.gz
|
||||
tar xzf capnproto-c++-0.3.0-rc5.tar.gz
|
||||
cd capnproto-c++-0.3.0-rc5
|
||||
curl -O http://capnproto.org/capnproto-c++-0.3.0.tar.gz
|
||||
tar zxf capnproto-c++-0.3.0.tar.gz
|
||||
cd capnproto-c++-0.3.0
|
||||
./configure
|
||||
make -j8 check
|
||||
make -j6 check
|
||||
sudo make install
|
||||
|
||||
Pip
|
||||
|
|
|
@ -217,8 +217,8 @@ And similarly for reading::
|
|||
f = open('example.bin')
|
||||
addresses = addressbook.AddressBook.read(f)
|
||||
|
||||
Dictionaries
|
||||
~~~~~~~~~~~~~~
|
||||
Dictionaries (Experimental)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
There is a convenience method for converting Cap'n Proto messages to a dictionary. This works for both Builder and Reader type messages::
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue