8000 GitHub - k0nserv/sans-io-example
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

k0nserv/sans-io-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sans-IO example

This is an example of a simple program that uses the sans-io pattern.

It's split across three crates

  • ping-core Which implements the core logic in a sans-io way.
  • ping-sync Which provides a binary around ping-core that uses synchronous IO.
  • ping-tokio Which provides a binary around ping-core that uses Tokio.

Building && Running

To build and run the synchronous version:

$ cargo build && sudo target/debug/ping-sync

and for the Tokio version:

$ cargo build && sudo target/debug/ping-tokio

Slides

This example was used in a talk at Rust Edinburgh on the 20th of March 2025. The slides can be found in slides.md and viewed via presenterm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0