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-media-print crates cargo crate

print.piece.v1: one declarative spec for printed and on-screen marketing pieces (postcards, flyers, rack cards, business cards, door hangers, gift certificates, posters, social and ad sizes). It binds a business's facts and brand, lays the piece out with real font metrics, refuses overflow, unsafe-area text and mail keep-out zones, and renders the same layout to HTML (for print-and-mail providers, email and web), a PNG proof, and a print PDF with bleed and trim boxes. Pure: no runtime, no network.

crates/cre8-media-print · level 2 · 3,387 lines (2,859 code) · 13 files · 142 fns (34 tests) · cyclomatic Σ 467

1workspace deps
1direct dependents
9transitive dependents
15calls out
69calls in
137call-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.

Heaviest functions

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

functionkindlinescyclomaticcallerscalleesweightcrystal
Rgba::alphasrc/color.rs:18method31203.8
templatesrc/templates.rs:53fn712723.7
Raster::blendsrc/raster.rs:75method157513.7
layoutsrc/layout.rs:142fn2186434143.6
Bindings::with_docsrc/bind.rs:49method41903.2
PieceSpec::from_jsonsrc/spec.rs:247method72503.2
Raster::fill_rect_pxsrc/raster.rs:103method165723.1
Raster::spansrc/raster.rs:92method91302.6
with_business_defaultssrc/templates.rs:65fn328322.2
bindingssrc/tests.rs:43fn311112.1
walksrc/templates.rs:149nested fn164112
template_idssrc/templates.rs:48fn311202
Format::bleed_box_insrc/format.rs:203method31201.9
jsonsrc/templates.rs:98fn91101.9
parse_hexsrc/color.rs:52fn114401.8
citationssrc/templates.rs:148fn377611.8
Rgba::luminancesrc/color.rs:35method82111.6
business_factssrc/templates.rs:109fn241311.6
scalarsrc/bind.rs:161fn85201.6
inchessrc/html.rs:39fn31301.5
text_width_insrc/layout.rs:443fn51101.5
Rgba::hexsrc/color.rs:23method42301.5
sanctuary_windssrc/tests.rs:10fn3211501.5
Layout::size_insrc/layout.rs:118method31511.5
side_bodysrc/html.rs:62fn15017371.5
rasterize_sidesrc/raster.rs:186fn57148131.4
Rgba::contrastsrc/color.rs:45method52311.3
formatsrc/format.rs:197fn31601.3
documentsrc/html.rs:221fn141241.3
Raster::fill_sdfsrc/raster.rs:121method124221.2
break_linessrc/layout.rs:495fn247111.2
RasterOptions::proofsrc/raster.rs:30method31501.2
side_htmlsrc/html.rs:237fn31321.2
pdf_ofsrc/pdf.rs:136fn212231.2
escapesrc/html.rs:24fn147301.1
formatssrc/format.rs:193fn31201.1
fillsrc/bind.rs:240nested fn122111.1
format_valuesrc/bind.rs:182fn5318251
confirmedsrc/tests.rs:47fn51911
Format::safe_rect_insrc/format.rs:208method31201

Outside the workspace

cre8-lib-font image miniz_oxide qrcode serde serde_json sha2