Commit graph

608 commits

Author SHA1 Message Date
Ted Mielczarek
29184f9e43 Add an example of calculating the SHA-256 digest of a file using ring 2017-07-29 22:28:33 +02:00
Michal Budzynski
6cd55fe84b fixed links and CI auto-deploy after move to rust-lang-nursery
- fixed stargazers example broken due to repo move
- fixed edit functionality broken due to repo move
2017-07-29 18:38:26 +02:00
Vsevolod Zubarev
f7d4e1acfe Extract all unique links from a MediaWiki markup
Fixes #245
2017-07-24 18:10:15 -07:00
Brian Anderson
1f0d3c9785 Update language to not reference examples 'above' 2017-07-24 18:03:05 -07:00
Diggory Hardy
c399dc4b7d Basics: update random number distributions; tweaks to other prior rand sections 2017-07-24 17:59:32 -07:00
Diggory Hardy
b3b5154521 Basics: improve random number examples 2017-07-24 17:58:39 -07:00
Andy Gauge
b2547adeba Extract phone numbers from text 2017-07-24 17:54:45 -07:00
Phaiax
d79af5ef74 Add Replace text with named capture groups example. fixes #243 2017-07-24 17:48:39 -07:00
Phaiax
f161a8bcab Add Extract unique Hashtag example. fixes #242 2017-07-24 17:45:12 -07:00
Alisha
2df7875008 Read csv records with different delimiter 2017-07-24 17:40:43 -07:00
Alisha
ca13c3b10c Handle invalid CSV data with serde 2017-07-24 17:30:58 -07:00
Brian Anderson
a2dbd8dadc Merge pull request #256 from yandexx/env-logger-var
Use a custom environment variable to set up logging
2017-07-24 17:17:16 -07:00
Brian Anderson
8e6e65d962 Merge pull request #251 from yandexx/regex-filter-log
Filter a log file by matching multiple regular expressions
2017-07-24 17:16:46 -07:00
Brian Anderson
7fa8270f79 Merge pull request #250 from alisha17/serialize_csv
Serialize records to CSV
2017-07-24 17:15:56 -07:00
Vsevolod Zubarev
85efdd553f Merge branch 'env-logger-var' of https://github.com/yandexx/rust-cookbook into env-logger-var 2017-07-23 22:17:18 +03:00
Vsevolod Zubarev
785ea75e90 Use a custom environment variable to set up logging
Fixes #222
2017-07-23 22:16:24 +03:00
Vsevolod Zubarev
e448192ac8 Use a custom environment variable to set up logging
Fixes #222
2017-07-23 22:13:01 +03:00
Alisha
1515289a1d Serialize records to CSV 2017-07-23 18:38:14 +05:30
Tshepang Lekhonkhobe
6eb1f9e434 readme: de-swap 2017-07-21 08:58:34 +02:00
Vsevolod Zubarev
e8aa408a38 Filter a log file by matching multiple regular expressions
Filter a log file by matching multiple regular expressions

Better queries, added filter_map etc.

