Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alcaprar/rust-deps-graph
https://github.com/alcaprar/rust-deps-graph
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/alcaprar/rust-deps-graph
- Owner: alcaprar
- License: gpl-3.0
- Created: 2023-10-02T14:20:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-03T08:06:39.000Z (11 months ago)
- Last Synced: 2024-04-14T09:28:10.815Z (10 months ago)
- Language: Rust
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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;
```