feat: use nim-ffi cbindings (#77)

This commit is contained in:
Gabriel Cruz
2026-07-29 08:39:38 -03:00
committed by GitHub
parent 7b4b776b26
commit 78952d5141
27 changed files with 20821 additions and 9127 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
/// | Field | Type | Default | Description |
/// |-------|------|---------|-------------|
/// | `addrs` | `vector<string>` | `["/ip4/127.0.0.1/tcp/0"]` | Listen addresses |
/// | `transport` | `int` | `LIBP2P_TRANSPORT_TCP` | Transport protocol |
/// | `transport` | `TransportType` | `TRANSPORT_TYPE_TCP` | Transport protocol |
/// | `maxConnections` | `int` | `50` | Max total connections |
/// | `maxConnsPerPeer` | `int` | `1` | Max connections per peer |
/// | `mountGossipsub` | `bool` | `true` | Enable GossipSub |
@@ -150,7 +150,7 @@ int main()
///
/// ```cpp
/// // QUIC transport instead of TCP
/// options.transport = LIBP2P_TRANSPORT_QUIC;
/// options.transport = TRANSPORT_TYPE_QUIC;
/// options.addrs = {"/ip4/127.0.0.1/udp/9092/quic-v1"};
///
/// // Listen on multiple addresses