{"id":16110161,"url":"https://github.com/mathieu-lala/rfc-graph","last_synced_at":"2026-01-27T13:32:26.552Z","repository":{"id":37934573,"uuid":"461795839","full_name":"Mathieu-Lala/rfc-graph","owner":"Mathieu-Lala","description":"How the rfc are referencing each other ?","archived":false,"fork":false,"pushed_at":"2022-12-19T14:13:52.000Z","size":186,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-28T07:35:00.981Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mathieu-Lala.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-21T09:45:49.000Z","updated_at":"2022-05-17T11:39:37.000Z","dependencies_parsed_at":"2023-01-29T21:46:40.193Z","dependency_job_id":null,"html_url":"https://github.com/Mathieu-Lala/rfc-graph","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu-Lala%2Frfc-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu-Lala%2Frfc-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu-Lala%2Frfc-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu-Lala%2Frfc-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mathieu-Lala","download_url":"https://codeload.github.com/Mathieu-Lala/rfc-graph/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694893,"owners_count":20980731,"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":[],"created_at":"2024-10-09T19:36:00.270Z","updated_at":"2026-01-27T13:32:26.509Z","avatar_url":"https://github.com/Mathieu-Lala.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RFC Graph\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://crates.io/crates/rfc-graph\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/v/rfc-graph.svg\"\n      alt=\"Crates.io\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://docs.rs/rfc-graph\"\u003e\n    \u003cimg src=\"https://docs.rs/rfc-graph/badge.svg\"\n      alt=\"docs\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\nHow the rfc are referencing each other ?\n\n```rs\nlet (rfcs_linked, status) = rfc_graph::RfcGraph::get(5322, 3).await;\nprintln!(\"{rfcs:?} {status:?}\");\n```\n\n```sh\n$\u003e cargo run -- -h\nrfc-graph 0.1.1\n\nUSAGE:\n    rfc-graph [OPTIONS] --root \u003cROOT\u003e\n\nOPTIONS:\n    -h, --help                             Print help information\n        --recursion-max \u003cRECURSION_MAX\u003e    Number of recursive iteration max [default: 2]\n        --root \u003cROOT\u003e                      Number of the first rfc page in the graph (root)\n    -V, --version                          Print version information\n```\n\nOutput generated:\n\n* `cache.json` : a `HashMap\u003ci32, Vec\u003ci32\u003e\u003e` with key is the rfc source and values are the rfc referenced\n* `input.dot` : a representation of the graph generated following the [dot format](https://graphviz.org/doc/info/lang.html) by [graphviz](https://graphviz.org/)\n* `output.svg` : a svg version of the dot graph\n\n```sh\n$\u003e cargo run -- --root 5322 --recursion-max 1\n```\n\n![rfc 5322 one recursion](docs/5322-level-1.svg)\n\n```sh\n$\u003e cargo run -- --root 5322 --recursion-max 2\n```\n\n![rfc 5322 two recursion](docs/5322-level-2.svg)\n\nThe referencing in the rfcs are exponential, so you **might not** want to run with `--recursion-max 4`\n\n## Color\n\n| Status                            | Color  |\n| --------------------------------- | ------ |\n| Unknown                           | ⬜     |\n| Draft                             | 🟥     |\n| Informational                     | 🟧     |\n| Experimental                      | 🟨     |\n| Best Common Practice              | 🟪     |\n| Proposed Standard                 | 🟦     |\n| Draft Standard (old designation)  | :cyan: |\n| Internet Standard                 | 🟩     |\n| Historic                          | ⬛     |\n| Obsolete                          | 🟫     |\n\nLeaf node status is unknown as the web scraping is not done for them\n\n## Next Features\n\nI would like to add the following features :\n\n* display the title of the rfc\n* improve the graph view (for huge graph readability)\n* render the status of the leaf node\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieu-lala%2Frfc-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathieu-lala%2Frfc-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieu-lala%2Frfc-graph/lists"}