Version 1.0.0 (#785)
This commit is contained in:
parent
c9c2f6acdb
commit
a3e9d1ed80
30
README.md
30
README.md
|
@ -98,20 +98,31 @@ nim-libp2p is used by:
|
||||||
- [nim-codex](https://github.com/status-im/nim-codex), a decentralized storage application
|
- [nim-codex](https://github.com/status-im/nim-codex), a decentralized storage application
|
||||||
- (open a pull request if you want to be included here)
|
- (open a pull request if you want to be included here)
|
||||||
|
|
||||||
## Development
|
## Stability
|
||||||
**Clone and Install dependencies:**
|
nim-libp2p has been used in production for over a year in high-stake scenarios, so its core is considered stable.
|
||||||
|
Some modules are more recent and less stable.
|
||||||
|
|
||||||
|
The versioning follows [semver](https://semver.org/), with some additions:
|
||||||
|
- Some of libp2p procedures are marked as `.public.`, they will remain compatible during each `MAJOR` version
|
||||||
|
- The rest of the procedures are considered internal, and can change at any `MINOR` version (but remain compatible for each new `PATCH`)
|
||||||
|
|
||||||
|
We aim to be compatible at all time with at least 2 Nim `MINOR` versions, currently `1.2 & 1.6`
|
||||||
|
|
||||||
|
## Development
|
||||||
|
Clone and Install dependencies:
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/status-im/nim-libp2p
|
git clone https://github.com/status-im/nim-libp2p
|
||||||
cd nim-libp2p
|
cd nim-libp2p
|
||||||
nimble install
|
nimble install -dy
|
||||||
```
|
```
|
||||||
|
|
||||||
**Run unit tests**
|
Run unit tests:
|
||||||
```sh
|
```sh
|
||||||
# run all the unit tests
|
# run all the unit tests
|
||||||
nimble test
|
nimble test
|
||||||
```
|
```
|
||||||
|
This requires the go daemon to be available. To only run native tests, use `nimble testnative`.
|
||||||
|
Or use `nimble tasks` to show all available tasks.
|
||||||
|
|
||||||
### Contribute
|
### Contribute
|
||||||
|
|
||||||
|
@ -125,22 +136,19 @@ The code follows the [Status Nim Style Guide](https://status-im.github.io/nim-st
|
||||||
### Core Developers
|
### Core Developers
|
||||||
[@cheatfate](https://github.com/cheatfate), [Dmitriy Ryajov](https://github.com/dryajov), [Tanguy](https://github.com/Menduist), [Zahary Karadjov](https://github.com/zah)
|
[@cheatfate](https://github.com/cheatfate), [Dmitriy Ryajov](https://github.com/dryajov), [Tanguy](https://github.com/Menduist), [Zahary Karadjov](https://github.com/zah)
|
||||||
|
|
||||||
### Tips and tricks
|
### Compile time flags
|
||||||
|
|
||||||
**enable expensive metrics:**
|
|
||||||
|
|
||||||
|
Enable expensive metrics (ie, metrics with per-peer cardinality):
|
||||||
```bash
|
```bash
|
||||||
nim c -d:libp2p_expensive_metrics some_file.nim
|
nim c -d:libp2p_expensive_metrics some_file.nim
|
||||||
```
|
```
|
||||||
|
|
||||||
**use identify metrics**
|
Set list of known libp2p agents for metrics:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nim c -d:libp2p_agents_metrics -d:KnownLibP2PAgents=nimbus,lighthouse,lodestar,prysm,teku some_file.nim
|
nim c -d:libp2p_agents_metrics -d:KnownLibP2PAgents=nimbus,lighthouse,lodestar,prysm,teku some_file.nim
|
||||||
```
|
```
|
||||||
|
|
||||||
**specify gossipsub specific topics to measure**
|
Specify gossipsub specific topics to measure in the metrics:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nim c -d:KnownLibP2PTopics=topic1,topic2,topic3 some_file.nim
|
nim c -d:KnownLibP2PTopics=topic1,topic2,topic3 some_file.nim
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
mode = ScriptMode.Verbose
|
mode = ScriptMode.Verbose
|
||||||
|
|
||||||
packageName = "libp2p"
|
packageName = "libp2p"
|
||||||
version = "0.0.2"
|
version = "1.0.0"
|
||||||
author = "Status Research & Development GmbH"
|
author = "Status Research & Development GmbH"
|
||||||
description = "LibP2P implementation"
|
description = "LibP2P implementation"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
Loading…
Reference in New Issue