{"id":23391374,"url":"https://github.com/tamaroning/src-graph","last_synced_at":"2025-04-11T09:58:58.053Z","repository":{"id":62444870,"uuid":"507319213","full_name":"tamaroning/src-graph","owner":"tamaroning","description":"cargo subcommand which shows dependencies between user defined data types","archived":false,"fork":false,"pushed_at":"2022-06-26T10:43:15.000Z","size":85,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T06:51:12.068Z","etag":null,"topics":["rust-lang"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/src-graph","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tamaroning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-25T13:32:12.000Z","updated_at":"2023-05-09T10:32:16.000Z","dependencies_parsed_at":"2022-11-01T22:31:46.520Z","dependency_job_id":null,"html_url":"https://github.com/tamaroning/src-graph","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamaroning%2Fsrc-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamaroning%2Fsrc-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamaroning%2Fsrc-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamaroning%2Fsrc-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tamaroning","download_url":"https://codeload.github.com/tamaroning/src-graph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248305843,"owners_count":21081575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust-lang"],"created_at":"2024-12-22T04:16:01.309Z","updated_at":"2025-04-11T09:58:58.033Z","avatar_url":"https://github.com/tamaroning.png","language":"Rust","readme":"# src-graph\nCargo subcommand which shows user-defined data type dependencies.\n\nIf you found a bug, please open an issue.\n\n![screenshot1](screenshot1.png)\n\n# Requirement\n- Cargo\n- Graphviz (for generating an image)\n\n# Install\nFrom crates.io\n```\n$ cargo install src-graph\n```\n\nFrom source code\n```\n$ git clone https://github.com/tamaroning/src-graph.git\n$ cd src-graph\n$ cagro install --path .\n```\n\n# Usage\nRun in your rust project\n```\n$ cargo src-graph\n```\n\nthen generate an image from the dot file\n```\n$ dot -Tpng -o ./.src_graph/adt_deps.png ./.src_graph/adt_deps.dot\n```\n\n# Example\nThe code below\n```rust\nuse std::collections::HashMap;\n\nstruct S\u003cT\u003e {\n    a: Vec\u003cT\u003e,\n    b: HashMap\u003cT, S2\u003e,\n    c: mod_A::S3,\n}\n\nstruct S2 {\n    a: mod_A::S3,\n}\n\nmod mod_A {\n    pub struct S3 {\n        a: Box\u003ccrate::S\u003c()\u003e\u003e,\n    }\n}\n```\n\ngenerates this graph:\n![example1](example1.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamaroning%2Fsrc-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftamaroning%2Fsrc-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamaroning%2Fsrc-graph/lists"}