Skip to content

Commit 1e5824f

Browse files
committed
where do the rlibs come from?
1 parent acc2d3e commit 1e5824f

File tree

7 files changed

+12
-11
lines changed

7 files changed

+12
-11
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ num = "0.4"
4040
num_cpus = "1.16"
4141
percent-encoding = "2.3"
4242
petgraph = "0.6"
43-
postgres = "0.19"
44-
rand = "0.8"
45-
rand_distr = "0.4"
43+
postgres = "0.19.7"
44+
rand = "0.9"
45+
rand_distr = "0.5"
4646
rayon = "1.10"
4747
regex = "1.11"
4848
reqwest = { version = "0.12", features = ["blocking", "json", "stream"] }
4949
ring = "0.17"
5050
rusqlite = { version = "0.32", features = ["chrono"] }
5151
same-file = "1.0"
52-
select = "0.6"
52+
5353
semver = "1.0"
5454
serde = { version = "1.0", features = ["derive"] }
5555
serde_derive = "1.0"

src/algorithms/randomness/rand-choose.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn main() {
2020
let password: String = (0..PASSWORD_LEN)
2121
.map(|_| {
2222
let idx = rng.gen_range(0..CHARSET.len());
23-
char::from(CHARSET[idx])
23+
CHARSET[idx] as char
2424
})
2525
.collect();
2626

src/algorithms/randomness/rand-custom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Randomly generates a tuple `(i32, bool, f64)` and variable of user defined type `Point`.
66
Implements the [`Distribution`] trait on type Point for [`Standard`] in order to allow random generation.
77

8-
```rust,edition2018
8+
```rust,edition2018,no_run
99
extern crate rand;
1010
use rand::Rng;
1111
use rand::distributions::{Distribution, Standard};

src/algorithms/randomness/rand-dist.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ An example using the [`Normal`] distribution is shown below.
1515
```rust,edition2018
1616
extern crate rand;
1717
extern crate rand_distr;
18-
use rand::thread_rng;
18+
use rand::Rng;
1919
use rand_distr::{Distribution, LogNormal, Normal};
2020
use rand::distributions::Distribution as RandDistribution;
2121
2222
fn main() {
23-
let mut rng = thread_rng();
23+
let mut rng = rand::thread_rng();
2424
let normal = Normal::new(2.0, 3.0).unwrap();
2525
let log_normal = LogNormal::new(1.0, 0.5).unwrap();
2626

src/algorithms/randomness/rand-passwd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Randomly generates a string of given length ASCII characters in the range `A-Z,
66
a-z, 0-9`, with [`Alphanumeric`] sample.
77

8-
```rust,edition2018
8+
```rust,edition2018,no_run
99
extern crate rand;
1010
use rand::{thread_rng, Rng};
1111
use rand::distributions::Alphanumeric;

src/web/scraping/broken.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ parse an individual link with [`url::ParseOptions`] and [`Url::parse`]).
1111
The task makes a request to the links with [reqwest] and verifies
1212
[`StatusCode`]. Then the tasks `await` completion before ending the program.
1313

14-
```rust,edition2024,no_run
14+
```rust,edition2024,ignore
1515
// cargo-deps: tokio="1", reqwest="0.11", select="0.6", thiserror="1", url="2", anyhow="1"
1616
mod broken {
1717
use thiserror::Error;

src/web/scraping/extract-links.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Use [`reqwest::get`] to perform a HTTP GET request and then use
88
Call [`filter_map`] on the [`Selection`] retrieves URLs
99
from links that have the "href" [`attr`] (attribute).
1010

11-
```rust,edition2024,no_run
11+
```rust,edition2024,ignore
12+
// select needs rand v.0.8
1213
// cargo-deps: tokio="1", reqwest="0.11", select="0.6", thiserror="1"
1314
mod links {
1415
use thiserror::Error;

0 commit comments

Comments
 (0)