rfc-graph

Crates.iorfc-graph
lib.rsrfc-graph
version0.4.3
sourcesrc
created_at2022-02-21 13:43:48.993132
updated_at2022-12-19 14:13:46.38609
descriptionHow the rfc are referencing each other
homepagehttps://github.com/Mathieu-Lala/rfc-graph
repositoryhttps://github.com/Mathieu-Lala/rfc-graph
max_upload_size
id536456
size320,185
Mathieu Lala (Mathieu-Lala)

documentation

README

RFC Graph

Crates.io docs

How the rfc are referencing each other ?

let (rfcs_linked, status) = rfc_graph::RfcGraph::get(5322, 3).await;
println!("{rfcs:?} {status:?}");
$> cargo run -- -h
rfc-graph 0.1.1

USAGE:
    rfc-graph [OPTIONS] --root <ROOT>

OPTIONS:
    -h, --help                             Print help information
        --recursion-max <RECURSION_MAX>    Number of recursive iteration max [default: 2]
        --root <ROOT>                      Number of the first rfc page in the graph (root)
    -V, --version                          Print version information

Output generated:

  • cache.json : a HashMap<i32, Vec<i32>> with key is the rfc source and values are the rfc referenced
  • input.dot : a representation of the graph generated following the dot format by graphviz
  • output.svg : a svg version of the dot graph
$> cargo run -- --root 5322 --recursion-max 1

rfc 5322 one recursion

$> cargo run -- --root 5322 --recursion-max 2

rfc 5322 two recursion

The referencing in the rfcs are exponential, so you might not want to run with --recursion-max 4

Color

Status Color
Unknown
Draft 🟥
Informational 🟧
Experimental 🟨
Best Common Practice 🟪
Proposed Standard 🟦
Draft Standard (old designation) :cyan:
Internet Standard 🟩
Historic
Obsolete 🟫

Leaf node status is unknown as the web scraping is not done for them

Next Features

I would like to add the following features :

  • display the title of the rfc
  • improve the graph view (for huge graph readability)
  • render the status of the leaf node
Commit count: 149

cargo fmt