turbopack/crates/turbo-static/readme.md
Leverages rust-analyzer to build a complete view into the static dependency graph for your turbo tasks project.
This uses an in memory persisted database to cache rust-analyzer queries.
To reset the cache, pass the --reindex flag. Running will produce a
graph.cypherl file which can be loaded into any cypher-compatible database.
# pass in the root folders you want to analyze. the system will recursively
# parse all rust code looking for turbo tasks functions
cargo run --release -- ../../../turbo ../../../next.js
# now you can load graph.cypherl into your database of choice, such as neo4j
docker run \
--publish=7474:7474 --publish=7687:7687 \
--volume=$HOME/neo4j/data:/data \
neo4j