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§
- Async
Child Guard - Child-process guard and reusable command template for
tsgo. Owns a child process and guarantees it is eventually terminated. - RpcResponse
Error - Tsgo
Command - Child-process guard and reusable command template for
tsgo. Immutable process template for launchingtypescript-go.
Enums§
- Tsgo
Error - Workspace-wide error type for process, transport, and protocol failures.
- Tsgo
Event - Structured runtime events that embedders can observe.
Traits§
- Tsgo
Observer - 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.
- Shared
Observer - Shared observer handle used across configs and transports.