Overview of Rust2Go examples
masterThe rust2go repository provides several example implementations demonstrating different call directions, runtimes, and backend technologies for interop between Rust and Go. Use these examples to understand how to implement specific communication patterns like unidirectional calls, bidirectional calls, or shared-memory-based communication.
| Name | Call Direction | Runtime | Backend Technology |
|------------------------|----------------|---------|--------------------|
| example-monoio | Rust -> Go | Monoio | CGO |
| example-tokio | Rust -> Go | Tokio | CGO |
| example-monoio-mem | Rust -> Go | Monoio | Shared Memory Lockless Queue |
| example-tokio-mem | Rust -> Go | Tokio | Shared Memory Lockless Queue |
| example-bidirectional | Rust -> Go & Go -> Rust | N/A | CGO |
| example-go2rust | Go -> Rust | N/A | CGO |