Commit graph

505 commits

Author SHA1 Message Date
Ludwig PACIFICI
20cef5b8d4 Add "Handle errors correctly in main" recipe (#381) 2018-04-24 14:21:41 -07:00
Andrew Gauger
e5dfcd1b2d return recursively, hide error-chain, and remove unused error specification 2018-04-20 09:17:41 +02:00
João Bolila
2d3679b14e Adds example of handle a rate-limited API #93 2018-04-20 09:17:41 +02:00
Andrew Gauger
29dacc6267 Style guide update to include embedded example and sections 2018-04-19 08:29:26 +02:00
jrakow
c8ec1d7076 fix C++ linking example (#385) 2018-04-18 12:49:55 -07:00
Andrew Gauger
8c15ed7c7f
Merge pull request #387 from skierpage/patch-1
rephrase text pattern replacement example
2018-04-18 12:36:46 -07:00
skierpage
e28a69015f
rephrase text pattern replacement example
The example **Replace all occurrences of one text pattern with another pattern** mentions a "British English date pattern" when it's using ISO 8601 dates, see issue #386. Change the explanation and a variable name. Also use the same string in code that's in the explanation Untested, sorry.
2018-01-24 18:25:22 -08:00
Michal Budzynski
333c8a2bfa Bump dependencies and fix buildbreaks 2018-01-11 15:14:43 +01:00
Paul Houghton
8a604f51e4 Replaced mdbook build with mdbook server --open 2018-01-11 10:13:50 +01:00
Paul Houghton
7c3ad4c21e Simplified web launch 2018-01-11 10:13:50 +01:00
Paul Houghton
537ad3845d Removed Rust install link; added Rust general link; fixed per-browser instructions 2018-01-11 10:13:50 +01:00
Paul Houghton
9fefa98ddd Added local mdbook instructions to README.md 2018-01-11 10:13:50 +01:00
Anna Liao
5da134d5d1 create random passwords from a set of allowed characters 2017-12-12 09:31:09 +01:00
Anna Liao
0b3d6ff22a semver example: find the latest version satsifying given range 2017-12-03 13:27:25 +01:00
Ludwig PACIFICI
8543f72ae1 Add "Process child process output continuously" example
fixes #339
2017-12-01 13:00:32 +01:00
Ludwig PACIFICI
b081b640cb Update badge std version from "1.19.0" to "1.22.1" 2017-12-01 13:00:32 +01:00
Ludwig PACIFICI
ba94df655e Add "Avoid discarding errors during error conversions" example (#368)
fixes #215
2017-11-18 16:51:49 +01:00
Pawel Duzinkiewicz
e668fff733 Added "Converting a formatted date to a Unix timestamp and vice versa" recipe
Added "Converting a formatted date to a Unix timestamp and vice versa" recipe
2017-11-16 13:43:08 +01:00
Lenard Pratt
3b1a4f5f94 Adds "converting a local time to UTC time and vice versa" recipe 2017-11-15 14:59:00 +01:00
Jeffrey Crocker
eec1522d90 Add Datelike and Timelike example (#366)
Add Datelike and Timelike example
2017-11-14 00:12:30 +01:00
Henri Lunnikivi
2ab0ba6114 Add example for checked arithmetic of chrono 2017-11-04 17:12:15 +01:00
Michał Budzyński
7cd2b21881
Make the PR template a little less confusing 2017-11-03 12:35:43 +01:00
Henri Lunnikivi
f2ab6f8ff9 Add example for parsing into chrono::DateTime
- Add an example for parsing strings in different formats into chrono::DateTime
structs and chrono::Naive* structs
- Add links to chrono::*

See also: #324
2017-11-03 11:28:37 +01:00
Michal Budzynski
38d59c3e92 [Upkeep] updated deps fixed build-breaks and sorted links 2017-11-03 03:23:28 +01:00
Chris Schneider
5a77148d32 Add missing log4s badge at top of Logging.md 2017-11-02 18:02:36 +01:00
Chris Schneider
3ea6f1fdbc Add a missing log4rs badge to intro
The "Log messages to a custom location" item on the intro page had only
the `log` badge, but was missing the `log4rs` badge. The `log4rs` was
already present on the specific recipe.
2017-11-02 10:03:26 +01:00
Ludwig PACIFICI
0ecf0bf233 Add "Redirect both stdout and stderr of child process to the same file" example
fixes #345
2017-10-31 11:29:59 +01:00
Chris Stadler
705475c457 Add rayon example with any and all
Add rayon example with any and all
2017-10-30 17:10:53 +01:00
Michał Budzyński
828d2ca1cc
Update PULL_REQUEST_TEMPLATE.md 2017-10-30 13:05:53 +01:00
Michał Budzyński
74a240c9b4
Create PULL_REQUEST_TEMPLATE.md 2017-10-30 12:57:45 +01:00
Ty Coghlan
d233cab25d Corrected typos
Corrected typos
2017-10-28 10:37:27 +02:00
Henri Lunnikivi
00af9d15c0 Add example for formatting chrono::DateTime
Add example for formatting chrono::DateTime
2017-10-27 17:16:48 +02:00
Jeff Hajewski
477d82f4b4 Adds parallel map-reduce recipe
See #329

* Adds example in `concurrency.md`
* Adds links to `intro.md`
2017-10-27 08:03:49 +02:00
Alexandru Ene
57ad48c505 Added measure-elapsed-time example (#343)
Added measure-elapsed-time example
2017-10-26 08:37:12 +02:00
Jeff Hajewski
de94b25d40 Adds search items using given predicate in parallel example
cc # 330
2017-10-24 09:41:09 +02:00
Ludwig PACIFICI
b8aab7930c add "Obtain backtrace of complex error scenarios" example
Issue #216
2017-10-23 17:28:51 +02:00
Jeff Hajewski
b31b7a7688 Updates the wording on error handling to improve clarity.
It was not previously clear when a contributor should use `error_chain`
and when they should use `main()`. This patch adds a couple sentences to
the section on error handling to make that more explicit.
2017-10-17 23:12:10 +02:00
Steven Blake
02ed855b21 Update examples with "for_each"
Remove intermediate variable
2017-10-17 23:10:37 +02:00
David Futcher
ac20edd909 Add 'Compile a C library while setting custom defines' (#295) (#323)
Add 'Compile a C library while setting custom defines'
2017-10-12 22:15:53 +02:00
Michal Budzynski
39599ef2e1 Fixed link in PartialRange download example 2017-10-10 16:50:33 +02:00
Michal Budzynski
a93d17b8a8 PartialRange download example cleanup 2017-10-09 23:50:16 +02:00
João Bolila
9084c13321 Add "Make a partial download with HTTP range headers" example #291 (#309)
Add "Make a partial download with HTTP range headers" example
2017-10-09 23:28:28 +02:00
Jeff Hajewski
45b785788d Adds recipe for salt and hash a password using ring crate
* Uses PBKDF2 key derivation function
* Verifies password with hash
2017-10-09 10:37:56 +02:00
Michal Budzynski
b2701a4486 Reorganized the csv examples for more logical flow 2017-10-08 17:36:58 +02:00
Ludwig PACIFICI
8c80e349b9 Add "read csv records"
Issue #228
2017-10-08 16:14:03 +02:00
David Futcher
a4f355d5f1 Add working example code for 'Check external command version for compatability' (#286) 2017-10-08 12:43:54 +02:00
Thibault Barbie
b8440351c4 Add c++ linking example (#318)
Add c++ linking example
2017-10-07 17:11:35 +02:00
Ryan
525c3b6c78 add "Sign and verify a message with HMAC digest" example 2017-10-07 17:07:05 +02:00
Steven Blake
c591cfd5a9 Added "Check if given version is pre-release" example. 2017-10-07 16:10:47 +02:00
Michael Carpenter
79345cce99 Add "Run an external command passing it stdin and check for an error code" 2017-10-05 14:28:32 +02:00