These are chat archives for rust-lang/rust

12th
Jan 2017
Ollie Ford
@OJFord
Jan 12 2017 12:31
I've used std::process::Command a little, but if I want to 'handover' to a different program, e.g. display some text inside less, how can I spawn the process and attach 'my' stdout to its?
Sergey Noskov
@Albibek
Jan 12 2017 12:38
@OJFord, you have the stdin method on command builder, it receives the descriptor
Ollie Ford
@OJFord
Jan 12 2017 13:07
Thanks @Albibek - for some reason I was expecting it to be much more involved. That spawn would by default inherit stdio was what I was missing.
Sergey Noskov
@Albibek
Jan 12 2017 13:14
I suppose the standard ones are not iherited, at least in unix
Dennis Huebner
@hueby
Jan 12 2017 17:25
Hi folks, I'm new to Rust. Is there a good reason to choose Rust for writing an API? If so, which framework does a good job for API development?
Peter Atashian
@retep998
Jan 12 2017 17:36
@hueby What do you mean by API?
@hueby A web API? A C API?
Dennis Huebner
@hueby
Jan 12 2017 17:42
@retep998 A web API, e.g. with Iron or rustless
Peter Atashian
@retep998
Jan 12 2017 17:43
Dennis Huebner
@hueby
Jan 12 2017 18:02
@retep998 awesome, thanks!