Commit graph

133 commits

Author SHA1 Message Date
Andy Gauge
25b53f7991 Reword description and comments, variable names to match tense. 2017-05-19 14:07:19 -07:00
Andy Gauge
e5c7db1d10 fixed spaces, added telnet example, and properly returned errors 2017-05-19 11:45:31 -07:00
Andy Gauge
0436206ec1 Merge branch 'master' of https://github.com/brson/rust-cookbook into listen-tcp-random-port 2017-05-19 10:31:56 -07:00
Andy Gauge
18e35d0434 Added networking example to listen on random socket using tcp/ip 2017-05-19 10:30:50 -07:00
David Tolnay
b35e998d0a
Merge pull request 133 from cetra3:log_custom 2017-05-19 10:00:13 -07:00
David Tolnay
6eb7232594
Merge pull request 136 from xpayn:master
Conflicts:
    src/intro.md
2017-05-19 09:43:44 -07:00
David Tolnay
ed30815987 Merge pull request #135 from rap2hpoutre/base64
encoding/decoding base64
2017-05-19 09:40:08 -07:00
Xavier Payn
e48c85104a Add dedup-filenames example 2017-05-19 17:55:36 +02:00
David Tolnay
16627e0dbb Merge pull request #134 from jaemk/master
Add global mutable state example
2017-05-19 07:40:54 -07:00
rap2h
df5a1edc18 encoding/decoding base64 2017-05-19 15:10:29 +02:00
James Kominick
4f61dcca7b Add global mutable state example
issue #100
2017-05-19 01:13:02 -04:00
cetra3
38886a6188 Include logs to a custom location 2017-05-19 14:25:15 +09:30
David Tolnay
e71baaf566 Merge pull request #132 from bjnyfv/hex_encode_decode
Added example showing how to convert data to/from a hex string using …
2017-05-18 21:32:56 -07:00
Zach
f3fd43ad28 Removed unused error case. 2017-05-18 23:29:18 -05:00
Zach
a48fb68fc5 Added example showing how to convert data to/from a hex string using the data-encoding crate. 2017-05-18 23:09:42 -05:00
James Kominick
b2d4881a51 fix lazy_static links
- change crate name from `lazy-static` to `lazy_static`
2017-05-19 00:01:38 -04:00
James Kominick
66d6156088 Add lazy_static example
issue #99
2017-05-18 23:27:08 -04:00
David Tolnay
75d482b03b Merge pull request #124 from xpayn/master
Unzip a tarball to a temporary directory #101
2017-05-18 08:45:47 -07:00
Xavier Payn
a943707b56 Add tar-temp example 2017-05-18 17:19:22 +02:00
Michael-F-Bryan
a1f0418afc Limited the number of commit messages and hashes shown 2017-05-18 20:52:06 +08:00
Michael-F-Bryan
f3eea84db3 Added the os and text-processing categories 2017-05-18 20:13:37 +08:00
Michael-F-Bryan
a8d368df75 Updated the table of contents 2017-05-18 18:57:46 +08:00
Michael-F-Bryan
62b1f27aa7 Added an example to run a subcommand and parse its stdout 2017-05-18 18:57:24 +08:00
Garrett Squire
bbfdc8a5f7 remove dead link 2017-05-17 23:15:13 -07:00
Garrett Squire
3cd5ab1822 update some of the wording to be clearer 2017-05-17 23:11:29 -07:00
Garrett Squire
761054fd01 add an example for making a HEAD request with a timeout 2017-05-17 22:45:50 -07:00
David Tolnay
e698443f2a
Add percent-encode example 2017-05-17 14:57:44 -07:00
David Tolnay
cbad25cae5
Sort badge links 2017-05-17 14:32:07 -07:00
David Tolnay
87da3d5766
Use quick_main in examples 2017-05-17 10:41:43 -07:00
David Tolnay
9467df216a
Always use quick_main 2017-05-17 10:09:13 -07:00
David Tolnay
e8e7ba8dc4 Merge pull request #60 from Yamakaky/quick_main
Recommend the use of quick_main.
2017-05-17 09:44:57 -07:00
Michal Budzynski
762becd491 removed the stubs for "Serialize a Url" example 2017-05-16 17:38:10 +02:00
Michal Budzynski
62a04c00bd Implemented two examples for interaction with rest services:
"Query the GitHub API"
"Create and delete Gist with GitHub API"
2017-05-16 16:24:33 +02:00
Michal Budzynski
cd77feb50c Implemented "Download a file to a temporary directory" example
also fixed a typo
2017-05-14 20:13:46 +02:00
Michal Budzynski
a05e0adeca Implemented "Enable log levels per module" example
Also grouped the env_logger based examples together
2017-05-14 13:03:48 +02:00
Michal Budzynski
24bd9b3c59 Added two more rand examples
"Generate random numbers within a range"
"Generate random numbers with normal distribution"
2017-05-14 02:33:48 +02:00
Michal Budzynski
a816cc089d Fixed typos 2017-05-13 11:19:08 +02:00
Raphaël Huchet
0aab76ea78 update master table 2017-05-12 14:44:46 +02:00
Raphaël Huchet
37d489d8ab Update intro.md 2017-05-12 10:12:26 +02:00
Raphaël Huchet
c9f5e84973 Add "Log messages in a custom format" recipe 2017-05-12 09:53:51 +02:00
Michal Budzynski
2d4508f96e Fixed incorrect badges in app.md and intro.md 2017-05-11 18:12:06 +02:00
David Tolnay
03a776df47 Merge pull request #70 from budziq/syslog
Implements "Log to the Unix syslog" example
2017-05-11 08:24:13 -07:00
Michal Budzynski
75a48b2c1e Fixed badges for syslog crate 2017-05-11 17:15:27 +02:00
Michal Budzynski
abc4666508 Implemented "Log to the Unix syslog" example
The example is marked as no_run in order not to clobber
the actual on each test run
2017-05-11 17:15:20 +02:00
Raphaël Huchet
553617719f fix links in table of contents 2017-05-11 10:33:26 +02:00
Brian Anderson
75da6054a3 Merge pull request #53 from budziq/reqwest
Implemented "Make a HTTP GET request" example
2017-05-10 17:27:30 -07:00
Brian Anderson
51030c3c26 Add placeholders for log examples 2017-05-10 17:06:29 -07:00
Michal Budzynski
feb36e0b8c Fixed "Make a HTTP GET request" example after review
Added badges and reorganized code for code consistency.
Fixed typos.
2017-05-10 07:12:30 +02:00
Yamakaky
3824f28da1
Recommend the use of quick_main.
Fixes #59.
2017-05-09 23:45:16 +02:00
Michal Budzynski
644ff44136 Implemented "Make a HTTP GET request" example
I took the liberty of adding reqwest to cargo.toml and renaming
"Make a HTTP GET request after parsing a URL" to "Make a HTTP GET request"
as reqwest handles basic URL parsing internally and there seamed
no reason to make the example more complex than required.

resolves https://github.com/brson/rust-cookbook/issues/39
2017-05-09 20:22:57 +02:00