rust-cookbook icon indicating copy to clipboard operation
rust-cookbook copied to clipboard

Cookbook ideas for std

Open richard-uk1 opened this issue 8 years ago • 7 comments
trafficstars

EDITED I'm not sure what the different options are regarding stdio, so here are some suggestions


Current list:

richard-uk1 avatar Aug 15 '17 16:08 richard-uk1

@derekdreery thanks for the suggestions.

We already have Run an external command and process stdout example which is a little more advanced version of your 1'st suggestion. But I like the ideas 2-4.

How about combining the 2'nd and 3'rd suggestion into one and leaving the 4'th as is? Would you be interested in submitting PR for any of these?

budziq avatar Aug 15 '17 17:08 budziq

Yeah I can do that

richard-uk1 avatar Aug 15 '17 20:08 richard-uk1

@derekdreery excellent :+1: . I took the liberty of updating the description into a tracking issue if there will be any other example ideas. Would you like to work on both of these examples or on a specific one (I'll mark them as WIP to avoid duplicated work)?

budziq avatar Aug 15 '17 21:08 budziq

Yeah I can do both, might be a few days, it's late here :P.

richard-uk1 avatar Aug 15 '17 22:08 richard-uk1

Run an external command and process stdout doesn't currently have std listed as one of its crates. Should it be added?

convoliution avatar Oct 04 '17 22:10 convoliution

to one extent or the other all of the examples will use std. we are adding it more to denote lack of any other crate in use (otherwise this would be just noise)

budziq avatar Oct 04 '17 23:10 budziq

There are a ton of opportunities in std to add to the cookbook. There's boxed, error, ffi, file systems, networking, strings, time, primitives. We could write an entire chapter of fmt.

I'm going to try to think of some recipes that would showcase std.

AndyGauge avatar Apr 23 '18 22:04 AndyGauge