Skip to content

Commit

Permalink
chore(deps): update rstest requirement from 0.19 to 0.21 (#1247)
Browse files Browse the repository at this point in the history
* chore(deps): update rstest requirement from 0.19 to 0.21

Updates the requirements on [rstest](https://github.com/la10736/rstest) to permit the latest version.
- [Release notes](https://github.com/la10736/rstest/releases)
- [Changelog](https://github.com/la10736/rstest/blob/master/CHANGELOG.md)
- [Commits](la10736/rstest@v0.19.0...v0.19.0)

---
updated-dependencies:
- dependency-name: rstest
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix Cargo.toml table title

* fix default-features

* rm redundant dep

* use explicit optional dep feature

* rm json string assert

* fix grammar

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ranadeep Biswas <[email protected]>
  • Loading branch information
dependabot[bot] and rnbguy authored Jun 4, 2024
1 parent 8eef381 commit c2c8dfa
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 27 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ borsh = { version = "1", default-features = false, features = [ "deriv
displaydoc = { version = "0.2", default-features = false }
prost = { version = "0.12", default-features = false }
derive_more = { version = "0.99.17", default-features = false, features = [ "from", "into", "display", "try_into" ] }
rstest = { version = "0.19" }
rstest = { version = "0.21" }
schemars = { version = "0.8.15" }
sha2 = { version = "0.10.8", default-features = false }
serde = { version = "1.0", default-features = false }
serde_json = { package = "serde-json-wasm", version = "1.0.1", default-features = false }
serde-json = { package = "serde-json-wasm", version = "1.0.1", default-features = false }
subtle-encoding = { version = "0.5", default-features = false }

# ibc dependencies
Expand Down
4 changes: 2 additions & 2 deletions ci/cw-check/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ version = "0.1.0"
crate-type = [ "cdylib", "rlib" ]

[dependencies]
ibc-apps = { path = "../../ibc-apps", default_features = false, features = [ "serde", "parity-scale-codec" ] }
ibc-apps = { path = "../../ibc-apps", default-features = false, features = [ "serde", "parity-scale-codec" ] }
ibc-core = { path = "../../ibc-core", features = [ "serde", "parity-scale-codec", "schema" ] }
cosmwasm-std = { version = "1.5.4", default-features = false }
cosmwasm-schema = { version = "1.5.4", default-features = false }
serde_json = { package = "serde-json-wasm", version = "^1.0.1", default-features = false }
serde-json = { package = "serde-json-wasm", version = "^1.0.1", default-features = false }
thiserror = { version = "^1.0", default-features = false }

[profile.release]
Expand Down
6 changes: 3 additions & 3 deletions ibc-apps/ics20-transfer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ all-features = true

[dependencies]
# external dependencies
serde_json = { workspace = true, optional = true }
serde-json = { workspace = true, optional = true }

# ibc dependencies
ibc-core = { workspace = true }
Expand All @@ -34,12 +34,12 @@ default = [ "std" ]
std = [
"ibc-app-transfer-types/std",
"ibc-core/std",
"serde_json/std",
"serde-json/std",
]
serde = [
"ibc-app-transfer-types/serde",
"ibc-core/serde",
"serde_json",
"dep:serde-json",
]
schema = [
"ibc-app-transfer-types/schema",
Expand Down
4 changes: 2 additions & 2 deletions ibc-apps/ics20-transfer/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ parity-scale-codec = { workspace = true, optional = true }
scale-info = { workspace = true, optional = true }

[dev-dependencies]
serde_json = { workspace = true }
serde-json = { workspace = true }
rstest = { workspace = true }

[features]
default = [ "std" ]
std = [
"serde/std",
"serde_json/std",
"serde-json/std",
"displaydoc/std",
"uint/std",
"primitive-types/std",
Expand Down
6 changes: 3 additions & 3 deletions ibc-apps/ics721-nft-transfer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ all-features = true

[dependencies]
# external dependencies
serde_json = { workspace = true, optional = true }
serde-json = { workspace = true, optional = true }

# ibc dependencies
ibc-app-nft-transfer-types = { workspace = true }
Expand All @@ -31,12 +31,12 @@ default = [ "std" ]
std = [
"ibc-app-nft-transfer-types/std",
"ibc-core/std",
"serde_json/std",
"serde-json/std",
]
serde = [
"ibc-app-nft-transfer-types/serde",
"ibc-core/serde",
"serde_json",
"dep:serde-json",
]
schema = [
"ibc-app-nft-transfer-types/schema",
Expand Down
4 changes: 2 additions & 2 deletions ibc-apps/ics721-nft-transfer/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ http = { version = "1.0.0" }
mime = { version = "0.3.17" }
schemars = { workspace = true, optional = true }
serde = { workspace = true, optional = true }
serde_json = { workspace = true }
serde-json = { workspace = true }

# ibc dependencies
ibc-core = { workspace = true }
Expand All @@ -46,7 +46,7 @@ rstest = { workspace = true }
default = [ "std" ]
std = [
"serde/std",
"serde_json/std",
"serde-json/std",
"base64/std",
"displaydoc/std",
"http/std",
Expand Down
4 changes: 2 additions & 2 deletions ibc-clients/ics07-tendermint/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ parity-scale-codec = { workspace = true, optional = true }
scale-info = { workspace = true, optional = true }

[dev-dependencies]
serde_json = { workspace = true }
serde-json = { workspace = true }
tendermint-rpc = { workspace = true }

[features]
default = [ "std" ]
std = [
"displaydoc/std",
"serde/std",
"serde_json/std",
"serde-json/std",
"ibc-core-client-types/std",
"ibc-core-commitment-types/std",
"ibc-core-host-types/std",
Expand Down
2 changes: 1 addition & 1 deletion ibc-clients/ics08-wasm/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ibc-proto = { workspace = true }

[dev-dependencies]
rstest = { workspace = true }
serde_json = { workspace = true }
serde-json = { workspace = true }

[features]
default = [ "std" ]
Expand Down
2 changes: 1 addition & 1 deletion ibc-core/ics24-host/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ scale-info = { workspace = true, optional = true }

[dev-dependencies]
rstest = { workspace = true }
serde_json = { workspace = true }
serde-json = { workspace = true }

[features]
default = [ "std" ]
Expand Down
6 changes: 3 additions & 3 deletions ibc-testkit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ displaydoc = { workspace = true }
parking_lot = { version = "0.12.1", default-features = false }
schemars = { workspace = true, optional = true }
serde = { workspace = true, optional = true }
serde_json = { workspace = true, optional = true }
serde-json = { workspace = true, optional = true }
subtle-encoding = { workspace = true }
typed-builder = { version = "0.18.0" }

Expand All @@ -47,7 +47,7 @@ rstest = { workspace = true }
default = [ "std" ]
std = [
"serde/std",
"serde_json/std",
"serde-json/std",
"ibc/std",
"ibc-proto/std",
"tendermint/std",
Expand All @@ -56,7 +56,7 @@ serde = [
"dep:serde",
"ibc/serde",
"ibc-proto/serde",
"serde_json",
"dep:serde-json",
]
schema = [
"dep:schemars",
Expand Down
3 changes: 2 additions & 1 deletion ibc-testkit/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ where
let serialized = serde_json::to_string(&parsed0);
assert!(serialized.is_ok());
let serialized = serialized.expect("should not fail");
assert_eq!(serialized, json_data);
// We can't assert the following, as JSON string representation is not canonical.
// assert_eq!(serialized, json_data);

let parsed1 = serde_json::from_str::<T>(&serialized);
assert!(parsed1.is_ok());
Expand Down
8 changes: 3 additions & 5 deletions tests-integration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description = "Integration tests using `ibc-testkit` and the other IBC crates."
[dependencies]
# external dependencies
serde = { workspace = true, optional = true }
serde_json = { workspace = true, optional = true }
serde-json = { workspace = true, optional = true }
subtle-encoding = { workspace = true }
tracing = { version = "0.1.40", default-features = false }

Expand All @@ -36,7 +36,7 @@ basecoin-store = { version = "0.1.0" }
tendermint = { workspace = true }
tendermint-testgen = { workspace = true }

[dev_dependencies]
[dev-dependencies]
cosmwasm-std = { workspace = true }
hex = { version = "0.4.2" }
rstest = { workspace = true }
Expand All @@ -47,11 +47,9 @@ tendermint-rpc = { workspace = true }
default = [ "std" ]
std = [
"serde/std",
"serde_json/std",
"serde-json/std",
"ibc/std",
"ibc/serde",
"ibc-testkit/serde",
"tendermint/std",
"dep:serde",
"dep:serde_json",
]

0 comments on commit c2c8dfa

Please sign in to comment.