Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mitsuhiko/insta
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.14.1
Choose a base ref
...
head repository: mitsuhiko/insta
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.15.0
Choose a head ref
  • 4 commits
  • 7 files changed
  • 2 contributors

Commits on Jun 16, 2022

  1. Copy the full SHA
    3032e83 View commit details

Commits on Jun 17, 2022

  1. Copy the full SHA
    2c0ee9b View commit details
  2. Added changelog entry

    mitsuhiko committed Jun 17, 2022
    Copy the full SHA
    9ec10b3 View commit details
  3. 1.15.0

    mitsuhiko committed Jun 17, 2022
    Copy the full SHA
    9f64ee0 View commit details
Showing with 18 additions and 26 deletions.
  1. +2 −2 .github/workflows/tests.yml
  2. +5 −0 CHANGELOG.md
  3. +2 −2 Cargo.toml
  4. +0 −13 Makefile
  5. +1 −1 README.md
  6. +6 −6 cargo-insta/Cargo.lock
  7. +2 −2 cargo-insta/Cargo.toml
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -18,14 +18,14 @@ jobs:
run: make test

test-stable:
name: Test on 1.46.0
name: Test on 1.56.1
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.46.0
toolchain: 1.56.1
profile: minimal
override: true
- name: Test
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,11 @@

All notable changes to insta and cargo-insta are documented here.

## 1.15.0

- Bump minimum version of Rust to 1.56.1. This was done because the used
serde-yaml dependency no longer supports older versions of Rust.

## 1.14.1

- Update uuid crate to 1.0.0. (#228)
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "insta"
version = "1.14.1"
version = "1.15.0"
license = "Apache-2.0"
authors = ["Armin Ronacher <armin.ronacher@active-4.com>"]
description = "A snapshot testing library for Rust"
edition = "2018"
rust-version = "1.46"
rust-version = "1.56.1"
homepage = "https://insta.rs/"
repository = "https://github.com/mitsuhiko/insta"
keywords = ["snapshot", "testing", "jest", "approval"]
13 changes: 0 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -8,8 +8,6 @@ doc:

test: cargotest cargo-insta-tests

test-legacy: cargotest-legacy

cargo-insta-tests:
@echo "CARGO-INSTA INTEGRATION TESTS"
@cd cargo-insta/integration-tests; cargo run
@@ -23,17 +21,6 @@ cargotest:
@cargo test --features redactions,backtrace -- --test-threads 1
@cd cargo-insta; cargo test

cargotest-legacy:
# This can't run the tests against backtrace as this feature no longer works
# on older rust
@echo "CARGO TESTS LEGACY"
@rustup component add rustfmt 2> /dev/null
@cargo test
@cargo test --features redactions,glob
@cargo test --features redactions
@cargo test --no-default-features
@cd cargo-insta; cargo test

format:
@rustup component add rustfmt 2> /dev/null
@cargo fmt --all
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
[![Build Status](https://github.com/mitsuhiko/insta/workflows/Tests/badge.svg?branch=master)](https://github.com/mitsuhiko/insta/actions?query=workflow%3ATests)
[![Crates.io](https://img.shields.io/crates/d/insta.svg)](https://crates.io/crates/insta)
[![License](https://img.shields.io/github/license/mitsuhiko/insta)](https://github.com/mitsuhiko/insta/blob/master/LICENSE)
[![rustc 1.46.0](https://img.shields.io/badge/rust-1.46%2B-orange.svg)](https://img.shields.io/badge/rust-1.46%2B-orange.svg)
[![rustc 1.56.1](https://img.shields.io/badge/rust-1.56.1%2B-orange.svg)](https://img.shields.io/badge/rust-1.56.1%2B-orange.svg)
[![Documentation](https://docs.rs/insta/badge.svg)](https://docs.rs/insta)
[![VSCode Extension](https://img.shields.io/visual-studio-marketplace/v/mitsuhiko.insta?label=vscode%20extension)](https://marketplace.visualstudio.com/items?itemName=mitsuhiko.insta)

12 changes: 6 additions & 6 deletions cargo-insta/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cargo-insta/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-insta"
version = "1.14.1"
version = "1.15.0"
license = "Apache-2.0"
authors = ["Armin Ronacher <armin.ronacher@active-4.com>"]
description = "A review tool for the insta snapshot testing library for Rust"
@@ -12,7 +12,7 @@ edition = "2018"
readme = "README.md"

[dependencies]
insta = { version = "1.14.1", path = "..", features = ["redactions"] }
insta = { version = "1.15.0", path = "..", features = ["redactions"] }
console = "0.15.0"
structopt = "0.3.20"
serde = { version = "1.0.117", features = ["derive"] }