tools capa

tools-net-probe

Reachability checks without a general-purpose egress binary. HTTP status via infrastructure-fetcher's SafeHttpClient (SSRF allowlist + byte cap in the type) and TCP connect for port liveness — the replacement for ad-hoc curl and nc, which are denied.

Reachability checks without a general-purpose egress binary. HTTP status via infrastructure-fetcher's SafeHttpClient (SSRF allowlist + byte cap in the type) and TCP connect for port liveness — the replacement for ad-hoc curl and nc, which are denied.

Tiertools
Roleunclassified (baselined)
Pathcrates/tools/net-probe
Edition2021
Targetstools-net-probe, tools_net_probe, oracle
Public items7 across 0 modules
Tests4

What it is for

Decision core for tools-net-probe. Pure, so the parts that decide what a result means are tested without opening a socket.

Why this exists: curl and nc are denied (they are send-anything-anywhere channels available to any shell call), and denying them without a replacement just means the check stops happening. This is the narrow capability that was actually being used — "is it up, and what did it answer" — with no request body, no custom method, no upload path, and a byte cap on whatever comes back.

Capabilities

crate root

Decision core for tools-net-probe. Pure, so the parts that decide what a result means

Item
pub const DEFAULT_TIMEOUT: Duration
pub const DEFAULT_MAX_BYTES: usize

Health

Decision core for tools-net-probe. Pure, so the parts that decide what a result means

Item
pub enum Health
fn classify_status(status : u16) -> Health
fn exit_code(h : Health) -> i32

TcpTarget

Decision core for tools-net-probe. Pure, so the parts that decide what a result means

Item
pub struct TcpTarget
fn parse_tcp_target(s : & str) -> Result <TcpTarget, 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 struct TcpTargetA parsed TCP target, host:port.
fn parse_tcp_target(s : & str) -> Result <TcpTarget, String>
pub enum HealthWhat an HTTP status means for a liveness check
fn classify_status(status : u16) -> Health
fn exit_code(h : Health) -> i32Exit codes are the contract for scripts: 0 healthy, 1 reachable-but-failing, 2 unreachable
pub const DEFAULT_TIMEOUT: Duration
pub const DEFAULT_MAX_BYTES: usize

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

Boundary

Reaches into infrastructure.

Shares tier tools with 84 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, … (84 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)unclassified (baselined)
Locationcrates/tools/net-probe
Vocabulary in force (lexicon)current

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

flowchart LR
  n_tools["tools"] --> n_infrastructure["infrastructure"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`infrastructure-fetcher`infrastructurenoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
anyhow^1noalways
clap^4derivenoalways
tokio^1rt-multi-thread, macros, net, timenoalways
url^2noalways

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-net-probe"]
  SELF -->|development| n_tools_cli_conformance["tools-cli-conformance"]
  SELF -->|runtime| n_infrastructure_fetcher["infrastructure-fetcher"]
  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-net-probe`src/main.rs`
libtools_net_probe`src/lib.rs`
testoracle`tests/oracle.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 surfacenone detected
async runtimeyes
database accessnone detected
network I/Onone detected
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 tests1
Integration tests3
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 rustdoc37
Public modules with a //! block00
pie showData
    title Public items with rustdoc
    "Documented" : 3
    "No rustdoc detected" : 4

Metrics

MetricValue
Rust source files2
Source lines221
Code lines171
Public API items7
Public modules0
Tests4
Examples0
Cargo features0
Direct runtime dependencies5
Workspace reverse dependencies0
pie showData
    title Public API by kind
    "constant" : 2
    "enum" : 1
    "function" : 3
    "struct" : 1
pie showData
    title Rust source composition
    "Code" : 171
    "Blank or comment" : 50

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.

Todas las tools · Manual