tools tier

tools-subdivision-plan

tools-subdivision-plan: the plan's command line. migrate the plan's own database, ingest the plan page into rows, seed and fetch the public sources it cites, run the checks, render the drawings from rows, and export the page. Every number the tool prints is a row.

tools-subdivision-plan: the plan's command line. migrate the plan's own database, ingest the plan page into rows, seed and fetch the public sources it cites, run the checks, render the drawings from rows, and export the page. Every number the tool prints is a row.

Tiertools
Roletooling
Pathcrates/tools/subdivision-plan
Edition2021
Targetstools-subdivision-plan, tools_subdivision_plan
Public items7 across 0 modules
Tests3

What it is for

The plan's command line, as a library: the fetch of a cited source with its limits, and the text tables the commands print.

Capabilities

crate root

The plan's command line, as a library: the fetch of a cited source with its limits, and the

Item
pub const MAX_SOURCE_BYTES: usize
pub const FETCH_TIMEOUT: Duration
pub const MAX_REDIRECTS: usize
fn check_table(checks : & CheckRowOut) -> String
fn tally(checks : & CheckRowOut) ->(usize, usize, usize)

Fetched

The plan's command line, as a library: the fetch of a cited source with its limits, and the

Item
pub struct Fetched
async fn fetch_source(url : & str) -> Result <Fetched, String>

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

`crate root`

ItemWhat it is
pub const MAX_SOURCE_BYTES: usizeA source document is a law, a norm, a program or a manual: a few megabytes at most.
pub const FETCH_TIMEOUT: Duration
pub const MAX_REDIRECTS: usize
pub struct FetchedWhat one fetch returned.
async fn fetch_source(url : & str) -> Result <Fetched, String>GET one source: a bounded read, the status, and the sha256 of the body when the status was a success
fn check_table(checks : & CheckRowOut) -> StringThe check table, one line per row, verdict first so a filtered eye finds it.
fn tally(checks : & CheckRowOut) ->(usize, usize, usize)The verdict tally.

No pub use re-exports: every item above is declared in this crate.

Boundary

Reaches into domain.

Shares tier tools with 87 other crates: tools-advisory-reach, tools-archive-guard, tools-artifact-scaffold, tools-ask-ai-core, tools-ask-ais, tools-ask-gemini, tools-book, tools-book-report, … (87 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)tools
Architectural role (taxonomy)tooling
Locationcrates/tools/subdivision-plan
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_tools["tools"] --> n_domain["domain"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`domain-subdivision-plan`domainnoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
chrono^0.4serdenoalways
clap^4derive, envnoalways
reqwest^0.12rustls-tlsnoalways
rust_decimal^1serdenoalways
serde_json^1noalways
sqlx^0.8runtime-tokio, postgres, chrono, uuid, jsonnoalways
tokio^1fullnoalways

Development, in this workspace.

CrateTierOptionalOnly on
`tools-cli-conformance`toolsnoalways

Build. None.

Depended on by. Nothing in this workspace.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  SELF["tools-subdivision-plan"]
  SELF -->|development| n_tools_cli_conformance["tools-cli-conformance"]
  SELF -->|runtime| n_domain_subdivision_plan["domain-subdivision-plan"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
bintools-subdivision-plan`src/main.rs`
libtools_subdivision_plan`src/lib.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfaceyes
async runtimeyes
database accessyes
network I/Oyes
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

No workspace crate depends on this one.

Verification

KindCount
Unit tests3
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
crate root700

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc57
Public modules with a //! block00
pie showData
    title Public items with rustdoc
    "Documented" : 5
    "No rustdoc detected" : 2

Metrics

MetricValue
Rust source files2
Source lines569
Code lines507
Public API items7
Public modules0
Tests3
Examples0
Cargo features0
Direct runtime dependencies8
Workspace reverse dependencies0
pie showData
    title Public API by kind
    "constant" : 3
    "function" : 3
    "struct" : 1
pie showData
    title Rust source composition
    "Code" : 507
    "Blank or comment" : 62

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

All tools · Manual