Skip to content
michthemakerPublic

About

TypeScript port of some of Rust's most useful patterns and ergonomics.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

rust-ts

A small TypeScript port of some of Rust's most useful patterns and ergonomics.

This project brings over ideas like Option, Result, OnceLock, thread helpers, and channel-based message passing so TypeScript code can feel a bit more like idiomatic Rust without needing to write Rust itself.

Highlights:

  • Option and Result types for safer value and error handling
  • OnceLock for one-time initialization
  • mpsc / spsc channel primitives for async and sync communication
  • lightweight threading helpers
  • protocol and shell utilities inspired by Rust-style composition

Install:

bun install

Run the demo:

bun run main.ts

About

TypeScript port of some of Rust's most useful patterns and ergonomics.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages