Skip to content
1 viewer

rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off

cre8-util-legal-text crates cargo crate

Statute text as data: the cre8.legal.statute-section.v1 contract, its canonical hash form, and the structural parser for statute text.

crates/cre8-util-legal-text · level 1 · 8,506 lines (6,902 code) · 18 files · 301 fns (95 tests) · cyclomatic Σ 1,331

1workspace deps
2direct dependents
68transitive dependents
3calls out
52calls in
324call-graph weight
0.0%exact crystals

Neighbourhood

Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.

Files

lowhigh

File call graph

Resolved calls between this crate's files, callers left of callees.

2 calls97 calls2 calls2 calls1 calls20 calls11 calls1 calls1 calls4 calls18 calls2 calls1 calls2 calls2 calls2 calls1 calls12 calls1 calls7 calls3 calls1 calls2 calls6 calls1 calls79 calls2 calls1 calls2 calls2 callsscan.rsscancrates/cre8-util-legal-text/src/scan.rs · 240 call sites in/outcitation.rscitationcrates/cre8-util-legal-text/src/citation.rs · 101 call sites in/outpenalty.rspenaltycrates/cre8-util-legal-text/src/penalty.rs · 90 call sites in/outparse.rsparsecrates/cre8-util-legal-text/src/parse.rs · 33 call sites in/outnumbers.rsnumberscrates/cre8-util-legal-text/src/numbers.rs · 26 call sites in/outcues.rscuescrates/cre8-util-legal-text/src/cues.rs · 22 call sites in/outstructure.rsstructurecrates/cre8-util-legal-text/src/structure.rs · 16 call sites in/outdefinitions.rsdefinitionscrates/cre8-util-legal-text/src/definitions.rs · 13 call sites in/outparsed.rsparsedcrates/cre8-util-legal-text/src/parsed.rs · 11 call sites in/outlocal_codes.rslocal_codescrates/cre8-util-legal-text/src/local_codes.rs · 5 call sites in/outcanonical.rscanonicalcrates/cre8-util-legal-text/src/canonical.rs · 4 call sites in/outcodes.rscodescrates/cre8-util-legal-text/src/codes.rs · 4 call sites in/outrobots.rsrobotscrates/cre8-util-legal-text/src/robots.rs · 4 call sites in/outsection.rssectioncrates/cre8-util-legal-text/src/section.rs · 3 call sites in/outprofile.rsprofilecrates/cre8-util-legal-text/src/profile.rs · 2 call sites in/outhtml_reader.rshtml_readercrates/cre8-util-legal-text/src/html_reader.rs · 1 call sites in/outlocal_registry.rslocal_registrycrates/cre8-util-legal-text/src/local_registry.rs · 1 call sites in/out

Heaviest functions

By call-graph weight (PageRank; 1.0 is the average function). 301 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
Stream::ssrc/scan.rs:92method3136015.3
Stream::issrc/scan.rs:109method321719.1
canonical_textsrc/canonical.rs:24fn101908.9
content_sha256src/canonical.rs:36fn41616.9
path_labelsrc/parsed.rs:77fn311006.7
StatuteSection::newsrc/section.rs:119method2711015.6
Stream::seqsrc/scan.rs:129method832114.8
Stream::newsrc/scan.rs:50method3613804.4
section_idsrc/section.rs:25fn31703.8
Stream::kindsrc/scan.rs:96method31303.7
parse_profilessrc/profile.rs:253fn123903.1
Stream::is_anysrc/scan.rs:114method311912.8
citessrc/citation.rs:720fn121532.6
to_romansrc/structure.rs:237fn113102.6
code_idsrc/section.rs:30fn31702.5
Ladder::parenthesizedsrc/structure.rs:78method141402.5
roman_valuesrc/structure.rs:215fn218112.5
Stream::sentencessrc/scan.rs:184method2211652.4
robots_pattern_matchessrc/robots.rs:283fn237102.4
Stream::adjacentsrc/scan.rs:139method62802.4
label_candidatessrc/structure.rs:252fn4318412.3
parse_formsrc/structure.rs:151fn3414202.3
RobotsRules::is_allowedsrc/robots.rs:199method1981012.3
csv_recordssrc/local_registry.rs:320fn3013302.3
Ladder::candidatessrc/structure.rs:141method61422.2
readsrc/penalty.rs:954fn151422.2
Tree::buildsrc/structure.rs:450method9420352.1
pathssrc/structure.rs:820fn311012.1
build_local_registrysrc/local_registry.rs:91fn234152
rowsrc/local_codes.rs:1157fn141202
clean_headingsrc/html_reader.rs:361fn41302
containersrc/citation.rs:59fn31501.9
Ladder::from_profilesrc/structure.rs:95method133311.9
expand_templatesrc/html_reader.rs:180fn265401.8
state_cousub_keysrc/local_registry.rs:249fn32301.8
RobotsRules::parsesrc/robots.rs:87method8721941.8
ordinances_bodysrc/local_codes.rs:312fn1148341.8
Stream::is_numsrc/scan.rs:104method311111.8
registrysrc/local_registry.rs:364fn101311.8
Stream::is_wordsrc/scan.rs:100method31511.7

Outside the workspace

serde serde_json sha2