diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b1c5aaaa..7900981cc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: stable + toolchain: 1.46.0 override: true - uses: actions-rs/cargo@v1 with: @@ -25,7 +25,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: stable + toolchain: 1.46.0 override: true - uses: actions-rs/cargo@v1 with: @@ -39,11 +39,12 @@ jobs: - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: stable + toolchain: 1.46.0 override: true - uses: actions-rs/cargo@v1 with: command: package + args: --allow-dirty fmt: name: Rustfmt @@ -53,7 +54,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: stable + toolchain: 1.46.0 override: true - run: rustup component add rustfmt - uses: actions-rs/cargo@v1 diff --git a/Cargo.toml b/Cargo.toml index 915e1610f..73b0ea76b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ authors = ["Wilfred Hughes "] keywords = ["diff", "syntax"] categories = ["development-tools", "command-line-utilities", "parser-implementations"] edition = "2018" +rust-version = "1.46.0" include = [ "/build.rs", "/src/", diff --git a/manual/src/getting_started.md b/manual/src/getting_started.md index e7d6e43bf..ef4ca9275 100644 --- a/manual/src/getting_started.md +++ b/manual/src/getting_started.md @@ -4,7 +4,7 @@ The latest version of difftastic is [available on crates.io](https://crates.io/crates/difftastic). You can install it -with Cargo. +with Cargo. Difftastic requires Rust 1.46 or later. ``` $ cargo install difftastic