31 releases

✓ Uses Rust 2018 edition

0.0.42 Mar 10, 2020
0.0.38 Feb 13, 2020
0.0.26 Dec 31, 2019
0.0.22 Nov 13, 2019
0.0.9 Jul 24, 2019

#457 in Network programming

Download history 513/week @ 2020-02-08 175/week @ 2020-02-15 307/week @ 2020-02-22 246/week @ 2020-02-29 377/week @ 2020-03-07 154/week @ 2020-03-14 136/week @ 2020-03-21 58/week @ 2020-03-28 92/week @ 2020-04-04 244/week @ 2020-04-11 51/week @ 2020-04-18 14/week @ 2020-04-25 10/week @ 2020-05-02 67/week @ 2020-05-09 17/week @ 2020-05-16 85/week @ 2020-05-23

915 downloads per month
Used in 7 crates (via lib3h)

Apache-2.0

245KB
5K SLoC

lib3h_p2p_protocol

Project Chat

Twitter Follow

License: Apache-2.0

Overview

Lib3h Protocol definition for inter-node p2p communication.

There are a lot of options for wire protocol definition tooling. In a lot of ways Protocol Buffers through the prost crate is more ergonomic to work with as it gives you standard rust structures and enums that are just annotated to work with the encoding / decoding library.

We've chosen to use Cap'n Proto through the capnp crate. The encoding / decoding is more memory efficient as it works directly with the wire buffer at the expense of having to navigate the data structure hierarchy through accessors.

The aggregate p2p protocol is split into 3 separate protocol schema files:

Contribute

Holochain is an open source project. We welcome all sorts of participation and are actively working on increasing surface area to accept it. Please see our contributing guidelines for our general practices and protocols on participating in the community.

License

License: Apache-2.0

Copyright (C) 2019, Holochain Foundation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Dependencies

~2MB
~46K SLoC