-
-
Save o314/cc907f86a9a41884465bbd67a99b66be to your computer and use it in GitHub Desktop.
Write dependencies in Julia's stdlib using DOT format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Pkg | |
import Pkg.TOML | |
const STDLIB_DIR = "/home/rs/opt/julia-1.0.2/share/julia/stdlib/v1.0" | |
const STDLIBS = readdir(STDLIB_DIR) | |
println("digraph stdlib {") | |
for (i, stdlib) in enumerate(STDLIBS) | |
proj = Pkg.TOML.parsefile(joinpath(STDLIB_DIR, stdlib, "Project.toml")) | |
if haskey(proj, "deps") | |
for (stdlib_dep, uuid) in proj["deps"] | |
println(stdlib, " -> ", stdlib_dep) | |
end | |
end | |
end | |
println("}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment