Skip to content

Commit

Permalink
Use precise dependency versions in Cargo.toml
Browse files Browse the repository at this point in the history
Following the advice from [1], this PR updates Cargo.toml to use
precise version numbers for all dependencies. The latest versions at
the time of writing are used.

It turns out that we made precisely the mistake mentioned in the post:

```
% cargo -Z minimal-versions update
% cargo test
```

failed on nightly because of the dependency on smawk 0.3: we need
0.3.1 after #421.

[1]: https://users.rust-lang.org/t/psa-please-specify-precise-dependency-versions-in-cargo-toml/71277
  • Loading branch information
mgeisler committed Feb 5, 2022
1 parent 2b0137e commit 5986a90
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ path = "benches/indent.rs"
default = ["unicode-linebreak", "unicode-width", "smawk"]

[dependencies]
hyphenation = { version = "0.8.2", optional = true, features = ["embed_en-us"] }
smawk = { version = "0.3", optional = true }
terminal_size = { version = "0.1", optional = true }
unicode-linebreak = { version = "0.1", optional = true }
unicode-width = { version= "0.1", optional = true }
hyphenation = { version = "0.8.4", optional = true, features = ["embed_en-us"] }
smawk = { version = "0.3.1", optional = true }
terminal_size = { version = "0.1.17", optional = true }
unicode-linebreak = { version = "0.1.2", optional = true }
unicode-width = { version = "0.1.9", optional = true }

[dev-dependencies]
criterion = "0.3"
lipsum = "0.8"
criterion = "0.3.5"
lipsum = "0.8.0"
unic-emoji-char = "0.9.0"
version-sync = "0.9"
doc-comment = "0.3"
version-sync = "0.9.4"
doc-comment = "0.3.3"

[target.'cfg(unix)'.dev-dependencies]
termion = "1.5"
termion = "1.5.6"

0 comments on commit 5986a90

Please sign in to comment.