These are chat archives for rust-lang/rust

24th
Nov 2016
Nehal Hasnayeen
@Hasnayeen
Nov 24 2016 06:05
i'm facing problem on string concatenation, can anybody help ? https://play.rust-lang.org/?gist=8f9a20e3105a390fea2605e9e6c70279&version=stable&backtrace=0
Nehal Hasnayeen
@Hasnayeen
Nov 24 2016 06:17
@ozkriff thanks mate
mchapala
@mchapala
Nov 24 2016 17:41
Does anyone know if ssh2-rs supports authenticating using pem file
Colin
@colindjk
Nov 24 2016 17:58
Hey, I've been trying to setup 'examples' for a project, but for some reason I've been having trouble finding a way to get it to work. How do the examples in <project_dir>/examples run? Whenever I try to set up my examples I get a syntax error which says my crate cannot be found. Basically, the crate for the actual project I'm trying to make examples for. Anyone know a quick fix? thanks.
Dave Hylands
@dhylands
Nov 24 2016 19:14
@colindjk Your examples are like an external app and need an extern crate statement for the example
Here's a small repo with a lib and an example: https://github.com/dhylands/format-rs You run the example by doing cargo run --example example-name (example-name is the name of the .rs file minus the extension)