Skip to main content

Crate tsgo_rs_core

Crate tsgo_rs_core 

Source
Expand description

Shared primitives used across the tsgo-rs workspace.

This crate intentionally stays small and foundational. It contains the common error type, process lifecycle helpers, and a few performance-oriented collection/string aliases used throughout the higher-level crates.

Most applications will consume this crate indirectly via tsgo_rs_client or the top-level tsgo_rs facade, but it is also useful on its own when embedding tsgo process management in another integration.

Modules§

fast
Compact string/collection aliases used to keep hot paths allocation-light. Fast-path collection and string aliases shared across the workspace.

Structs§

AsyncChildGuard
Child-process guard and reusable command template for tsgo. Owns a child process and guarantees it is eventually terminated.
RpcResponseError
TsgoCommand
Child-process guard and reusable command template for tsgo. Immutable process template for launching typescript-go.

Enums§

TsgoError
Workspace-wide error type for process, transport, and protocol failures.
TsgoEvent
Structured runtime events that embedders can observe.

Traits§

TsgoObserver
Sink for structured operational events emitted by the workspace.

Functions§

observe
Emits an event when an observer is configured.
terminate_child_process
Child-process guard and reusable command template for tsgo. Terminates a child process if it is still running and always reaps it before returning.
wait_for_child_exit
Child-process guard and reusable command template for tsgo. Waits for a child process to exit and forcefully terminates it after a timeout.

Type Aliases§

Result
Standard result alias used across the workspace.
SharedObserver
Shared observer handle used across configs and transports.