cargo-modules 0.26.0

A cargo plugin for showing a tree-like overview of a crate's modules.
Documentation
---
source: tests/dependencies.rs
expression: output
---
COMMAND:
dependencies

STDERR:

STDOUT:
digraph {

    graph [
        label="function_outputs",
        labelloc=t,

        pad=0.4,

        // Consider rendering the graph using a different layout algorithm, such as:
        // [dot, neato, twopi, circo, fdp, sfdp]
        layout=neato,
        overlap=false,
        splines="line",
        rankdir=LR,

        fontname="Helvetica", 
        fontsize="36",
    ];

    node [
        fontname="monospace",
        fontsize="10",
        shape="record",
        style="filled",
    ];

    edge [
        fontname="monospace",
        fontsize="10",
    ];

    "function_outputs" [label="crate|function_outputs", fillcolor="#5397c8"]; // "crate" node
    "function_outputs::Dummy" [label="pub(crate) struct|function_outputs::Dummy", fillcolor="#f8c04c"]; // "struct" node
    "function_outputs::Dummy::method_output" [label="pub(crate) fn|function_outputs::Dummy::method_output", fillcolor="#f8c04c"]; // "fn" node
    "function_outputs::GenericTargetEnum" [label="pub(crate) enum|function_outputs::GenericTargetEnum", fillcolor="#f8c04c"]; // "enum" node
    "function_outputs::GenericTargetEnum::clone" [label="pub fn|function_outputs::GenericTargetEnum::clone", fillcolor="#81c169"]; // "fn" node
    "function_outputs::GenericTargetStruct" [label="pub(crate) struct|function_outputs::GenericTargetStruct", fillcolor="#f8c04c"]; // "struct" node
    "function_outputs::GenericTargetStruct::clone" [label="pub fn|function_outputs::GenericTargetStruct::clone", fillcolor="#81c169"]; // "fn" node
    "function_outputs::GenericTargetUnion" [label="pub(crate) union|function_outputs::GenericTargetUnion", fillcolor="#f8c04c"]; // "union" node
    "function_outputs::GenericTargetUnion::clone" [label="pub fn|function_outputs::GenericTargetUnion::clone", fillcolor="#81c169"]; // "fn" node
    "function_outputs::GenericTypeAlias" [label="pub(crate) type|function_outputs::GenericTypeAlias", fillcolor="#f8c04c"]; // "type" node
    "function_outputs::TargetEnum" [label="pub(crate) enum|function_outputs::TargetEnum", fillcolor="#f8c04c"]; // "enum" node
    "function_outputs::TargetEnum::clone" [label="pub fn|function_outputs::TargetEnum::clone", fillcolor="#81c169"]; // "fn" node
    "function_outputs::TargetStruct" [label="pub(crate) struct|function_outputs::TargetStruct", fillcolor="#f8c04c"]; // "struct" node
    "function_outputs::TargetStruct::clone" [label="pub fn|function_outputs::TargetStruct::clone", fillcolor="#81c169"]; // "fn" node
    "function_outputs::TargetTrait" [label="pub(crate) trait|function_outputs::TargetTrait", fillcolor="#f8c04c"]; // "trait" node
    "function_outputs::TargetUnion" [label="pub(crate) union|function_outputs::TargetUnion", fillcolor="#f8c04c"]; // "union" node
    "function_outputs::TargetUnion::clone" [label="pub fn|function_outputs::TargetUnion::clone", fillcolor="#81c169"]; // "fn" node
    "function_outputs::TypeAlias" [label="pub(crate) type|function_outputs::TypeAlias", fillcolor="#f8c04c"]; // "type" node
    "function_outputs::function" [label="pub(crate) fn|function_outputs::function", fillcolor="#f8c04c"]; // "fn" node
    "function_outputs::function_output" [label="pub(crate) fn|function_outputs::function_output", fillcolor="#f8c04c"]; // "fn" node
    "function_outputs::generic_function" [label="pub(crate) fn|function_outputs::generic_function", fillcolor="#f8c04c"]; // "fn" node

    "function_outputs" -> "function_outputs::Dummy" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs" -> "function_outputs::GenericTargetEnum" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs" -> "function_outputs::GenericTargetStruct" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs" -> "function_outputs::GenericTargetUnion" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs" -> "function_outputs::GenericTypeAlias" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs" -> "function_outputs::TargetEnum" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs" -> "function_outputs::TargetStruct" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs" -> "function_outputs::TargetTrait" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs" -> "function_outputs::TargetUnion" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs" -> "function_outputs::TypeAlias" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs" -> "function_outputs::function" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs" -> "function_outputs::function_output" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs" -> "function_outputs::generic_function" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs::Dummy" -> "function_outputs::Dummy::method_output" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs::Dummy::method_output" -> "function_outputs::GenericTargetEnum" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::Dummy::method_output" -> "function_outputs::GenericTargetStruct" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::Dummy::method_output" -> "function_outputs::GenericTargetUnion" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::Dummy::method_output" -> "function_outputs::TargetEnum" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::Dummy::method_output" -> "function_outputs::TargetStruct" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::Dummy::method_output" -> "function_outputs::TargetTrait" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::Dummy::method_output" -> "function_outputs::TargetUnion" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::GenericTargetEnum" -> "function_outputs::GenericTargetEnum::clone" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs::GenericTargetEnum::clone" -> "function_outputs::GenericTargetEnum" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::GenericTargetStruct" -> "function_outputs::GenericTargetStruct::clone" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs::GenericTargetStruct::clone" -> "function_outputs::GenericTargetStruct" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::GenericTargetUnion" -> "function_outputs::GenericTargetUnion::clone" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs::GenericTargetUnion::clone" -> "function_outputs::GenericTargetUnion" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::TargetEnum" -> "function_outputs::TargetEnum::clone" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs::TargetEnum::clone" -> "function_outputs::TargetEnum" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::TargetStruct" -> "function_outputs::TargetStruct::clone" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs::TargetStruct::clone" -> "function_outputs::TargetStruct" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::TargetUnion" -> "function_outputs::TargetUnion::clone" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge
    "function_outputs::TargetUnion::clone" -> "function_outputs::TargetUnion" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::TypeAlias" -> "function_outputs::TargetStruct" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::function" -> "function_outputs::TargetStruct" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::function_output" -> "function_outputs::GenericTargetEnum" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::function_output" -> "function_outputs::GenericTargetStruct" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::function_output" -> "function_outputs::GenericTargetUnion" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::function_output" -> "function_outputs::TargetEnum" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::function_output" -> "function_outputs::TargetStruct" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::function_output" -> "function_outputs::TargetTrait" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge
    "function_outputs::function_output" -> "function_outputs::TargetUnion" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge

}