Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alcaprar/rust-deps-graph


https://github.com/alcaprar/rust-deps-graph

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# Rust dependency graph for GitHub organizations

This

## How to use this script

```bash
# Start neo4j
./scripts/start_neo4j.rs

# Run the script
# Beware it can take a lot :)
cargo run -- --github-token GITHUB_TOKEN --organization TrueLayer
```

## How to query the results

Show all nodes:
```neo4j
MATCH (n) OPTIONAL MATCH (n)-[r]-() RETURN n, r;
```

Find all users of a certain package:
```
MATCH (n:Package {name:'tracing'})<-[:Dependency]-(user) RETURN n, user;
```

Find all users of a certain package and of a certain version:
```
MATCH (n:Package {name:'tracing'})<-[:Dependency{version:'0.1.129'}]-(user) RETURN n, user;
```

Show the graph of all internal crates and their usage:
```
MATCH (n:Package)<-[:Dependency{registry:'truelayer-rustlayer'}]-(user) RETURN n, user;
```