From 5986a90666ca497bfd06fdc93dcdfccff345a1f5 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Sat, 5 Feb 2022 23:50:27 +0100 Subject: [PATCH] Use precise dependency versions in Cargo.toml 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 --- Cargo.toml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d09cf225..8db9b8bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"