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.
Neighbourhood
Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.
Files
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.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| Rgba::alphasrc/color.rs:18 | method | 3 | 1 | 2 | 0 | 3.8 | |
| templatesrc/templates.rs:53 | fn | 7 | 1 | 27 | 2 | 3.7 | |
| Raster::blendsrc/raster.rs:75 | method | 15 | 7 | 5 | 1 | 3.7 | |
| layoutsrc/layout.rs:142 | fn | 218 | 64 | 34 | 14 | 3.6 | |
| Bindings::with_docsrc/bind.rs:49 | method | 4 | 1 | 9 | 0 | 3.2 | |
| PieceSpec::from_jsonsrc/spec.rs:247 | method | 7 | 2 | 5 | 0 | 3.2 | |
| Raster::fill_rect_pxsrc/raster.rs:103 | method | 16 | 5 | 7 | 2 | 3.1 | |
| Raster::spansrc/raster.rs:92 | method | 9 | 1 | 3 | 0 | 2.6 | |
| with_business_defaultssrc/templates.rs:65 | fn | 32 | 8 | 3 | 2 | 2.2 | |
| bindingssrc/tests.rs:43 | fn | 3 | 1 | 11 | 1 | 2.1 | |
| walksrc/templates.rs:149 | nested fn | 16 | 4 | 1 | 1 | 2 | |
| template_idssrc/templates.rs:48 | fn | 3 | 1 | 12 | 0 | 2 | |
| Format::bleed_box_insrc/format.rs:203 | method | 3 | 1 | 2 | 0 | 1.9 | |
| jsonsrc/templates.rs:98 | fn | 9 | 1 | 1 | 0 | 1.9 | |
| parse_hexsrc/color.rs:52 | fn | 11 | 4 | 4 | 0 | 1.8 | |
| citationssrc/templates.rs:148 | fn | 37 | 7 | 6 | 1 | 1.8 | |
| Rgba::luminancesrc/color.rs:35 | method | 8 | 2 | 1 | 1 | 1.6 | |
| business_factssrc/templates.rs:109 | fn | 24 | 1 | 3 | 1 | 1.6 | |
| scalarsrc/bind.rs:161 | fn | 8 | 5 | 2 | 0 | 1.6 | |
| inchessrc/html.rs:39 | fn | 3 | 1 | 3 | 0 | 1.5 | |
| text_width_insrc/layout.rs:443 | fn | 5 | 1 | 1 | 0 | 1.5 | |
| Rgba::hexsrc/color.rs:23 | method | 4 | 2 | 3 | 0 | 1.5 | |
| sanctuary_windssrc/tests.rs:10 | fn | 32 | 1 | 15 | 0 | 1.5 | |
| Layout::size_insrc/layout.rs:118 | method | 3 | 1 | 5 | 1 | 1.5 | |
| side_bodysrc/html.rs:62 | fn | 150 | 17 | 3 | 7 | 1.5 | |
| rasterize_sidesrc/raster.rs:186 | fn | 57 | 14 | 8 | 13 | 1.4 | |
| Rgba::contrastsrc/color.rs:45 | method | 5 | 2 | 3 | 1 | 1.3 | |
| formatsrc/format.rs:197 | fn | 3 | 1 | 6 | 0 | 1.3 | |
| documentsrc/html.rs:221 | fn | 14 | 1 | 2 | 4 | 1.3 | |
| Raster::fill_sdfsrc/raster.rs:121 | method | 12 | 4 | 2 | 2 | 1.2 | |
| break_linessrc/layout.rs:495 | fn | 24 | 7 | 1 | 1 | 1.2 | |
| RasterOptions::proofsrc/raster.rs:30 | method | 3 | 1 | 5 | 0 | 1.2 | |
| side_htmlsrc/html.rs:237 | fn | 3 | 1 | 3 | 2 | 1.2 | |
| pdf_ofsrc/pdf.rs:136 | fn | 21 | 2 | 2 | 3 | 1.2 | |
| escapesrc/html.rs:24 | fn | 14 | 7 | 3 | 0 | 1.1 | |
| formatssrc/format.rs:193 | fn | 3 | 1 | 2 | 0 | 1.1 | |
| fillsrc/bind.rs:240 | nested fn | 12 | 2 | 1 | 1 | 1.1 | |
| format_valuesrc/bind.rs:182 | fn | 53 | 18 | 2 | 5 | 1 | |
| confirmedsrc/tests.rs:47 | fn | 5 | 1 | 9 | 1 | 1 | |
| Format::safe_rect_insrc/format.rs:208 | method | 3 | 1 | 2 | 0 | 1 |
Outside the workspace
cre8-lib-font image miniz_oxide qrcode serde serde_json sha2