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.
| Tier | tools |
| Role | tooling |
| Path | crates/tools/subdivision-plan |
| Edition | 2021 |
| Targets | tools-subdivision-plan, tools_subdivision_plan |
| Public items | 7 across 0 modules |
| Tests | 3 |
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`
| Item | What it is |
|---|---|
pub const MAX_SOURCE_BYTES: usize | A 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 Fetched | What 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) -> String | The 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 |
| Location | crates/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.
| Crate | Tier | Optional | Only on |
|---|---|---|---|
| `domain-subdivision-plan` | domain | no | always |
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
chrono | ^0.4 | serde | no | always |
clap | ^4 | derive, env | no | always |
reqwest | ^0.12 | rustls-tls | no | always |
rust_decimal | ^1 | serde | no | always |
serde_json | ^1 | — | no | always |
sqlx | ^0.8 | runtime-tokio, postgres, chrono, uuid, json | no | always |
tokio | ^1 | full | no | always |
Development, in this workspace.
| Crate | Tier | Optional | Only on |
|---|---|---|---|
| `tools-cli-conformance` | tools | no | always |
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
| Kind | Name | Source |
|---|---|---|
| bin | tools-subdivision-plan | `src/main.rs` |
| lib | tools_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
| Property | Evidence |
|---|---|
| async public surface | yes |
| async runtime | yes |
| database access | yes |
| network I/O | yes |
| unsafe code | none detected |
| environment variables | none 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.
Related capabilities
No workspace crate depends on this one.
Verification
| Kind | Count |
|---|---|
| Unit tests | 3 |
| Integration tests | 0 |
| Examples | 0 |
| Doctests | 0 |
Evidence by module. How often each public module is named by something executable.
| Module | Tests | Examples | Consumers |
|---|---|---|---|
crate root | 7 | 0 | 0 |
What the tests establish, by name:
a_non_http_url_is_refused_before_any_request—src/lib.rsthe_check_table_prints_every_row_with_its_verdict_first—src/lib.rscli_definition_conforms—src/main.rs
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 5 | 7 |
Public modules with a //! block | 0 | 0 |
pie showData
title Public items with rustdoc
"Documented" : 5
"No rustdoc detected" : 2
Metrics
| Metric | Value |
|---|---|
| Rust source files | 2 |
| Source lines | 569 |
| Code lines | 507 |
| Public API items | 7 |
| Public modules | 0 |
| Tests | 3 |
| Examples | 0 |
| Cargo features | 0 |
| Direct runtime dependencies | 8 |
| Workspace reverse dependencies | 0 |
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.