The Graph Networks Registry Rust Library
Rust types and helpers for working with The Graph Networks Registry.
Documentation available here.
Usage
If you want to always get up-to-date registry, make sure to use the latest version of the crate.
Cargo.toml
:
[]
= "0.6.1"
Reading from a local file
To read the registry from a local file
use NetworksRegistry;
Fetching the latest registry
To fetch the latest compatible registry version from registry.thegraph.com
use NetworksRegistry;
async
Features
fetch
- Enables remote registry fetching functionality using reqwest (enabled by default)
If you don't need to fetch the registry from the network, you can turn off the fetch
feature in your Cargo.toml
:
[]
= { = "0.6.1", = false }