Ran through rustfmt, added another regex
2017-07-20 23:35:55 +03:00
Ty Coghlan
fad366bca4 Example to find loops for a given path 2017-07-15 15:48:57 +02:00
Michal Budzynski
2156dd4072 corrected and sorted links in app.md 2017-07-13 20:55:17 +02:00
Jeff Hajewski
b617c3a0c9 Adds decompress tarball while removing path prefix recipe 2017-07-13 20:50:09 +02:00
Michal Budzynski
c2876df252 Updated skeptic to "0.11.0" and added missing dependencies
- updated to skeptic "0.11.0" finally fixing buildbreaks on duplicated deps
- added missing `log` and `base64` deps
- sorted dependencies in Cargo.toml
2017-07-13 13:28:47 +02:00
Michal Budzynski
a0fe9d180a Added minimal "Operate on bitflags" example
also updated dependencies to avoid skeptic test buildbreak
2017-07-11 16:13:58 +02:00
Steven
99830f5237 Adds example for "Logging to stdout instead of stderr". 2017-07-08 13:49:17 +02:00
Portal-Chan
4ce1109c06 Add examples for the glob crate 2017-07-06 21:53:14 +02:00
Michal Budzynski
76a0e70db9 fix for tests running under windows failing due to syslog dependency 2017-07-06 21:34:42 +02:00
Michal Budzynski
6828f9ccbc move badges and description to correct place
in following examples:
- Extract all links from a webpage
- Traverse directories while skipping dotfiles
- Recursively calculate file sizes at given depth
2017-06-30 23:00:11 +02:00
Alisha
3659b3e975 added follow_links in example 2017-06-30 22:38:23 +02:00
David AO Lozano
cd93298abd issue #202 new example for show how to skip hidden files with walkdir 2017-06-28 22:56:44 +02:00
Jonas Hagstedt
d01c3e77c8 Fixed a tiny typo (coobook) 2017-06-22 20:11:54 +02:00
Michał Budzyński
4cfe394a61 Merge pull request #183 from sb89/master
"Extract all links from a webpage" example
2017-06-18 14:59:37 +02:00
Steven Blake
12c450277c Merge branch 'master' into master 2017-06-18 12:42:15 +01:00
Michał Budzyński
7dfe647bf0 Merge pull request #198 from budziq/skeptic_update
Moved to skeptic 0.10
2017-06-16 01:01:46 +02:00
Michal Budzynski
b1445d4d5f Moved to skeptic 0.10
Also fixed two examples that depended on execution PWD in project root.
2017-06-16 00:46:35 +02:00
Brian Anderson
9728ca8964 Merge pull request #191 from budziq/reword_decompress
Added "Compress a directory into tarball" example and reworded decompress example
2017-06-15 15:17:19 -07:00
Michal Budzynski
049ed5ad55 Added "Compress a directory into a tarball" example 2017-06-15 02:08:12 +02:00
Michal Budzynski
df3fd356f2 Removed tempdir from the "Decompress tarball" example 2017-06-15 02:08:12 +02:00
Michal Budzynski
77418088cc Reworded the "Unzip a tarball to a temporary directory"
to "Decompress a tarball to a temporary directory"
updated the wording of the prose also.
2017-06-15 02:08:12 +02:00
Michał Budzyński
b1ae16add7 Merge pull request #197 from budziq/master
update to rayon 0.8 and image 0.14
2017-06-15 01:17:56 +02:00
Michal Budzynski
3e21e454ca update to rayon 0.8 and image 0.14
in order to solve build break on nightly travis
2017-06-15 00:54:38 +02:00
Michał Budzyński
d732876a9c Merge pull request #196 from budziq/master
Pinned mdbook version to 0.0.22
2017-06-14 17:17:56 +02:00
Michal Budzynski
c400f1f36d Pinned mdbook version to 0.0.22
due to upcoming breaking release of mdbook that would
silently break styling of rust-cookbook
2017-06-14 17:08:58 +02:00
David Tolnay
edbfc1f00a Merge pull request #195 from budziq/license
Added clarification of licensing
2017-06-13 17:23:02 -07:00
Michal Budzynski
38ed80063d Added clarification of licensing
Rust Cookbook is licensed under dual MIT/Apache-2.0 license.
2017-06-13 23:19:28 +02:00
Brian Anderson
0018827fa6 Merge pull request #181 from crypto-universe/master
Add walkdir example
2017-06-06 17:25:31 -07:00
crypto-universe
57e846db9b Add walkdir example
Example how to iterate files in directory
to a given depth and accumulate their sizes.
2017-06-05 23:47:59 +02:00
Steven
14bcf0fc02 Fixed "select" badges. 2017-06-04 12:13:25 +01:00
Steven
b9446acf3c - Updated the master table and links in intro.md
- Remove buffer code in example and use 'Document::from_read' instead.
2017-06-04 11:47:05 +01:00