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
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
Michal Budzynski
a27629e6b3
Added missing badges to examples
2017-05-09 11:07:49 +02:00
Michal Budzynski
9a3b9f43a9
net.md TOC is not consistent with intro.md
2017-05-09 11:03:48 +02:00
Michal Budzynski
5c814707dc
Added missing "Categories" columns to app.md concurrency.md and encoding.md
2017-05-09 10:44:24 +02:00
Michal Budzynski
94f736ce79
implemented "Remove fragment identifiers and query pairs from a URL"
...
resolves: https://github.com/brson/rust-cookbook/issues/37
2017-05-08 23:18:43 +02:00
David Tolnay
263e78774a
Merge branches 'origin/pr/47' and 'origin/pr/48'
...
Conflicts:
src/net.md
2017-05-07 10:37:11 -07:00
David Tolnay
2d8a91189b
Merge pull request #51 from budziq/master
...
Updated basics.md with rand crate snippets
2017-05-07 08:41:34 -07:00
Michal Budzynski
235f45b82e
Updated basics.md with rand crate snippets
...
Following examples were added:
- Generate random floating point numbers
- Generate random values of a custom type
2017-05-07 14:09:00 +02:00
Wilfred Hughes
4620aec4a0
Spelling fixes
2017-05-06 19:43:22 -07:00
Michael Stock
f4170e3782
Implement custom error class
2017-05-06 14:02:44 -07:00
Piripant
f483052b0c
Update net.md
2017-05-06 19:39:21 +02:00
Michael Stock
c98ca75a41
Add example for creating base url by clearing path
2017-05-06 08:54:12 -07:00
Kyle Bostelmann
cac8e922aa
Error handling for parsing a Url.
2017-05-06 08:31:45 -03:00
Kyle Bostelmann
0d5f2bd31d
Merge remote-tracking branch 'rust/master' into patch-1
...
# Conflicts:
# Cargo.toml
Resolved using theirs.
2017-05-06 08:12:31 -03:00
Michael Stock
fc62898dad
Add url joining example
2017-05-05 17:36:40 -07:00
Kyle Bostelmann
471f50361a
Fix syntax; close function.
2017-05-05 20:27:42 -03:00
Kyle Bostelmann
062fa19708
Include missing badges #33
2017-05-05 20:18:12 -03:00
Kyle Bostelmann
b2073a0f0d
Parse URL example #33
2017-05-05 20:14:03 -03:00
Piripant
ba4f7b30ff
Update net.md
2017-05-05 23:44:54 +02:00
Brian Anderson
4800f566de
Add networking stubs, etc.
2017-05-05 01:26:48 -07:00
Brian Anderson
80f8585967
Change color of category badges
2017-05-04 17:07:57 -07:00
Brian Anderson
b7f70c76d0
Fill out CONTRIBUTING.md
2017-05-04 12:13:44 -07:00
David Tolnay
91bbdf3afb
Clean up trailing whitespace
2017-05-03 21:41:05 -07:00
David Tolnay
286c7d007f
Error chain description to match the code
2017-05-03 21:40:09 -07:00
David Tolnay
e728582e73
Use an error-chain example with more than one error
2017-05-03 21:22:05 -07:00
David Tolnay
ea4dd5d3cc
Link to error-chain docs
2017-05-03 20:17:01 -07:00
David Tolnay
30b574a516
Stderr is a bit more realistic
2017-05-03 20:16:03 -07:00
David Tolnay
5b9588f5be
Format the way rustfmt would
2017-05-03 20:13:46 -07:00
David Tolnay
3741cdfb07
Touch up the lines example
2017-05-03 20:11:40 -07:00
David Tolnay
1ef3788132
Touch up the byteorder example
2017-05-03 20:08:28 -07:00
David Tolnay
3d066af1a5
Touch up the clap example
2017-05-03 19:29:18 -07:00
David Tolnay
776c9b575c
Clearer use of mut
2017-05-03 18:46:59 -07:00
David Tolnay
b9517f9d73
Fix the encoding links from intro
2017-05-03 18:44:46 -07:00
David Tolnay
ab8664a697
Correct the toml example title in intro
2017-05-03 18:43:30 -07:00