Skip to content

Standard library

The standard library supplies definitions that an application can use without copying them into its source. A Connector Contract describes an interaction; a Driver implements it. Selecting physical Drivers does not change the standard types available to the compiler.

These names are available without an import or a local declaration. Their definitions are the same logical types used by the Connector ports.

TypeDefinition and cases
FileExitFile, read and replace
ProcessExitProcess, job and service
HttpClientExitHttpClient
HttpServerExitHttpServer, ack and respond
WebSocketExitWebSocketClient and WebSocketServer

Write output failed: FileExit without a type FileExit declaration. These names also work in aliases, fields, collections and is/as. For example, type StorageResult = FileExit declares an application alias without creating a different type identity.

Redeclaring a standard name is E-NAME-RESERVED. A typed destination resolves constructors such as Completed {}; without one, constructor lookup uses only unions explicitly declared in the source. The type reference covers scalar, collection, struct and union notation and schema projections.

Connectors and contracts lists File, Process, HttpClient, HttpServer, WebSocketClient and WebSocketServer. Each Connector page gives its exact Contract id, modes, ports, settings, terminal outcomes and qualification limits.

rastok connectors lists the Contracts and the implementations present in the current binary; rastok connectors --json produces the machine-readable catalog. Physical networking depends on the binary’s feature selection, not on an import in the program.

AnnotationMeaning
@sensitive(level = ...)Classifies confidentiality as Internal, Confidential or Restricted
@personal(...)Classifies personal data with identifier, special and criminal flags
@secretDeclares secret handling; clear secret-bearing executable schemas are refused
@measure(id = ..., unit = ...)Associates a numeric field with a measurement id and unit

These annotations are available without imports. Their interpretation and current limits are described in Privacy, secrets and measurements. A user annotation with the same field shape does not acquire the authority of a standard annotation.

The standard tagged frontends are json! for a JSON value, string! for verbatim text and base64! for bytes. Their syntax and restrictions are in Expressions and dispatch. That reference also lists the available operators and expression functions.

There is no import, use or using directive in this version. Standard definitions are available implicitly. Modules, explicit imports, visibility and namespace rules remain a later design discussion; no syntax or delivery date is decided.

ItemSpecification
File watch, Timer, Calendar and Memorydocs/spec/stdlib.md §§3.4–3.7; see the Contract limits
Additional tagged guest-language frontendsdocs/spec/expressions.md §§2–3; see the expression limits

Sources: docs/spec/stdlib.md §1.2, docs/spec/types.md, docs/spec/annotations.md and the standard Contract definitions.

Diagram