How do you do interprocess communication (IPC) in Rust?

前端 未结 2 2155
余生分开走
余生分开走 2021-02-19 03:48

Is there part of the standard library for this?

I\'ve been digging around, but I can\'t see anything immediately obvious that implements it, or anything on Process

2条回答
  •  渐次进展
    2021-02-19 04:13

    I recommend you look at the plibsys library. A trivial bindgen binding is available as a starting point for anyone who wants to write an idiomatic Rust binding.

    If all you're after is simple, practical IPC in Rust, falling back to the C IPC mechanisms is currently the only real solution; plibsys is simply a convenient portable high level C API to do that with.

提交回复
热议问题