dropbox / dropbox/rust-subprocess-communicate

Add demonstration of using Encoding to serialize strings for stdio/stdout/stderr

Open
#1 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
13
Forks
2
PR merge metrics
No merged PRs in 30d

Description

I think it'd be helpful to include a second example in the readme that demonstrates encoding strings to UTF8 to pass to stdin, and how to decode stdout/stderr.

Here's a basic example I figured out after a bit of trial and error: https://gist.github.com/ioben/4b7ec3d0b8cbfadbfbcf6e905102ef4f

I think it'd be important to at least demonstrate this, it's a very common use-case. It would be awesome to provide facilities to do this conversion automatically too.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.