Commit graph

636 commits

Author SHA1 Message Date
Stefan Mesken
752b035c1a
demonstrate basic http authentication (#605) 2021-01-07 08:17:49 -08:00
Christian Vallentin
1b9a276ed2
Changed to use inclusive range operator (#632) 2021-01-07 08:13:15 -08:00
Christian Vallentin
9953362df2
Fixed links (#633) 2021-01-07 08:09:52 -08:00
Andrew Gauger
46fdc71d67 update mdbook 2021-01-04 19:02:01 +00:00
Vegard Berg
8d0d2e3fb1
Updated rand_distr, fixed and updated rand. (#627)
The `rand` crate has been updated to version `0.8.0`, and has its code
samples updated.

The `rand_distr` crate has been updated to version `0.4.0`.
2021-01-01 15:24:59 -08:00
Henil
714e9f4fcd
fix links in science/mathematics.md (#615)
* fix links in src/science/mathematics.md

* bump
2020-12-30 16:40:39 -08:00
Grachev Mikhail
6fe24cb266
requests: fix link for tokio::main (#621) 2020-12-17 08:17:00 -08:00
Dmytro Polunin
4789410122
Fixed typo in crossbeam-complex.md (#610) 2020-07-31 08:24:32 -07:00
Stefan Mesken
bba147f185
read environment variable (#604)
* read environment variable

* set default config path
2020-06-13 16:01:41 -07:00
Stefan Mesken
019c0a0d2c
(de)-serialize a matrix (#589)
* (de)-serialize a matrix

* enable serde-serialize for nalgebra

* fix typo

* add references
2020-06-13 14:18:33 -07:00
‏‏Dave
67329add00
Fix tiny typo (#601) 2020-06-13 14:17:53 -07:00
Stefan Mesken
ffaa6acec8
fix link in ANSI terminal (#602) 2020-06-13 14:17:18 -07:00
Andrew Gauger
203b108521
test fixes (#600)
* test fixes

* filter mac osx until stable pulls right crate
2020-06-07 11:40:48 -07:00
Jeff Hajewski
3c32c84475
Adds crossbeam channel example of a parallel data pipeline. (#554)
Co-authored-by: Andrew Gauger <andygauge@gmail.com>
2020-06-06 19:25:02 -07:00
Stefan Mesken
a00ff787ce
fix broken links (#588) 2020-06-06 19:22:37 -07:00
Vinzent Steinberg
dac3bd15ee
Fix typo (#592) 2020-06-06 19:18:22 -07:00
Andrew Gauger
dd4efa8dcd
Async reqwest (#597)
* update reqwest and tokio

* Make extract link working with new packages

* Make uniq working with new packages

* Update get.md

* Make rest-post working with new packages

* Make API resource exists working with new packages

* Make Query the GitHub API working with new packages

* Fix typos

* update to edition 2018

* Extending reqwest

* fix mime request

* fix post file

* Fix download basic

* Remove toml lines

* add error handling

* Fix partial

* Improve coding in unique

* Borken links fix

* Fix retain example

* merging master

* Completed updating for async

* https://docs.rs/reqwest/0.10.6/reqwest/ references clients and they provided 404 errors

* replace anyhow with error-chain

* spelling and links

Co-authored-by: pollosp <pollo.es.pollo@gmail.com>
Co-authored-by: Olopez <pollosp@users.noreply.github.com>
2020-06-06 19:12:09 -07:00
Ivan Tham
b61c8e588a
Update to edition 2018 (#565)
* Update to edition 2018

Update mdbook to 0.3.5

Command:
sed -i '/extern crate/ {N;s/\n$//}' src/**.md; sed -i 's/extern crate error_chain;/use error_chain::error_chain;/; s/extern crate lazy_static;/use lazy_static::lazy_static;/; s/extern crate bitflags;/use bitflags::bitflags;/; s/extern crate serde_json;/ use serde_json::json;/; s/extern crate serde_derive;/use serde::{Serialize, Deserialize};/; /macro_use/d; /extern crate/ d; s/```rust/```rust,edition2018/; s/bail!/error_chain::&/; s/\(debug\|info\|warn\|error\)!/log::&/;' src/**.md

Fix #530

* Update rand-dist.md

* Fixes #569

* dump syslog

version 4 depends on error-chain v 0.11 and version 5 depends on v 0.12 
!!!!

Co-authored-by: Andrew Gauger <andygauge@gmail.com>
2020-05-31 17:26:32 -07:00
Aleksandr
7a06c79008
Added percent-encoding badge (#587) 2020-05-05 06:47:51 -07:00
Gabriel Ghiuzan
7cce00a2c3
Fixes #570 - Updated Postgres examples (#579)
* Fixes #570 - Updated Postgres examples

* Updated postgres crate to 0.17.2

Co-authored-by: Andrew Gauger <andygauge@gmail.com>
2020-04-18 15:54:01 -07:00
Andrew Gauger
e8c27dc601
Update dictionary.txt (#584) 2020-04-18 11:25:48 -07:00
Andrew Gauger
5bd22460a3
Ignore test not no_run 2020-04-18 10:55:29 -07:00
Tianyi Shi
2eee704398
update rand-dist (#581)
* update rand-dist

* updates rand but still fails

* Update rand-dist.md

Co-authored-by: Andrew Gauger <andygauge@gmail.com>
2020-04-18 08:27:52 -07:00
Youngsuk Kim
74e9382d18
Fix dead code issue from #488 (#583) 2020-04-12 12:27:42 -07:00
Youngsuk Kim
579572e030
bump up 'rusqlite' to fix failing test (#582)
Fixes failing test code in 'database/sqlite/insert_select.md'
2020-04-11 13:59:12 -07:00
Riley Shea
698f70786a
Typo: 'marix' => 'matrix' (#577) 2020-03-13 19:27:56 -07:00
Josiah R
05b2fcbdc7
Fix issue #573 - hmac example (#574)
* Update hmac example for ring v. ^0.16.9

* Update hmac example for ring v. ^0.16.9

* Update hmac example for ring v. ^0.16.9

* Update to ring 0.16.11 in Cargo.toml

* Update to SHA256 - sect. 4.1 explicit threads

* Update all to SHA256, including comments
2020-02-29 21:12:36 -08:00
Rasmus Ansin
dddb1a9fa5 Fix sqlite example formatting and add syntax highlighting (#533)
* Fix sqlite example formatting and add syntax highlighting

* Format sqlite insert_select example using rustfmt

* Improve sqlite example code readability while adhering to rustfmt
2020-01-15 15:16:38 -08:00
AndyGauge
a38c7cb59f remove badge artifacts 2019-12-16 20:14:06 -08:00
AndyGauge
fdf9ea086e Not testing with Appveyor 2019-12-16 20:13:07 -08:00
AndyGauge
5e201b99da Do not run skeptic on pbkdf2 2019-12-16 19:48:06 -08:00
Pietro Danzi
ff903b0b66 fix PBKDF2 example (#538) 2019-12-16 19:14:59 -08:00
AndyGauge
2a57fa3904 add spsc to dictionary 2019-12-16 18:35:11 -08:00
Andrew Gauger
bc641257e7
Exclude percent encoding from skeptic (#561)
* Exclude percent encoding from skeptic

* Exclude tests that are affected by skeptic #111

* More failing tests exlcuded from Skeptic

* add ignore to infostring
2019-12-16 18:23:09 -08:00
Jeff Hajewski
084f51cff9 Adds simple single producer, single consumer crossbeam channel example. (#551) 2019-12-16 18:22:36 -08:00
Dan Wilhelm
d7c291151f Update to ndarray 0.13 (#560) 2019-12-16 18:13:33 -08:00
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
3fcb08bee2 Fix the compilation error (#532)
Try `cargo run --verbose` after copying the code into a separate project. This example snippet does not compile and requires `serde` create to be present in the main.rs. So include the serde crate will fix the compilation error.
2019-09-19 16:21:40 -07:00
Thomas Mulvaney
9c72aecdfc Remove error-chain from examples having only one error variant (#531)
* Rmove error-chain from examples having only one error variant

Remove error_chain from csv example 'Serde deserializes data into ...'
Remove error_chain from toml example 'Parse TOML into your ...'

* remove linebreak after main

* remove line break
2019-09-19 16:14:38 -07:00
wangzengdi
d3a407a433 optimize variable: min -> max (#534) 2019-09-19 16:02:29 -07:00
Andrew Gauger
ad5f968c89
postgres version doesn't conflict with rand (#550) 2019-09-19 15:45:49 -07:00
Jubilee
5eba1a6068 run() -> main() (#548)
* [433] remove old run function

* Completes run() -> main() transitions
2019-09-19 13:05:17 -07:00
Andrew Gauger
f4d63dada2 Merge branch 'master' of github.com:rust-lang-nursery/rust-cookbook 2019-09-19 12:52:40 -07:00
Andrew Gauger
638246385a Removing references to rand < .5 2019-09-19 12:52:27 -07:00
Stefan Hoelzl
6d3f7f97a2 removed unsafe block from rand-choose.md (#536)
the unsafe block in this example is not necessary and might confuse beginners.
2019-09-19 11:56:04 -07:00
felipe
3d90852592 eextern -> extern (#535)
was this intentional?
2019-09-19 11:55:08 -07:00
Alex Touchet
4e05e2e205 Update Travis CI URL (#545) 2019-09-19 11:54:33 -07:00
Jubilee
16a043b09a Update inclusive range syntax, fix script pathname, crate deps (#547)
Fix docs directing developer to incorrect pathname for spellcheck.sh
Add note on the normal behavior of spellcheck.sh for clarity
Fix instances of inclusive range syntax to use '..=' style
Depend directly on percent-encoding instead of expecting re-exports
This commit compiles and tests correctly on rustc v1.37.0

link-checker found 452 failures before this commit
link-checker found 452 failures after this commit
no new errors were added by this commit
2019-09-19 11:04:37 -07:00
Stefan Mesken
cb949b04c0 removed error-chain from examples having only one error variant (#525)
* removed error-chain from 'Calculate SHA1 sum of iso files concurrently'

* removed error chain from 'Salt and hash a password with PBKDF2'

* removed error-chain from 'Parse string into DateTime struct'

* removed error-chain from 'Log messages with a custom logger'

* fixed compiler errors

* removed unnecessary feature flag

* removed error-chain from 'Log to the Unix syslog'

* removed error-chain from 'Parse and increment a version string.'

* removed error-chain from 'Parse a complex version string.'

* removed error-chain from 'Check if given version is pre-release.'

* removed error-chain from 'Percent-encode a string'

* removed error-chain from 'Encode and decode hex'

* removed error-chain from 'Read CSV records'

* removed error-chain from 'Read CSV records with different delimiter'

* removed error-chain from 'Handle invalid CSV data with Serde'

* removed error-chain from 'Serialize and deserialize unstructured JSON'

* removed error-chain from 'Deserialize a TOML configuration file'

* removed error-chain from 'Read and write integers in little-endian byte order'

* removed error-chain from 'Read lines of strings from a file'

* removed error-chain from 'Avoid writing and reading from a same file'

* removed error-chain from 'Access a file randomly using a memory map'

* removed error-chain from 'Listen on unused port TCP/IP'

* removed error-chain from 'Redirect both stdout and stderr of child process to the same file'

* removed error-chain from 'Continuously process child process' outputs'

* removed error-chain from 'Parse a URL from a string to a `Url` type'

* removed error-chain from 'Create new URLs from a base URL'

* removed error-chain from 'Extract the URL origin (scheme / host / port)'

* removed error-chain from 'Remove fragment identifiers and query pairs from a URL'

* removed error-chain from 'Query the GitHub API'

* removed error-chain from 'Check if an API resource exists'

* removed error-chain from 'Consume a paginated RESTful API'

* addressed Travis CI failure

* addressed Travis CI failure

* addressed Travis CI issue
2019-04-15 21:24:07 -07:00
lzutao
99e3d6b333 Use gen_range instead of rand::choose (#527) 2019-04-15 21:13:45 -07:00
Stefan Dombrowski
353ccf46cc Fix link (#526) 2019-04-15 14:00:23 -07:00