diff --git a/Cargo.lock b/Cargo.lock index 4c63fcd..893edce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -372,6 +372,16 @@ version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags", + "objc2", +] + [[package]] name = "displaydoc" version = "0.2.5" @@ -1012,6 +1022,15 @@ dependencies = [ "libc", ] +[[package]] +name = "objc2" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f" +dependencies = [ + "objc2-encode", +] + [[package]] name = "objc2-core-foundation" version = "0.3.2" @@ -1019,6 +1038,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" dependencies = [ "bitflags", + "dispatch2", + "objc2", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags", + "objc2", ] [[package]] @@ -1031,6 +1068,17 @@ dependencies = [ "objc2-core-foundation", ] +[[package]] +name = "objc2-open-directory" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb82bed227edf5201dfedf072bba4015a33d3d4a98519837295a90f0a23f676d" +dependencies = [ + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + [[package]] name = "once_cell" version = "1.21.3" @@ -1825,15 +1873,16 @@ dependencies = [ [[package]] name = "sysinfo" -version = "0.38.0" +version = "0.39.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe840c5b1afe259a5657392a4dbb74473a14c8db999c3ec2f4ae812e028a94da" +checksum = "2c8bd2130a9b60bee2581bf82cfe89ee836424d1f37dcfa4ce21509611684673" dependencies = [ "libc", "memchr", "ntapi", "objc2-core-foundation", "objc2-io-kit", + "objc2-open-directory", "windows", ] @@ -1866,7 +1915,7 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "test-with" -version = "0.16.3" +version = "0.16.4" dependencies = [ "byte-unit", "chrono", @@ -1885,7 +1934,7 @@ dependencies = [ [[package]] name = "test-with-derive" -version = "0.16.3" +version = "0.16.4" dependencies = [ "byte-unit", "chrono", diff --git a/Cargo.toml b/Cargo.toml index f2883ca..ec3e541 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["derive", "lib", "examples-with-runner"] resolver = "2" [workspace.package] -version = "0.16.3" +version = "0.16.4" authors = ["Antonio Yang "] edition = "2021" description = "A library that helps you run tests with conditions" @@ -12,4 +12,4 @@ readme = "README.md" repository = "https://github.com/yanganto/test-with" keywords = [ "testing", "condition", "toggle", "integration", "ignore" ] categories = [ "development-tools" ] -rust-version = "1.88.0" +rust-version = "1.95.0" diff --git a/README.md b/README.md index 0b7162b..913ff52 100644 --- a/README.md +++ b/README.md @@ -277,7 +277,7 @@ the test runner will treat it as the test in Rust and also provide the same summ The `runtime` feature should be enabled and include as normal dependency( not dev-dependencies). ```toml -test-with = { version = "0.16.3", features = ["runtime"] } +test-with = { version = "0.16.4", features = ["runtime"] } ``` Create an example with the following runtime macros (`test_with::runner!`, `#[test_with::module]`, `#[test_with::runtime_env()]`). diff --git a/derive/Cargo.toml b/derive/Cargo.toml index ab93bf2..de04927 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -22,7 +22,7 @@ regex = { version = "1" } reqwest = { version = "0.13", features = ["blocking"], optional = true } ping = { version = "0.8.0", optional = true } -sysinfo = { version = "0.38", optional = true } +sysinfo = { version = "0.39", optional = true } byte-unit = { version = "5.0", optional = true } num_cpus = { version = "1.13", optional = true } which = { version = "8.0", optional = true } diff --git a/flake.lock b/flake.lock index fdf543e..183260e 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1771714954, - "narHash": "sha256-nhZJPnBavtu40/L2aqpljrfUNb2rxmWTmSjK2c9UKds=", + "lastModified": 1782841183, + "narHash": "sha256-Ndt/5R7UN4rBdhFR1lxHZZZ42cD6vGlnuxC2VvvsKE4=", "owner": "nixos", "repo": "nixpkgs", - "rev": "afbbf774e2087c3d734266c22f96fca2e78d3620", + "rev": "c9bfd86ed684d27e63b0ff9ebb18699f84f27a3b", "type": "github" }, "original": { @@ -62,11 +62,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1771729765, - "narHash": "sha256-HNsDSR5bhLSrIpi9bTb2uTK1qnPo1xFSBxs6YmFyprk=", + "lastModified": 1783231873, + "narHash": "sha256-cTDI249Vl2JTQ3aicT9jeJPIBlNlodpJbdO0yLigCzU=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "be926cb1a76e8450ab2b92121b2e88d09fa4d41c", + "rev": "cb368fd55ced25a1fa12414b9e984cdfb1681d18", "type": "github" }, "original": { diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 6db271d..4871ae5 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -12,11 +12,11 @@ rust-version.workspace = true readme.workspace = true [dependencies] -test-with-derive = { version = "=0.16.3", path = "../derive", default-features = false } +test-with-derive = { version = "=0.16.4", path = "../derive", default-features = false } reqwest = { version = "0.13", features = ["blocking"], optional = true } ping = { version = "0.8.0", optional = true } -sysinfo = { version = "0.38", optional = true } +sysinfo = { version = "0.39", optional = true } byte-unit = { version = "5.0", optional = true } num_cpus = { version = "1.13", optional = true } which = { version = "8.0", optional = true }