From d0d6dcfe6846f3c1ff88effd98a42ef89186e678 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Jul 31 2023 09:19:35 +0000 Subject: tests: split tests for rpm submodule into smaller files --- diff --git a/cargo2rpm/tests/rpm/test_buildrequires.py b/cargo2rpm/tests/rpm/test_buildrequires.py new file mode 100644 index 0000000..30368d6 --- /dev/null +++ b/cargo2rpm/tests/rpm/test_buildrequires.py @@ -0,0 +1,1350 @@ +from cargo2rpm import CARGO_BUGGY_RESOLVER +from cargo2rpm.metadata import FeatureFlags +from cargo2rpm.rpm import buildrequires, workspace_buildrequires +from cargo2rpm.utils import load_metadata_from_resource, short_repr + +import pytest + + +@pytest.mark.parametrize( + "filename,flags,with_dev_deps,expected", + [ + # default features with dev-dependencies + ( + "ahash-0.8.3.json", + FeatureFlags(), + True, + { + "(crate(cfg-if/default) >= 1.0.0 with crate(cfg-if/default) < 2.0.0~)", + "(crate(getrandom/default) >= 0.2.7 with crate(getrandom/default) < 0.3.0~)", + "(crate(criterion/default) >= 0.3.2 with crate(criterion/default) < 0.4.0~)", + "(crate(criterion/html_reports) >= 0.3.2 with crate(criterion/html_reports) < 0.4.0~)", + "(crate(fnv/default) >= 1.0.5 with crate(fnv/default) < 2.0.0~)", + "(crate(fxhash/default) >= 0.2.1 with crate(fxhash/default) < 0.3.0~)", + "(crate(hashbrown/default) >= 0.12.3 with crate(hashbrown/default) < 0.13.0~)", + "(crate(hex/default) >= 0.4.2 with crate(hex/default) < 0.5.0~)", + "(crate(no-panic/default) >= 0.1.10 with crate(no-panic/default) < 0.2.0~)", + "(crate(rand/default) >= 0.8.5 with crate(rand/default) < 0.9.0~)", + "(crate(seahash/default) >= 4.0.0 with crate(seahash/default) < 5.0.0~)", + "(crate(serde_json/default) >= 1.0.59 with crate(serde_json/default) < 2.0.0~)", + "(crate(version_check/default) >= 0.9.4 with crate(version_check/default) < 0.10.0~)", + "(crate(once_cell) >= 1.13.1 with crate(once_cell) < 2.0.0~)", + "(crate(once_cell/unstable) >= 1.13.1 with crate(once_cell/unstable) < 2.0.0~)", + "(crate(once_cell/alloc) >= 1.13.1 with crate(once_cell/alloc) < 2.0.0~)", + }, + ), + # default features without dev-dependencies + ( + "ahash-0.8.3.json", + FeatureFlags(), + False, + { + "(crate(cfg-if/default) >= 1.0.0 with crate(cfg-if/default) < 2.0.0~)", + "(crate(getrandom/default) >= 0.2.7 with crate(getrandom/default) < 0.3.0~)", + "(crate(version_check/default) >= 0.9.4 with crate(version_check/default) < 0.10.0~)", + "(crate(once_cell) >= 1.13.1 with crate(once_cell) < 2.0.0~)", + "(crate(once_cell/unstable) >= 1.13.1 with crate(once_cell/unstable) < 2.0.0~)", + "(crate(once_cell/alloc) >= 1.13.1 with crate(once_cell/alloc) < 2.0.0~)", + }, + ), + # default features with dev-dependencies + ( + "aho-corasick-1.0.2.json", + FeatureFlags(), + True, + { + "(crate(doc-comment/default) >= 0.3.3 with crate(doc-comment/default) < 0.4.0~)", + "(crate(memchr) >= 2.4.0 with crate(memchr) < 3.0.0~)", + }.union({"(crate(memchr/std) >= 2.4.0 with crate(memchr/std) < 3.0.0~)"} if CARGO_BUGGY_RESOLVER else set()), + ), + # default features without dev-dependencies + ( + "aho-corasick-1.0.2.json", + FeatureFlags(), + False, + { + "(crate(memchr) >= 2.4.0 with crate(memchr) < 3.0.0~)", + }.union({"(crate(memchr/std) >= 2.4.0 with crate(memchr/std) < 3.0.0~)"} if CARGO_BUGGY_RESOLVER else set()), + ), + # default features with dev-dependencies + ( + "assert_cmd-2.0.8.json", + FeatureFlags(), + True, + { + "(crate(bstr/default) >= 1.0.1 with crate(bstr/default) < 2.0.0~)", + "(crate(doc-comment/default) >= 0.3.0 with crate(doc-comment/default) < 0.4.0~)", + "(crate(predicates) >= 2.1.0 with crate(predicates) < 3.0.0~)", + "(crate(predicates/diff) >= 2.1.0 with crate(predicates/diff) < 3.0.0~)", + "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", + "(crate(predicates-tree/default) >= 1.0.0 with crate(predicates-tree/default) < 2.0.0~)", + "(crate(wait-timeout/default) >= 0.2.0 with crate(wait-timeout/default) < 0.3.0~)", + "(crate(escargot/default) >= 0.5.0 with crate(escargot/default) < 0.6.0~)", + }, + ), + # default features without dev-dependencies + ( + "assert_cmd-2.0.8.json", + FeatureFlags(), + False, + { + "(crate(bstr/default) >= 1.0.1 with crate(bstr/default) < 2.0.0~)", + "(crate(doc-comment/default) >= 0.3.0 with crate(doc-comment/default) < 0.4.0~)", + "(crate(predicates) >= 2.1.0 with crate(predicates) < 3.0.0~)", + "(crate(predicates/diff) >= 2.1.0 with crate(predicates/diff) < 3.0.0~)", + "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", + "(crate(predicates-tree/default) >= 1.0.0 with crate(predicates-tree/default) < 2.0.0~)", + "(crate(wait-timeout/default) >= 0.2.0 with crate(wait-timeout/default) < 0.3.0~)", + }, + ), + # default features with dev-dependencies + ( + "assert_fs-1.0.10.json", + FeatureFlags(), + True, + { + "(crate(doc-comment/default) >= 0.3.0 with crate(doc-comment/default) < 0.4.0~)", + "(crate(globwalk/default) >= 0.8.0 with crate(globwalk/default) < 0.9.0~)", + "(crate(predicates) >= 2.0.3 with crate(predicates) < 3.0.0~)", + "(crate(predicates/diff) >= 2.0.3 with crate(predicates/diff) < 3.0.0~)", + "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", + "(crate(predicates-tree/default) >= 1.0.0 with crate(predicates-tree/default) < 2.0.0~)", + "(crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0~)", + }, + ), + # default features without dev-dependencies + ( + "assert_fs-1.0.10.json", + FeatureFlags(), + False, + { + "(crate(doc-comment/default) >= 0.3.0 with crate(doc-comment/default) < 0.4.0~)", + "(crate(globwalk/default) >= 0.8.0 with crate(globwalk/default) < 0.9.0~)", + "(crate(predicates) >= 2.0.3 with crate(predicates) < 3.0.0~)", + "(crate(predicates/diff) >= 2.0.3 with crate(predicates/diff) < 3.0.0~)", + "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", + "(crate(predicates-tree/default) >= 1.0.0 with crate(predicates-tree/default) < 2.0.0~)", + "(crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0~)", + }, + ), + # default features with dev-dependencies + ( + "autocfg-1.1.0.json", + FeatureFlags(), + True, + set(), + ), + # default features without dev-dependencies + ( + "autocfg-1.1.0.json", + FeatureFlags(), + False, + set(), + ), + # default features with dev-dependencies + ( + "bstr-1.2.0.json", + FeatureFlags(), + True, + { + "(crate(memchr) >= 2.4.0 with crate(memchr) < 3.0.0~)", + "(crate(memchr/std) >= 2.4.0 with crate(memchr/std) < 3.0.0~)", + "(crate(once_cell/default) >= 1.14.0 with crate(once_cell/default) < 2.0.0~)", + "(crate(regex-automata) >= 0.1.5 with crate(regex-automata) < 0.2.0~)", + "(crate(quickcheck) >= 1.0.0 with crate(quickcheck) < 2.0.0~)", + "(crate(ucd-parse/default) >= 0.1.3 with crate(ucd-parse/default) < 0.2.0~)", + "(crate(unicode-segmentation/default) >= 1.2.1 with crate(unicode-segmentation/default) < 2.0.0~)", + }.union( + { + "(crate(serde) >= 1.0.85 with crate(serde) < 2.0.0~)", + "(crate(serde/alloc) >= 1.0.85 with crate(serde/alloc) < 2.0.0~)", + "(crate(serde/std) >= 1.0.85 with crate(serde/std) < 2.0.0~)", + } + if CARGO_BUGGY_RESOLVER + else set() + ), + ), + # default features without dev-dependencies + ( + "bstr-1.2.0.json", + FeatureFlags(), + False, + { + "(crate(memchr) >= 2.4.0 with crate(memchr) < 3.0.0~)", + "(crate(memchr/std) >= 2.4.0 with crate(memchr/std) < 3.0.0~)", + "(crate(once_cell/default) >= 1.14.0 with crate(once_cell/default) < 2.0.0~)", + "(crate(regex-automata) >= 0.1.5 with crate(regex-automata) < 0.2.0~)", + }.union( + { + "(crate(serde) >= 1.0.85 with crate(serde) < 2.0.0~)", + "(crate(serde/alloc) >= 1.0.85 with crate(serde/alloc) < 2.0.0~)", + "(crate(serde/std) >= 1.0.85 with crate(serde/std) < 2.0.0~)", + } + if CARGO_BUGGY_RESOLVER + else set() + ), + ), + # default features with dev-dependencies + ( + "cfg-if-1.0.0.json", + FeatureFlags(), + True, + set(), + ), + # default features without dev-dependencies + ( + "cfg-if-1.0.0.json", + FeatureFlags(), + False, + set(), + ), + # default features with dev-dependencies + ( + "clap-4.1.4.json", + FeatureFlags(), + True, + { + "(crate(bitflags/default) >= 1.2.0 with crate(bitflags/default) < 2.0.0~)", + "(crate(clap_lex/default) >= 0.3.0 with crate(clap_lex/default) < 0.4.0~)", + "(crate(is-terminal/default) >= 0.4.1 with crate(is-terminal/default) < 0.5.0~)", + "(crate(strsim/default) >= 0.10.0 with crate(strsim/default) < 0.11.0~)", + "(crate(termcolor/default) >= 1.1.1 with crate(termcolor/default) < 2.0.0~)", + "(crate(humantime/default) >= 2.0.0 with crate(humantime/default) < 3.0.0~)", + "(crate(rustversion/default) >= 1.0.0 with crate(rustversion/default) < 2.0.0~)", + "(crate(shlex/default) >= 1.1.0 with crate(shlex/default) < 2.0.0~)", + "(crate(snapbox/default) >= 0.4.0 with crate(snapbox/default) < 0.5.0~)", + "(crate(static_assertions/default) >= 1.1.0 with crate(static_assertions/default) < 2.0.0~)", + "(crate(trybuild/default) >= 1.0.73 with crate(trybuild/default) < 2.0.0~)", + "(crate(trycmd) >= 0.14.9 with crate(trycmd) < 0.15.0~)", + "(crate(trycmd/color-auto) >= 0.14.9 with crate(trycmd/color-auto) < 0.15.0~)", + "(crate(trycmd/diff) >= 0.14.9 with crate(trycmd/diff) < 0.15.0~)", + "(crate(trycmd/examples) >= 0.14.9 with crate(trycmd/examples) < 0.15.0~)", + "(crate(unic-emoji-char/default) >= 0.9.0 with crate(unic-emoji-char/default) < 0.10.0~)", + }, + ), + # default features without dev-dependencies + ( + "clap-4.1.4.json", + FeatureFlags(), + False, + { + "(crate(bitflags/default) >= 1.2.0 with crate(bitflags/default) < 2.0.0~)", + "(crate(clap_lex/default) >= 0.3.0 with crate(clap_lex/default) < 0.4.0~)", + "(crate(is-terminal/default) >= 0.4.1 with crate(is-terminal/default) < 0.5.0~)", + "(crate(strsim/default) >= 0.10.0 with crate(strsim/default) < 0.11.0~)", + "(crate(termcolor/default) >= 1.1.1 with crate(termcolor/default) < 2.0.0~)", + }, + ), + # default features with dev-dependencies + ( + "gstreamer-0.19.7.json", + FeatureFlags(), + True, + { + "(crate(bitflags/default) >= 1.0.0 with crate(bitflags/default) < 2.0.0~)", + "(crate(cfg-if/default) >= 1.0.0 with crate(cfg-if/default) < 2.0.0~)", + "(crate(gstreamer-sys/default) >= 0.19.0 with crate(gstreamer-sys/default) < 0.20.0~)", + "(crate(futures-channel/default) >= 0.3.0 with crate(futures-channel/default) < 0.4.0~)", + "(crate(futures-core/default) >= 0.3.0 with crate(futures-core/default) < 0.4.0~)", + "(crate(futures-util) >= 0.3.0 with crate(futures-util) < 0.4.0~)", + "(crate(glib/default) >= 0.16.2 with crate(glib/default) < 0.17.0~)", + "(crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0~)", + "(crate(muldiv/default) >= 1.0.0 with crate(muldiv/default) < 2.0.0~)", + "(crate(num-integer) >= 0.1.0 with crate(num-integer) < 0.2.0~)", + "(crate(num-rational) >= 0.4.0 with crate(num-rational) < 0.5.0~)", + "(crate(once_cell/default) >= 1.0.0 with crate(once_cell/default) < 2.0.0~)", + "(crate(option-operations/default) >= 0.5.0 with crate(option-operations/default) < 0.6.0~)", + "(crate(paste/default) >= 1.0.0 with crate(paste/default) < 2.0.0~)", + "(crate(pretty-hex/default) >= 0.3.0 with crate(pretty-hex/default) < 0.4.0~)", + "(crate(thiserror/default) >= 1.0.0 with crate(thiserror/default) < 2.0.0~)", + "(crate(futures-executor/default) >= 0.3.1 with crate(futures-executor/default) < 0.4.0~)", + "(crate(gir-format-check/default) >= 0.1.0 with crate(gir-format-check/default) < 0.2.0~)", + "(crate(ron/default) >= 0.8.0 with crate(ron/default) < 0.9.0~)", + "(crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0~)", + }, + ), + # default features without dev-dependencies + ( + "gstreamer-0.19.7.json", + FeatureFlags(), + False, + { + "(crate(bitflags/default) >= 1.0.0 with crate(bitflags/default) < 2.0.0~)", + "(crate(cfg-if/default) >= 1.0.0 with crate(cfg-if/default) < 2.0.0~)", + "(crate(gstreamer-sys/default) >= 0.19.0 with crate(gstreamer-sys/default) < 0.20.0~)", + "(crate(futures-channel/default) >= 0.3.0 with crate(futures-channel/default) < 0.4.0~)", + "(crate(futures-core/default) >= 0.3.0 with crate(futures-core/default) < 0.4.0~)", + "(crate(futures-util) >= 0.3.0 with crate(futures-util) < 0.4.0~)", + "(crate(glib/default) >= 0.16.2 with crate(glib/default) < 0.17.0~)", + "(crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0~)", + "(crate(muldiv/default) >= 1.0.0 with crate(muldiv/default) < 2.0.0~)", + "(crate(num-integer) >= 0.1.0 with crate(num-integer) < 0.2.0~)", + "(crate(num-rational) >= 0.4.0 with crate(num-rational) < 0.5.0~)", + "(crate(once_cell/default) >= 1.0.0 with crate(once_cell/default) < 2.0.0~)", + "(crate(option-operations/default) >= 0.5.0 with crate(option-operations/default) < 0.6.0~)", + "(crate(paste/default) >= 1.0.0 with crate(paste/default) < 2.0.0~)", + "(crate(pretty-hex/default) >= 0.3.0 with crate(pretty-hex/default) < 0.4.0~)", + "(crate(thiserror/default) >= 1.0.0 with crate(thiserror/default) < 2.0.0~)", + }, + ), + # default features with dev-dependencies + ( + "human-panic-1.1.0.json", + FeatureFlags(), + True, + { + "(crate(backtrace/default) >= 0.3.9 with crate(backtrace/default) < 0.4.0~)", + "crate(concolor/default) = 0.0.11", + "crate(concolor/auto) = 0.0.11", + "(crate(os_info/default) >= 2.0.6 with crate(os_info/default) < 3.0.0~)", + "(crate(serde/default) >= 1.0.79 with crate(serde/default) < 2.0.0~)", + "(crate(serde_derive/default) >= 1.0.79 with crate(serde_derive/default) < 2.0.0~)", + "(crate(termcolor/default) >= 1.0.4 with crate(termcolor/default) < 2.0.0~)", + "(crate(toml/default) >= 0.5.0 with crate(toml/default) < 0.6.0~)", + "(crate(uuid) >= 0.8.0 with crate(uuid) < 0.9.0~)", + "(crate(uuid/v4) >= 0.8.0 with crate(uuid/v4) < 0.9.0~)", + }, + ), + # default features without dev-dependencies + ( + "human-panic-1.1.0.json", + FeatureFlags(), + False, + { + "(crate(backtrace/default) >= 0.3.9 with crate(backtrace/default) < 0.4.0~)", + "crate(concolor/default) = 0.0.11", + "crate(concolor/auto) = 0.0.11", + "(crate(os_info/default) >= 2.0.6 with crate(os_info/default) < 3.0.0~)", + "(crate(serde/default) >= 1.0.79 with crate(serde/default) < 2.0.0~)", + "(crate(serde_derive/default) >= 1.0.79 with crate(serde_derive/default) < 2.0.0~)", + "(crate(termcolor/default) >= 1.0.4 with crate(termcolor/default) < 2.0.0~)", + "(crate(toml/default) >= 0.5.0 with crate(toml/default) < 0.6.0~)", + "(crate(uuid) >= 0.8.0 with crate(uuid) < 0.9.0~)", + "(crate(uuid/v4) >= 0.8.0 with crate(uuid/v4) < 0.9.0~)", + }, + ), + # default features with dev-dependencies + ( + "iri-string-0.7.0.json", + FeatureFlags(), + True, + {"(crate(serde_test/default) >= 1.0.104 with crate(serde_test/default) < 2.0.0~)"}.union( + { + "(crate(memchr) >= 2.4.1 with crate(memchr) < 3.0.0~)", + "(crate(memchr/std) >= 2.4.1 with crate(memchr/std) < 3.0.0~)", + "(crate(serde) >= 1.0.103 with crate(serde) < 2.0.0~)", + "(crate(serde/alloc) >= 1.0.103 with crate(serde/alloc) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.103 with crate(serde/derive) < 2.0.0~)", + "(crate(serde/std) >= 1.0.103 with crate(serde/std) < 2.0.0~)", + } + if CARGO_BUGGY_RESOLVER + else set() + ), + ), + # default features without dev-dependencies + ( + "iri-string-0.7.0.json", + FeatureFlags(), + False, + { + "(crate(memchr) >= 2.4.1 with crate(memchr) < 3.0.0~)", + "(crate(memchr/std) >= 2.4.1 with crate(memchr/std) < 3.0.0~)", + "(crate(serde) >= 1.0.103 with crate(serde) < 2.0.0~)", + "(crate(serde/alloc) >= 1.0.103 with crate(serde/alloc) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.103 with crate(serde/derive) < 2.0.0~)", + "(crate(serde/std) >= 1.0.103 with crate(serde/std) < 2.0.0~)", + } + if CARGO_BUGGY_RESOLVER + else set(), + ), + # default features with dev-dependencies + ("libc-0.2.139.json", FeatureFlags(), True, set()), + # default features without dev-dependencies + ("libc-0.2.139.json", FeatureFlags(), False, set()), + # default features with dev-dependencies + ( + "predicates-2.1.5.json", + FeatureFlags(), + True, + { + "(crate(difflib/default) >= 0.4.0 with crate(difflib/default) < 0.5.0~)", + "(crate(float-cmp/default) >= 0.9.0 with crate(float-cmp/default) < 0.10.0~)", + "(crate(itertools/default) >= 0.10.0 with crate(itertools/default) < 0.11.0~)", + "(crate(normalize-line-endings/default) >= 0.3.0 with crate(normalize-line-endings/default) < 0.4.0~)", + "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", + "(crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0~)", + "(crate(predicates-tree/default) >= 1.0.0 with crate(predicates-tree/default) < 2.0.0~)", + }, + ), + # default features without dev-dependencies + ( + "predicates-2.1.5.json", + FeatureFlags(), + False, + { + "(crate(difflib/default) >= 0.4.0 with crate(difflib/default) < 0.5.0~)", + "(crate(float-cmp/default) >= 0.9.0 with crate(float-cmp/default) < 0.10.0~)", + "(crate(itertools/default) >= 0.10.0 with crate(itertools/default) < 0.11.0~)", + "(crate(normalize-line-endings/default) >= 0.3.0 with crate(normalize-line-endings/default) < 0.4.0~)", + "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", + "(crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0~)", + }, + ), + # default features with dev-dependencies + ( + "proc-macro2-1.0.50.json", + FeatureFlags(), + True, + { + "(crate(unicode-ident/default) >= 1.0.0 with crate(unicode-ident/default) < 2.0.0~)", + "(crate(quote) >= 1.0.0 with crate(quote) < 2.0.0~)", + }, + ), + # default features without dev-dependencies + ( + "proc-macro2-1.0.50.json", + FeatureFlags(), + False, + {"(crate(unicode-ident/default) >= 1.0.0 with crate(unicode-ident/default) < 2.0.0~)"}, + ), + # default features with dev-dependencies + ( + "quote-1.0.23.json", + FeatureFlags(), + True, + { + "(crate(proc-macro2) >= 1.0.40 with crate(proc-macro2) < 2.0.0~)", + "(crate(proc-macro2/proc-macro) >= 1.0.40 with crate(proc-macro2/proc-macro) < 2.0.0~)", + "(crate(rustversion/default) >= 1.0.0 with crate(rustversion/default) < 2.0.0~)", + "(crate(trybuild/default) >= 1.0.66 with crate(trybuild/default) < 2.0.0~)", + "(crate(trybuild/diff) >= 1.0.66 with crate(trybuild/diff) < 2.0.0~)", + }, + ), + # default features without dev-dependencies + ( + "quote-1.0.23.json", + FeatureFlags(), + False, + { + "(crate(proc-macro2) >= 1.0.40 with crate(proc-macro2) < 2.0.0~)", + "(crate(proc-macro2/proc-macro) >= 1.0.40 with crate(proc-macro2/proc-macro) < 2.0.0~)", + }, + ), + # default features with dev-dependencies + ( + "rand-0.8.5.json", + FeatureFlags(), + True, + { + "(crate(rand_chacha) >= 0.3.0 with crate(rand_chacha) < 0.4.0~)", + "(crate(rand_chacha/std) >= 0.3.0 with crate(rand_chacha/std) < 0.4.0~)", + "(crate(rand_core/default) >= 0.6.0 with crate(rand_core/default) < 0.7.0~)", + "(crate(rand_core/alloc) >= 0.6.0 with crate(rand_core/alloc) < 0.7.0~)", + "(crate(rand_core/getrandom) >= 0.6.0 with crate(rand_core/getrandom) < 0.7.0~)", + "(crate(rand_core/std) >= 0.6.0 with crate(rand_core/std) < 0.7.0~)", + "(crate(bincode/default) >= 1.2.1 with crate(bincode/default) < 2.0.0~)", + "(crate(rand_pcg/default) >= 0.3.0 with crate(rand_pcg/default) < 0.4.0~)", + "(crate(libc) >= 0.2.22 with crate(libc) < 0.3.0~)", + }, + ), + # default features without dev-dependencies + ( + "rand-0.8.5.json", + FeatureFlags(), + False, + { + "(crate(rand_chacha) >= 0.3.0 with crate(rand_chacha) < 0.4.0~)", + "(crate(rand_chacha/std) >= 0.3.0 with crate(rand_chacha/std) < 0.4.0~)", + "(crate(rand_core/default) >= 0.6.0 with crate(rand_core/default) < 0.7.0~)", + "(crate(rand_core/alloc) >= 0.6.0 with crate(rand_core/alloc) < 0.7.0~)", + "(crate(rand_core/getrandom) >= 0.6.0 with crate(rand_core/getrandom) < 0.7.0~)", + "(crate(rand_core/std) >= 0.6.0 with crate(rand_core/std) < 0.7.0~)", + "(crate(libc) >= 0.2.22 with crate(libc) < 0.3.0~)", + }, + ), + # default features with dev-dependencies + ("rand_core-0.6.4.json", FeatureFlags(), True, set()), + # default features without dev-dependencies + ("rand_core-0.6.4.json", FeatureFlags(), False, set()), + # default features with dev-dependencies + ( + "regex-1.8.4.json", + FeatureFlags(), + True, + { + "(crate(aho-corasick/default) >= 1.0.0 with crate(aho-corasick/default) < 2.0.0~)", + "(crate(memchr/default) >= 2.5.0 with crate(memchr/default) < 3.0.0~)", + "(crate(regex-syntax/default) >= 0.7.2 with crate(regex-syntax/default) < 0.8.0~)", + "(crate(regex-syntax/unicode) >= 0.7.2 with crate(regex-syntax/unicode) < 0.8.0~)", + "(crate(regex-syntax/unicode-age) >= 0.7.2 with crate(regex-syntax/unicode-age) < 0.8.0~)", + "(crate(regex-syntax/unicode-bool) >= 0.7.2 with crate(regex-syntax/unicode-bool) < 0.8.0~)", + "(crate(regex-syntax/unicode-case) >= 0.7.2 with crate(regex-syntax/unicode-case) < 0.8.0~)", + "(crate(regex-syntax/unicode-gencat) >= 0.7.2 with crate(regex-syntax/unicode-gencat) < 0.8.0~)", + "(crate(regex-syntax/unicode-perl) >= 0.7.2 with crate(regex-syntax/unicode-perl) < 0.8.0~)", + "(crate(regex-syntax/unicode-script) >= 0.7.2 with crate(regex-syntax/unicode-script) < 0.8.0~)", + "(crate(regex-syntax/unicode-segment) >= 0.7.2 with crate(regex-syntax/unicode-segment) < 0.8.0~)", + "(crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0~)", + "(crate(quickcheck) >= 1.0.3 with crate(quickcheck) < 2.0.0~)", + "(crate(rand) >= 0.8.3 with crate(rand) < 0.9.0~)", + "(crate(rand/getrandom) >= 0.8.3 with crate(rand/getrandom) < 0.9.0~)", + "(crate(rand/small_rng) >= 0.8.3 with crate(rand/small_rng) < 0.9.0~)", + }, + ), + # default features without dev-dependencies + ( + "regex-1.8.4.json", + FeatureFlags(), + False, + { + "(crate(aho-corasick/default) >= 1.0.0 with crate(aho-corasick/default) < 2.0.0~)", + "(crate(memchr/default) >= 2.5.0 with crate(memchr/default) < 3.0.0~)", + "(crate(regex-syntax/default) >= 0.7.2 with crate(regex-syntax/default) < 0.8.0~)", + "(crate(regex-syntax/unicode) >= 0.7.2 with crate(regex-syntax/unicode) < 0.8.0~)", + "(crate(regex-syntax/unicode-age) >= 0.7.2 with crate(regex-syntax/unicode-age) < 0.8.0~)", + "(crate(regex-syntax/unicode-bool) >= 0.7.2 with crate(regex-syntax/unicode-bool) < 0.8.0~)", + "(crate(regex-syntax/unicode-case) >= 0.7.2 with crate(regex-syntax/unicode-case) < 0.8.0~)", + "(crate(regex-syntax/unicode-gencat) >= 0.7.2 with crate(regex-syntax/unicode-gencat) < 0.8.0~)", + "(crate(regex-syntax/unicode-perl) >= 0.7.2 with crate(regex-syntax/unicode-perl) < 0.8.0~)", + "(crate(regex-syntax/unicode-script) >= 0.7.2 with crate(regex-syntax/unicode-script) < 0.8.0~)", + "(crate(regex-syntax/unicode-segment) >= 0.7.2 with crate(regex-syntax/unicode-segment) < 0.8.0~)", + }, + ), + # default features with dev-dependencies + ("regex-syntax-0.7.2.json", FeatureFlags(), True, set()), + # default features without dev-dependencies + ("regex-syntax-0.7.2.json", FeatureFlags(), False, set()), + # default features with dev-dependencies + ( + "rpm-sequoia-1.2.0.json", + FeatureFlags(), + True, + { + "(crate(anyhow/default) >= 1.0.0 with crate(anyhow/default) < 2.0.0~)", + "(crate(buffered-reader) >= 1.0.0 with crate(buffered-reader) < 2.0.0~)", + "(crate(chrono) >= 0.4.0 with crate(chrono) < 0.5.0~)", + "(crate(chrono/std) >= 0.4.0 with crate(chrono/std) < 0.5.0~)", + "(crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0~)", + "(crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0~)", + "(crate(sequoia-openpgp) >= 1.11.0 with crate(sequoia-openpgp) < 2.0.0~)", + "(crate(sequoia-openpgp/crypto-nettle) >= 1.11.0 with crate(sequoia-openpgp/crypto-nettle) < 2.0.0~)", + "(crate(sequoia-policy-config/default) >= 0.5.0 with crate(sequoia-policy-config/default) < 0.6.0~)", + "(crate(thiserror/default) >= 1.0.0 with crate(thiserror/default) < 2.0.0~)", + "(crate(assert_cmd/default) >= 2.0.0 with crate(assert_cmd/default) < 3.0.0~)", + "(crate(cdylib-link-lines/default) >= 0.1.4 with crate(cdylib-link-lines/default) < 0.2.0~)", + }, + ), + # default features without dev-dependencies + ( + "rpm-sequoia-1.2.0.json", + FeatureFlags(), + False, + { + "(crate(anyhow/default) >= 1.0.0 with crate(anyhow/default) < 2.0.0~)", + "(crate(buffered-reader) >= 1.0.0 with crate(buffered-reader) < 2.0.0~)", + "(crate(chrono) >= 0.4.0 with crate(chrono) < 0.5.0~)", + "(crate(chrono/std) >= 0.4.0 with crate(chrono/std) < 0.5.0~)", + "(crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0~)", + "(crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0~)", + "(crate(sequoia-openpgp) >= 1.11.0 with crate(sequoia-openpgp) < 2.0.0~)", + "(crate(sequoia-openpgp/crypto-nettle) >= 1.11.0 with crate(sequoia-openpgp/crypto-nettle) < 2.0.0~)", + "(crate(sequoia-policy-config/default) >= 0.5.0 with crate(sequoia-policy-config/default) < 0.6.0~)", + "(crate(thiserror/default) >= 1.0.0 with crate(thiserror/default) < 2.0.0~)", + "(crate(cdylib-link-lines/default) >= 0.1.4 with crate(cdylib-link-lines/default) < 0.2.0~)", + }, + ), + # default features with dev-dependencies + ( + "rust_decimal-1.28.0.json", + FeatureFlags(), + True, + { + "(crate(arrayvec) >= 0.7.0 with crate(arrayvec) < 0.8.0~)", + "(crate(arrayvec/std) >= 0.7.0 with crate(arrayvec/std) < 0.8.0~)", + "(crate(num-traits) >= 0.2.0 with crate(num-traits) < 0.3.0~)", + "(crate(num-traits/i128) >= 0.2.0 with crate(num-traits/i128) < 0.3.0~)", + "(crate(serde) >= 1.0.0 with crate(serde) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", + "(crate(serde/std) >= 1.0.0 with crate(serde/std) < 2.0.0~)", + "(crate(bincode) >= 1.0.0 with crate(bincode) < 2.0.0~)", + "(crate(bytes) >= 1.0.0 with crate(bytes) < 2.0.0~)", + "(crate(criterion) >= 0.3.0 with crate(criterion) < 0.4.0~)", + "(crate(csv/default) >= 1.0.0 with crate(csv/default) < 2.0.0~)", + "(crate(futures) >= 0.3.0 with crate(futures) < 0.4.0~)", + "(crate(rand) >= 0.8.0 with crate(rand) < 0.9.0~)", + "(crate(rand/getrandom) >= 0.8.0 with crate(rand/getrandom) < 0.9.0~)", + "(crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0~)", + "(crate(tokio) >= 1.0.0 with crate(tokio) < 2.0.0~)", + "(crate(tokio/macros) >= 1.0.0 with crate(tokio/macros) < 2.0.0~)", + "(crate(tokio/rt-multi-thread) >= 1.0.0 with crate(tokio/rt-multi-thread) < 2.0.0~)", + "(crate(tokio/test-util) >= 1.0.0 with crate(tokio/test-util) < 2.0.0~)", + "(crate(version-sync) >= 0.9.0 with crate(version-sync) < 0.10.0~)", + "(crate(version-sync/html_root_url_updated) >= 0.9.0 with crate(version-sync/html_root_url_updated) < 0.10.0~)", + "(crate(version-sync/markdown_deps_updated) >= 0.9.0 with crate(version-sync/markdown_deps_updated) < 0.10.0~)", + }.union( + { + "(crate(borsh) >= 0.9.0 with crate(borsh) < 0.10.0~)", + "(crate(borsh/std) >= 0.9.0 with crate(borsh/std) < 0.10.0~)", + "(crate(bytecheck) >= 0.6.0 with crate(bytecheck) < 0.7.0~)", + "(crate(bytecheck/std) >= 0.6.0 with crate(bytecheck/std) < 0.7.0~)", + "(crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0~)", + "(crate(byteorder/std) >= 1.0.0 with crate(byteorder/std) < 2.0.0~)", + "(crate(bytes/std) >= 1.0.0 with crate(bytes/std) < 2.0.0~)", + "(crate(rand/std) >= 0.8.0 with crate(rand/std) < 0.9.0~)", + "(crate(rkyv) >= 0.7.0 with crate(rkyv) < 0.8.0~)", + "(crate(rkyv/size_32) >= 0.7.0 with crate(rkyv/size_32) < 0.8.0~)", + "(crate(rkyv/std) >= 0.7.0 with crate(rkyv/std) < 0.8.0~)", + "(crate(serde_json/std) >= 1.0.0 with crate(serde_json/std) < 2.0.0~)", + } + if CARGO_BUGGY_RESOLVER + else set() + ), + ), + # default features without dev-dependencies + ( + "rust_decimal-1.28.0.json", + FeatureFlags(), + False, + { + "(crate(arrayvec) >= 0.7.0 with crate(arrayvec) < 0.8.0~)", + "(crate(arrayvec/std) >= 0.7.0 with crate(arrayvec/std) < 0.8.0~)", + "(crate(num-traits) >= 0.2.0 with crate(num-traits) < 0.3.0~)", + "(crate(num-traits/i128) >= 0.2.0 with crate(num-traits/i128) < 0.3.0~)", + "(crate(serde) >= 1.0.0 with crate(serde) < 2.0.0~)", + "(crate(serde/std) >= 1.0.0 with crate(serde/std) < 2.0.0~)", + }.union( + { + "(crate(borsh) >= 0.9.0 with crate(borsh) < 0.10.0~)", + "(crate(borsh/std) >= 0.9.0 with crate(borsh/std) < 0.10.0~)", + "(crate(bytecheck) >= 0.6.0 with crate(bytecheck) < 0.7.0~)", + "(crate(bytecheck/std) >= 0.6.0 with crate(bytecheck/std) < 0.7.0~)", + "(crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0~)", + "(crate(byteorder/std) >= 1.0.0 with crate(byteorder/std) < 2.0.0~)", + "(crate(bytes) >= 1.0.0 with crate(bytes) < 2.0.0~)", + "(crate(bytes/std) >= 1.0.0 with crate(bytes/std) < 2.0.0~)", + "(crate(rand) >= 0.8.0 with crate(rand) < 0.9.0~)", + "(crate(rand/std) >= 0.8.0 with crate(rand/std) < 0.9.0~)", + "(crate(rkyv) >= 0.7.0 with crate(rkyv) < 0.8.0~)", + "(crate(rkyv/size_32) >= 0.7.0 with crate(rkyv/size_32) < 0.8.0~)", + "(crate(rkyv/std) >= 0.7.0 with crate(rkyv/std) < 0.8.0~)", + "(crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0~)", + "(crate(serde_json/std) >= 1.0.0 with crate(serde_json/std) < 2.0.0~)", + } + if CARGO_BUGGY_RESOLVER + else set() + ), + ), + # default features with dev-dependencies + ( + "rustix-0.36.8.json", + FeatureFlags(), + True, + { + "(crate(bitflags/default) >= 1.2.1 with crate(bitflags/default) < 2.0.0~)", + "(crate(io-lifetimes) >= 1.0.0 with crate(io-lifetimes) < 2.0.0~)", + "(crate(io-lifetimes/close) >= 1.0.0 with crate(io-lifetimes/close) < 2.0.0~)", + "(crate(flate2/default) >= 1.0.0 with crate(flate2/default) < 2.0.0~)", + "(crate(libc/default) >= 0.2.133 with crate(libc/default) < 0.3.0~)", + "(crate(errno) >= 0.2.8 with crate(errno) < 0.3.0~)", + "(crate(memoffset/default) >= 0.7.1 with crate(memoffset/default) < 0.8.0~)", + "(crate(serial_test/default) >= 0.6.0 with crate(serial_test/default) < 0.7.0~)", + "(crate(tempfile/default) >= 3.2.0 with crate(tempfile/default) < 4.0.0~)", + "(crate(linux-raw-sys) >= 0.1.2 with crate(linux-raw-sys) < 0.2.0~)", + "(crate(linux-raw-sys/general) >= 0.1.2 with crate(linux-raw-sys/general) < 0.2.0~)", + "(crate(linux-raw-sys/no_std) >= 0.1.2 with crate(linux-raw-sys/no_std) < 0.2.0~)", + "(crate(criterion/default) >= 0.4.0 with crate(criterion/default) < 0.5.0~)", + "(crate(libc/extra_traits) >= 0.2.133 with crate(libc/extra_traits) < 0.3.0~)", + "(crate(linux-raw-sys/errno) >= 0.1.2 with crate(linux-raw-sys/errno) < 0.2.0~)", + "(crate(linux-raw-sys/ioctl) >= 0.1.2 with crate(linux-raw-sys/ioctl) < 0.2.0~)", + "(crate(windows-sys/default) >= 0.45.0 with crate(windows-sys/default) < 0.46.0~)", + "(crate(windows-sys/Win32_Foundation) >= 0.45.0 with crate(windows-sys/Win32_Foundation) < 0.46.0~)", + "(crate(windows-sys/Win32_Networking_WinSock) >= 0.45.0 with crate(windows-sys/Win32_Networking_WinSock) < 0.46.0~)", + "(crate(windows-sys/Win32_NetworkManagement_IpHelper) >= 0.45.0 with crate(windows-sys/Win32_NetworkManagement_IpHelper) < 0.46.0~)", + "(crate(windows-sys/Win32_System_Threading) >= 0.45.0 with crate(windows-sys/Win32_System_Threading) < 0.46.0~)", + "(crate(ctor/default) >= 0.1.21 with crate(ctor/default) < 0.2.0~)", + }, + ), + # default features + cc with dev-dependencies + ( + "rustix-0.36.8.json", + FeatureFlags(features=["cc"]), + True, + { + "(crate(bitflags/default) >= 1.2.1 with crate(bitflags/default) < 2.0.0~)", + "(crate(io-lifetimes) >= 1.0.0 with crate(io-lifetimes) < 2.0.0~)", + "(crate(io-lifetimes/close) >= 1.0.0 with crate(io-lifetimes/close) < 2.0.0~)", + "(crate(flate2/default) >= 1.0.0 with crate(flate2/default) < 2.0.0~)", + "(crate(libc/default) >= 0.2.133 with crate(libc/default) < 0.3.0~)", + "(crate(errno) >= 0.2.8 with crate(errno) < 0.3.0~)", + "(crate(memoffset/default) >= 0.7.1 with crate(memoffset/default) < 0.8.0~)", + "(crate(serial_test/default) >= 0.6.0 with crate(serial_test/default) < 0.7.0~)", + "(crate(tempfile/default) >= 3.2.0 with crate(tempfile/default) < 4.0.0~)", + "(crate(cc/default) >= 1.0.68 with crate(cc/default) < 2.0.0~)", + "(crate(linux-raw-sys) >= 0.1.2 with crate(linux-raw-sys) < 0.2.0~)", + "(crate(linux-raw-sys/general) >= 0.1.2 with crate(linux-raw-sys/general) < 0.2.0~)", + "(crate(linux-raw-sys/no_std) >= 0.1.2 with crate(linux-raw-sys/no_std) < 0.2.0~)", + "(crate(criterion/default) >= 0.4.0 with crate(criterion/default) < 0.5.0~)", + "(crate(libc/extra_traits) >= 0.2.133 with crate(libc/extra_traits) < 0.3.0~)", + "(crate(linux-raw-sys/errno) >= 0.1.2 with crate(linux-raw-sys/errno) < 0.2.0~)", + "(crate(linux-raw-sys/ioctl) >= 0.1.2 with crate(linux-raw-sys/ioctl) < 0.2.0~)", + "(crate(windows-sys/default) >= 0.45.0 with crate(windows-sys/default) < 0.46.0~)", + "(crate(windows-sys/Win32_Foundation) >= 0.45.0 with crate(windows-sys/Win32_Foundation) < 0.46.0~)", + "(crate(windows-sys/Win32_Networking_WinSock) >= 0.45.0 with crate(windows-sys/Win32_Networking_WinSock) < 0.46.0~)", + "(crate(windows-sys/Win32_NetworkManagement_IpHelper) >= 0.45.0 with crate(windows-sys/Win32_NetworkManagement_IpHelper) < 0.46.0~)", + "(crate(windows-sys/Win32_System_Threading) >= 0.45.0 with crate(windows-sys/Win32_System_Threading) < 0.46.0~)", + "(crate(ctor/default) >= 0.1.21 with crate(ctor/default) < 0.2.0~)", + }, + ), + # default features without dev-dependencies + ( + "rustix-0.36.8.json", + FeatureFlags(), + False, + { + "(crate(bitflags/default) >= 1.2.1 with crate(bitflags/default) < 2.0.0~)", + "(crate(io-lifetimes) >= 1.0.0 with crate(io-lifetimes) < 2.0.0~)", + "(crate(io-lifetimes/close) >= 1.0.0 with crate(io-lifetimes/close) < 2.0.0~)", + "(crate(libc/default) >= 0.2.133 with crate(libc/default) < 0.3.0~)", + "(crate(errno) >= 0.2.8 with crate(errno) < 0.3.0~)", + "(crate(linux-raw-sys) >= 0.1.2 with crate(linux-raw-sys) < 0.2.0~)", + "(crate(linux-raw-sys/general) >= 0.1.2 with crate(linux-raw-sys/general) < 0.2.0~)", + "(crate(linux-raw-sys/no_std) >= 0.1.2 with crate(linux-raw-sys/no_std) < 0.2.0~)", + "(crate(libc/extra_traits) >= 0.2.133 with crate(libc/extra_traits) < 0.3.0~)", + "(crate(linux-raw-sys/errno) >= 0.1.2 with crate(linux-raw-sys/errno) < 0.2.0~)", + "(crate(linux-raw-sys/ioctl) >= 0.1.2 with crate(linux-raw-sys/ioctl) < 0.2.0~)", + "(crate(windows-sys/default) >= 0.45.0 with crate(windows-sys/default) < 0.46.0~)", + "(crate(windows-sys/Win32_Foundation) >= 0.45.0 with crate(windows-sys/Win32_Foundation) < 0.46.0~)", + "(crate(windows-sys/Win32_Networking_WinSock) >= 0.45.0 with crate(windows-sys/Win32_Networking_WinSock) < 0.46.0~)", + "(crate(windows-sys/Win32_NetworkManagement_IpHelper) >= 0.45.0 with crate(windows-sys/Win32_NetworkManagement_IpHelper) < 0.46.0~)", + "(crate(windows-sys/Win32_System_Threading) >= 0.45.0 with crate(windows-sys/Win32_System_Threading) < 0.46.0~)", + }, + ), + # default features + cc without dev-dependencies + ( + "rustix-0.36.8.json", + FeatureFlags(features=["cc"]), + False, + { + "(crate(bitflags/default) >= 1.2.1 with crate(bitflags/default) < 2.0.0~)", + "(crate(io-lifetimes) >= 1.0.0 with crate(io-lifetimes) < 2.0.0~)", + "(crate(io-lifetimes/close) >= 1.0.0 with crate(io-lifetimes/close) < 2.0.0~)", + "(crate(libc/default) >= 0.2.133 with crate(libc/default) < 0.3.0~)", + "(crate(errno) >= 0.2.8 with crate(errno) < 0.3.0~)", + "(crate(cc/default) >= 1.0.68 with crate(cc/default) < 2.0.0~)", + "(crate(linux-raw-sys) >= 0.1.2 with crate(linux-raw-sys) < 0.2.0~)", + "(crate(linux-raw-sys/general) >= 0.1.2 with crate(linux-raw-sys/general) < 0.2.0~)", + "(crate(linux-raw-sys/no_std) >= 0.1.2 with crate(linux-raw-sys/no_std) < 0.2.0~)", + "(crate(libc/extra_traits) >= 0.2.133 with crate(libc/extra_traits) < 0.3.0~)", + "(crate(linux-raw-sys/errno) >= 0.1.2 with crate(linux-raw-sys/errno) < 0.2.0~)", + "(crate(linux-raw-sys/ioctl) >= 0.1.2 with crate(linux-raw-sys/ioctl) < 0.2.0~)", + "(crate(windows-sys/default) >= 0.45.0 with crate(windows-sys/default) < 0.46.0~)", + "(crate(windows-sys/Win32_Foundation) >= 0.45.0 with crate(windows-sys/Win32_Foundation) < 0.46.0~)", + "(crate(windows-sys/Win32_Networking_WinSock) >= 0.45.0 with crate(windows-sys/Win32_Networking_WinSock) < 0.46.0~)", + "(crate(windows-sys/Win32_NetworkManagement_IpHelper) >= 0.45.0 with crate(windows-sys/Win32_NetworkManagement_IpHelper) < 0.46.0~)", + "(crate(windows-sys/Win32_System_Threading) >= 0.45.0 with crate(windows-sys/Win32_System_Threading) < 0.46.0~)", + }, + ), + # default features with dev-dependencies + ( + "serde-1.0.152.json", + FeatureFlags(), + True, + { + "(crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default) < 2.0.0~)", + }, + ), + # default features without dev-dependencies + ( + "serde-1.0.152.json", + FeatureFlags(), + False, + set(), + ), + # default features with dev-dependencies + ( + "serde_derive-1.0.152.json", + FeatureFlags(), + True, + { + "(crate(proc-macro2/default) >= 1.0.0 with crate(proc-macro2/default) < 2.0.0~)", + "(crate(quote/default) >= 1.0.0 with crate(quote/default) < 2.0.0~)", + "(crate(syn/default) >= 1.0.104 with crate(syn/default) < 2.0.0~)", + "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", + }, + ), + # default features without dev-dependencies + ( + "serde_derive-1.0.152.json", + FeatureFlags(), + False, + { + "(crate(proc-macro2/default) >= 1.0.0 with crate(proc-macro2/default) < 2.0.0~)", + "(crate(quote/default) >= 1.0.0 with crate(quote/default) < 2.0.0~)", + "(crate(syn/default) >= 1.0.104 with crate(syn/default) < 2.0.0~)", + }, + ), + # default features with dev-dependencies + ( + "syn-1.0.107.json", + FeatureFlags(), + True, + { + "(crate(proc-macro2) >= 1.0.46 with crate(proc-macro2) < 2.0.0~)", + "(crate(proc-macro2/proc-macro) >= 1.0.46 with crate(proc-macro2/proc-macro) < 2.0.0~)", + "(crate(quote) >= 1.0.0 with crate(quote) < 2.0.0~)", + "(crate(quote/proc-macro) >= 1.0.0 with crate(quote/proc-macro) < 2.0.0~)", + "(crate(unicode-ident/default) >= 1.0.0 with crate(unicode-ident/default) < 2.0.0~)", + "(crate(anyhow/default) >= 1.0.0 with crate(anyhow/default) < 2.0.0~)", + "(crate(automod/default) >= 1.0.0 with crate(automod/default) < 2.0.0~)", + "(crate(flate2/default) >= 1.0.0 with crate(flate2/default) < 2.0.0~)", + "(crate(insta/default) >= 1.0.0 with crate(insta/default) < 2.0.0~)", + "(crate(rayon/default) >= 1.0.0 with crate(rayon/default) < 2.0.0~)", + "(crate(ref-cast/default) >= 1.0.0 with crate(ref-cast/default) < 2.0.0~)", + "(crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0~)", + "(crate(reqwest/default) >= 0.11.0 with crate(reqwest/default) < 0.12.0~)", + "(crate(reqwest/blocking) >= 0.11.0 with crate(reqwest/blocking) < 0.12.0~)", + "(crate(syn-test-suite/default) >= 0.0.0 with crate(syn-test-suite/default) < 1.0.0~)", + "(crate(tar/default) >= 0.4.16 with crate(tar/default) < 0.5.0~)", + "(crate(termcolor/default) >= 1.0.0 with crate(termcolor/default) < 2.0.0~)", + "(crate(walkdir/default) >= 2.1.0 with crate(walkdir/default) < 3.0.0~)", + }, + ), + # default features without dev-dependencies + ( + "syn-1.0.107.json", + FeatureFlags(), + False, + { + "(crate(proc-macro2) >= 1.0.46 with crate(proc-macro2) < 2.0.0~)", + "(crate(proc-macro2/proc-macro) >= 1.0.46 with crate(proc-macro2/proc-macro) < 2.0.0~)", + "(crate(quote) >= 1.0.0 with crate(quote) < 2.0.0~)", + "(crate(quote/proc-macro) >= 1.0.0 with crate(quote/proc-macro) < 2.0.0~)", + "(crate(unicode-ident/default) >= 1.0.0 with crate(unicode-ident/default) < 2.0.0~)", + }, + ), + # default features with dev-dependencies + ( + "time-0.3.17.json", + FeatureFlags(), + True, + { + "crate(time-core/default) = 0.1.0", + "(crate(quickcheck_macros/default) >= 1.0.0 with crate(quickcheck_macros/default) < 2.0.0~)", + "(crate(rand) >= 0.8.4 with crate(rand) < 0.9.0~)", + "(crate(serde) >= 1.0.126 with crate(serde) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.126 with crate(serde/derive) < 2.0.0~)", + "(crate(serde_json/default) >= 1.0.68 with crate(serde_json/default) < 2.0.0~)", + "(crate(serde_test/default) >= 1.0.126 with crate(serde_test/default) < 2.0.0~)", + "crate(time-macros/default) = 0.2.6", + "(crate(trybuild/default) >= 1.0.68 with crate(trybuild/default) < 2.0.0~)", + "(crate(criterion) >= 0.4.0 with crate(criterion) < 0.5.0~)", + }.union({"(crate(serde/alloc) >= 1.0.126 with crate(serde/alloc) < 2.0.0~)"} if CARGO_BUGGY_RESOLVER else set()), + ), + # default features without dev-dependencies + ( + "time-0.3.17.json", + FeatureFlags(), + False, + {"crate(time-core/default) = 0.1.0",}.union( + { + "(crate(serde) >= 1.0.126 with crate(serde) < 2.0.0~)", + "(crate(serde/alloc) >= 1.0.126 with crate(serde/alloc) < 2.0.0~)", + } + if CARGO_BUGGY_RESOLVER + else set() + ), + ), + # default features with dev-dependencies + ( + "tokio-1.25.0.json", + FeatureFlags(), + True, + { + "(crate(pin-project-lite/default) >= 0.2.0 with crate(pin-project-lite/default) < 0.3.0~)", + "(crate(async-stream/default) >= 0.3.0 with crate(async-stream/default) < 0.4.0~)", + "(crate(futures/default) >= 0.3.0 with crate(futures/default) < 0.4.0~)", + "(crate(futures/async-await) >= 0.3.0 with crate(futures/async-await) < 0.4.0~)", + "(crate(mockall/default) >= 0.11.1 with crate(mockall/default) < 0.12.0~)", + "(crate(tempfile/default) >= 3.1.0 with crate(tempfile/default) < 4.0.0~)", + "(crate(tokio-stream/default) >= 0.1.0 with crate(tokio-stream/default) < 0.2.0~)", + "(crate(tokio-test/default) >= 0.4.0 with crate(tokio-test/default) < 0.5.0~)", + "(crate(autocfg/default) >= 1.1.0 with crate(autocfg/default) < 2.0.0~)", + "(crate(wasm-bindgen-test/default) >= 0.3.0 with crate(wasm-bindgen-test/default) < 0.4.0~)", + "(crate(windows-sys/default) >= 0.42.0 with crate(windows-sys/default) < 0.43.0~)", + "(crate(windows-sys/Win32_Foundation) >= 0.42.0 with crate(windows-sys/Win32_Foundation) < 0.43.0~)", + "(crate(windows-sys/Win32_Security_Authorization) >= 0.42.0 with crate(windows-sys/Win32_Security_Authorization) < 0.43.0~)", + "(crate(loom/default) >= 0.5.2 with crate(loom/default) < 0.6.0~)", + "(crate(loom/futures) >= 0.5.2 with crate(loom/futures) < 0.6.0~)", + "(crate(loom/checkpoint) >= 0.5.2 with crate(loom/checkpoint) < 0.6.0~)", + "(crate(rand/default) >= 0.8.0 with crate(rand/default) < 0.9.0~)", + "(crate(proptest/default) >= 1.0.0 with crate(proptest/default) < 2.0.0~)", + "(crate(socket2/default) >= 0.4.0 with crate(socket2/default) < 0.5.0~)", + "(crate(mio-aio/default) >= 0.7.0 with crate(mio-aio/default) < 0.8.0~)", + "(crate(mio-aio/tokio) >= 0.7.0 with crate(mio-aio/tokio) < 0.8.0~)", + "(crate(libc/default) >= 0.2.42 with crate(libc/default) < 0.3.0~)", + "(crate(nix) >= 0.26.0 with crate(nix) < 0.27.0~)", + "(crate(nix/fs) >= 0.26.0 with crate(nix/fs) < 0.27.0~)", + "(crate(nix/socket) >= 0.26.0 with crate(nix/socket) < 0.27.0~)", + "(crate(ntapi/default) >= 0.3.6 with crate(ntapi/default) < 0.4.0~)", + }, + ), + # default features without dev-dependencies + ( + "tokio-1.25.0.json", + FeatureFlags(), + False, + { + "(crate(pin-project-lite/default) >= 0.2.0 with crate(pin-project-lite/default) < 0.3.0~)", + "(crate(autocfg/default) >= 1.1.0 with crate(autocfg/default) < 2.0.0~)", + "(crate(windows-sys/default) >= 0.42.0 with crate(windows-sys/default) < 0.43.0~)", + "(crate(windows-sys/Win32_Foundation) >= 0.42.0 with crate(windows-sys/Win32_Foundation) < 0.43.0~)", + "(crate(windows-sys/Win32_Security_Authorization) >= 0.42.0 with crate(windows-sys/Win32_Security_Authorization) < 0.43.0~)", + }, + ), + # default features with dev-dependencies + ("unicode-xid-0.2.4.json", FeatureFlags(), True, {"(crate(criterion/default) >= 0.3.0 with crate(criterion/default) < 0.4.0~)"}), + # default features without dev-dependencies + ("unicode-xid-0.2.4.json", FeatureFlags(), False, set()), + # default features with dev-dependencies + ( + "zbus-3.8.0.json", + FeatureFlags(), + True, + { + "(crate(async-broadcast/default) >= 0.5.0 with crate(async-broadcast/default) < 0.6.0~)", + "(crate(async-executor/default) >= 1.5.0 with crate(async-executor/default) < 2.0.0~)", + "(crate(async-io/default) >= 1.12.0 with crate(async-io/default) < 2.0.0~)", + "(crate(async-lock/default) >= 2.6.0 with crate(async-lock/default) < 3.0.0~)", + "(crate(async-recursion/default) >= 1.0.0 with crate(async-recursion/default) < 2.0.0~)", + "(crate(async-task/default) >= 4.3.0 with crate(async-task/default) < 5.0.0~)", + "(crate(async-trait/default) >= 0.1.58 with crate(async-trait/default) < 0.2.0~)", + "(crate(byteorder/default) >= 1.4.3 with crate(byteorder/default) < 2.0.0~)", + "(crate(derivative/default) >= 2.2.0 with crate(derivative/default) < 3.0.0~)", + "(crate(dirs/default) >= 4.0.0 with crate(dirs/default) < 5.0.0~)", + "(crate(enumflags2/default) >= 0.7.5 with crate(enumflags2/default) < 0.8.0~)", + "(crate(enumflags2/serde) >= 0.7.5 with crate(enumflags2/serde) < 0.8.0~)", + "(crate(event-listener/default) >= 2.5.3 with crate(event-listener/default) < 3.0.0~)", + "(crate(futures-core/default) >= 0.3.25 with crate(futures-core/default) < 0.4.0~)", + "(crate(futures-sink/default) >= 0.3.25 with crate(futures-sink/default) < 0.4.0~)", + "(crate(futures-util/sink) >= 0.3.25 with crate(futures-util/sink) < 0.4.0~)", + "(crate(futures-util/std) >= 0.3.25 with crate(futures-util/std) < 0.4.0~)", + "(crate(hex/default) >= 0.4.3 with crate(hex/default) < 0.5.0~)", + "(crate(nix/default) >= 0.25.0 with crate(nix/default) < 0.26.0~)", + "(crate(once_cell/default) >= 1.4.0 with crate(once_cell/default) < 2.0.0~)", + "(crate(ordered-stream/default) >= 0.1.4 with crate(ordered-stream/default) < 0.2.0~)", + "(crate(rand/default) >= 0.8.5 with crate(rand/default) < 0.9.0~)", + "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", + "(crate(serde_repr/default) >= 0.1.9 with crate(serde_repr/default) < 0.2.0~)", + "(crate(sha1/default) >= 0.10.5 with crate(sha1/default) < 0.11.0~)", + "(crate(sha1/std) >= 0.10.5 with crate(sha1/std) < 0.11.0~)", + "(crate(static_assertions/default) >= 1.1.0 with crate(static_assertions/default) < 2.0.0~)", + "(crate(tracing/default) >= 0.1.37 with crate(tracing/default) < 0.2.0~)", + "crate(zbus_macros/default) = 3.8.0", + "(crate(zbus_names/default) >= 2.5.0 with crate(zbus_names/default) < 3.0.0~)", + "(crate(zvariant) >= 3.10.0 with crate(zvariant) < 4.0.0~)", + "(crate(zvariant/enumflags2) >= 3.10.0 with crate(zvariant/enumflags2) < 4.0.0~)", + "(crate(async-std/default) >= 1.12.0 with crate(async-std/default) < 2.0.0~)", + "(crate(async-std/attributes) >= 1.12.0 with crate(async-std/attributes) < 2.0.0~)", + "(crate(doc-comment/default) >= 0.3.3 with crate(doc-comment/default) < 0.4.0~)", + "(crate(futures-util/default) >= 0.3.25 with crate(futures-util/default) < 0.4.0~)", + "(crate(ntest/default) >= 0.9.0 with crate(ntest/default) < 0.10.0~)", + "(crate(tempfile/default) >= 3.3.0 with crate(tempfile/default) < 4.0.0~)", + "(crate(test-log) >= 0.2.11 with crate(test-log) < 0.3.0~)", + "(crate(test-log/trace) >= 0.2.11 with crate(test-log/trace) < 0.3.0~)", + "(crate(tokio/default) >= 1.0.0 with crate(tokio/default) < 2.0.0~)", + "(crate(tokio/macros) >= 1.0.0 with crate(tokio/macros) < 2.0.0~)", + "(crate(tokio/rt-multi-thread) >= 1.0.0 with crate(tokio/rt-multi-thread) < 2.0.0~)", + "(crate(tokio/fs) >= 1.0.0 with crate(tokio/fs) < 2.0.0~)", + "(crate(tokio/io-util) >= 1.0.0 with crate(tokio/io-util) < 2.0.0~)", + "(crate(tokio/net) >= 1.0.0 with crate(tokio/net) < 2.0.0~)", + "(crate(tokio/sync) >= 1.0.0 with crate(tokio/sync) < 2.0.0~)", + "(crate(tracing-subscriber) >= 0.3.16 with crate(tracing-subscriber) < 0.4.0~)", + "(crate(tracing-subscriber/env-filter) >= 0.3.16 with crate(tracing-subscriber/env-filter) < 0.4.0~)", + "(crate(tracing-subscriber/fmt) >= 0.3.16 with crate(tracing-subscriber/fmt) < 0.4.0~)", + "(crate(uds_windows/default) >= 1.0.2 with crate(uds_windows/default) < 2.0.0~)", + "(crate(winapi/default) >= 0.3.0 with crate(winapi/default) < 0.4.0~)", + "(crate(winapi/handleapi) >= 0.3.0 with crate(winapi/handleapi) < 0.4.0~)", + "(crate(winapi/iphlpapi) >= 0.3.0 with crate(winapi/iphlpapi) < 0.4.0~)", + "(crate(winapi/memoryapi) >= 0.3.0 with crate(winapi/memoryapi) < 0.4.0~)", + "(crate(winapi/processthreadsapi) >= 0.3.0 with crate(winapi/processthreadsapi) < 0.4.0~)", + "(crate(winapi/sddl) >= 0.3.0 with crate(winapi/sddl) < 0.4.0~)", + "(crate(winapi/securitybaseapi) >= 0.3.0 with crate(winapi/securitybaseapi) < 0.4.0~)", + "(crate(winapi/synchapi) >= 0.3.0 with crate(winapi/synchapi) < 0.4.0~)", + "(crate(winapi/tcpmib) >= 0.3.0 with crate(winapi/tcpmib) < 0.4.0~)", + "(crate(winapi/winbase) >= 0.3.0 with crate(winapi/winbase) < 0.4.0~)", + "(crate(winapi/winerror) >= 0.3.0 with crate(winapi/winerror) < 0.4.0~)", + "(crate(winapi/winsock2) >= 0.3.0 with crate(winapi/winsock2) < 0.4.0~)", + }, + ), + # default features without dev-dependencies + ( + "zbus-3.8.0.json", + FeatureFlags(), + False, + { + "(crate(async-broadcast/default) >= 0.5.0 with crate(async-broadcast/default) < 0.6.0~)", + "(crate(async-executor/default) >= 1.5.0 with crate(async-executor/default) < 2.0.0~)", + "(crate(async-io/default) >= 1.12.0 with crate(async-io/default) < 2.0.0~)", + "(crate(async-lock/default) >= 2.6.0 with crate(async-lock/default) < 3.0.0~)", + "(crate(async-recursion/default) >= 1.0.0 with crate(async-recursion/default) < 2.0.0~)", + "(crate(async-task/default) >= 4.3.0 with crate(async-task/default) < 5.0.0~)", + "(crate(async-trait/default) >= 0.1.58 with crate(async-trait/default) < 0.2.0~)", + "(crate(byteorder/default) >= 1.4.3 with crate(byteorder/default) < 2.0.0~)", + "(crate(derivative/default) >= 2.2.0 with crate(derivative/default) < 3.0.0~)", + "(crate(dirs/default) >= 4.0.0 with crate(dirs/default) < 5.0.0~)", + "(crate(enumflags2/default) >= 0.7.5 with crate(enumflags2/default) < 0.8.0~)", + "(crate(enumflags2/serde) >= 0.7.5 with crate(enumflags2/serde) < 0.8.0~)", + "(crate(event-listener/default) >= 2.5.3 with crate(event-listener/default) < 3.0.0~)", + "(crate(futures-core/default) >= 0.3.25 with crate(futures-core/default) < 0.4.0~)", + "(crate(futures-sink/default) >= 0.3.25 with crate(futures-sink/default) < 0.4.0~)", + "(crate(futures-util) >= 0.3.25 with crate(futures-util) < 0.4.0~)", + "(crate(futures-util/sink) >= 0.3.25 with crate(futures-util/sink) < 0.4.0~)", + "(crate(futures-util/std) >= 0.3.25 with crate(futures-util/std) < 0.4.0~)", + "(crate(hex/default) >= 0.4.3 with crate(hex/default) < 0.5.0~)", + "(crate(nix/default) >= 0.25.0 with crate(nix/default) < 0.26.0~)", + "(crate(once_cell/default) >= 1.4.0 with crate(once_cell/default) < 2.0.0~)", + "(crate(ordered-stream/default) >= 0.1.4 with crate(ordered-stream/default) < 0.2.0~)", + "(crate(rand/default) >= 0.8.5 with crate(rand/default) < 0.9.0~)", + "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", + "(crate(serde_repr/default) >= 0.1.9 with crate(serde_repr/default) < 0.2.0~)", + "(crate(sha1/default) >= 0.10.5 with crate(sha1/default) < 0.11.0~)", + "(crate(sha1/std) >= 0.10.5 with crate(sha1/std) < 0.11.0~)", + "(crate(static_assertions/default) >= 1.1.0 with crate(static_assertions/default) < 2.0.0~)", + "(crate(tracing/default) >= 0.1.37 with crate(tracing/default) < 0.2.0~)", + "crate(zbus_macros/default) = 3.8.0", + "(crate(zbus_names/default) >= 2.5.0 with crate(zbus_names/default) < 3.0.0~)", + "(crate(zvariant) >= 3.10.0 with crate(zvariant) < 4.0.0~)", + "(crate(zvariant/enumflags2) >= 3.10.0 with crate(zvariant/enumflags2) < 4.0.0~)", + "(crate(uds_windows/default) >= 1.0.2 with crate(uds_windows/default) < 2.0.0~)", + "(crate(winapi/default) >= 0.3.0 with crate(winapi/default) < 0.4.0~)", + "(crate(winapi/handleapi) >= 0.3.0 with crate(winapi/handleapi) < 0.4.0~)", + "(crate(winapi/iphlpapi) >= 0.3.0 with crate(winapi/iphlpapi) < 0.4.0~)", + "(crate(winapi/memoryapi) >= 0.3.0 with crate(winapi/memoryapi) < 0.4.0~)", + "(crate(winapi/processthreadsapi) >= 0.3.0 with crate(winapi/processthreadsapi) < 0.4.0~)", + "(crate(winapi/sddl) >= 0.3.0 with crate(winapi/sddl) < 0.4.0~)", + "(crate(winapi/securitybaseapi) >= 0.3.0 with crate(winapi/securitybaseapi) < 0.4.0~)", + "(crate(winapi/synchapi) >= 0.3.0 with crate(winapi/synchapi) < 0.4.0~)", + "(crate(winapi/tcpmib) >= 0.3.0 with crate(winapi/tcpmib) < 0.4.0~)", + "(crate(winapi/winbase) >= 0.3.0 with crate(winapi/winbase) < 0.4.0~)", + "(crate(winapi/winerror) >= 0.3.0 with crate(winapi/winerror) < 0.4.0~)", + "(crate(winapi/winsock2) >= 0.3.0 with crate(winapi/winsock2) < 0.4.0~)", + }, + ), + ], + ids=short_repr, +) +def test_rpm_buildrequires(filename: str, flags: FeatureFlags, with_dev_deps: bool, expected: set[str]): + metadata = load_metadata_from_resource(filename) + assert buildrequires(metadata.packages[0], flags, with_dev_deps) == expected + + +@pytest.mark.parametrize( + "filename,flags,with_dev_deps,expected", + [ + # default features with dev-dependencies + ( + "fapolicy-analyzer-0.6.8.json", + FeatureFlags(), + True, + { + "(crate(chrono/default) >= 0.4.22 with crate(chrono/default) < 0.5.0~)", + "(crate(nom/default) >= 7.1.0 with crate(nom/default) < 8.0.0~)", + "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", + "(crate(thiserror/default) >= 1.0.0 with crate(thiserror/default) < 2.0.0~)", + "(crate(dbus/default) >= 0.9.0 with crate(dbus/default) < 0.10.0~)", + "(crate(lmdb/default) >= 0.8.0 with crate(lmdb/default) < 0.9.0~)", + "(crate(rayon/default) >= 1.5.0 with crate(rayon/default) < 2.0.0~)", + "(crate(data-encoding/default) >= 2.3.1 with crate(data-encoding/default) < 3.0.0~)", + "(crate(ring/default) >= 0.16.19 with crate(ring/default) < 0.17.0~)", + "(crate(tempfile/default) >= 3.3.0 with crate(tempfile/default) < 4.0.0~)", + "(crate(confy/default) >= 0.4.0 with crate(confy/default) < 0.5.0~)", + "(crate(directories/default) >= 4.0.0 with crate(directories/default) < 5.0.0~)", + "(crate(pyo3/default) >= 0.15.0 with crate(pyo3/default) < 0.16.0~)", + "(crate(pyo3/abi3-py36) >= 0.15.0 with crate(pyo3/abi3-py36) < 0.16.0~)", + "(crate(similar/default) >= 2.1.0 with crate(similar/default) < 3.0.0~)", + "(crate(ariadne/default) >= 0.1.0 with crate(ariadne/default) < 0.2.0~)", + "(crate(clap/default) >= 3.2.20 with crate(clap/default) < 4.0.0~)", + "(crate(clap/derive) >= 3.2.20 with crate(clap/derive) < 4.0.0~)", + }, + ), + # default features without dev-dependencies + ( + "fapolicy-analyzer-0.6.8.json", + FeatureFlags(), + False, + { + "(crate(chrono/default) >= 0.4.22 with crate(chrono/default) < 0.5.0~)", + "(crate(nom/default) >= 7.1.0 with crate(nom/default) < 8.0.0~)", + "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", + "(crate(thiserror/default) >= 1.0.0 with crate(thiserror/default) < 2.0.0~)", + "(crate(dbus/default) >= 0.9.0 with crate(dbus/default) < 0.10.0~)", + "(crate(lmdb/default) >= 0.8.0 with crate(lmdb/default) < 0.9.0~)", + "(crate(rayon/default) >= 1.5.0 with crate(rayon/default) < 2.0.0~)", + "(crate(data-encoding/default) >= 2.3.1 with crate(data-encoding/default) < 3.0.0~)", + "(crate(ring/default) >= 0.16.19 with crate(ring/default) < 0.17.0~)", + "(crate(confy/default) >= 0.4.0 with crate(confy/default) < 0.5.0~)", + "(crate(directories/default) >= 4.0.0 with crate(directories/default) < 5.0.0~)", + "(crate(pyo3/default) >= 0.15.0 with crate(pyo3/default) < 0.16.0~)", + "(crate(pyo3/abi3-py36) >= 0.15.0 with crate(pyo3/abi3-py36) < 0.16.0~)", + "(crate(similar/default) >= 2.1.0 with crate(similar/default) < 3.0.0~)", + "(crate(ariadne/default) >= 0.1.0 with crate(ariadne/default) < 0.2.0~)", + "(crate(clap/default) >= 3.2.20 with crate(clap/default) < 4.0.0~)", + "(crate(clap/derive) >= 3.2.20 with crate(clap/derive) < 4.0.0~)", + }, + ), + # default features with dev-dependencies + ( + "libblkio-1.2.2.json", + FeatureFlags(), + True, + { + "(crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0~)", + "(crate(cc/default) >= 1.0.0 with crate(cc/default) < 2.0.0~)", + "(crate(bitflags/default) >= 1.2.0 with crate(bitflags/default) < 2.0.0~)", + "(crate(concat-idents/default) >= 1.1.0 with crate(concat-idents/default) < 2.0.0~)", + "(crate(const-cstr/default) >= 0.3.0 with crate(const-cstr/default) < 0.4.0~)", + "(crate(io-uring/default) >= 0.5.10 with crate(io-uring/default) < 0.6.0~)", + "(crate(lazy_static/default) >= 1.1.0 with crate(lazy_static/default) < 2.0.0~)", + "(crate(nix) >= 0.24.0 with crate(nix) < 0.25.0~)", + "(crate(nix/event) >= 0.24.0 with crate(nix/event) < 0.25.0~)", + "(crate(nix/feature) >= 0.24.0 with crate(nix/feature) < 0.25.0~)", + "(crate(nix/fs) >= 0.24.0 with crate(nix/fs) < 0.25.0~)", + "(crate(nix/mman) >= 0.24.0 with crate(nix/mman) < 0.25.0~)", + "(crate(pci-driver) >= 0.1.2 with crate(pci-driver) < 0.2.0~)", + "(crate(pci-driver/vfio) >= 0.1.2 with crate(pci-driver/vfio) < 0.2.0~)", + "(crate(memmap2/default) >= 0.1.0 with crate(memmap2/default) < 0.6.0~)", + "(crate(virtio-bindings/default) >= 0.1.0 with crate(virtio-bindings/default) < 0.2.0~)", + "(crate(virtio-bindings/virtio-v5_0_0) >= 0.1.0 with crate(virtio-bindings/virtio-v5_0_0) < 0.2.0~)", + }, + ), + # default features without dev-dependencies + ( + "libblkio-1.2.2.json", + FeatureFlags(), + False, + { + "(crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0~)", + "(crate(cc/default) >= 1.0.0 with crate(cc/default) < 2.0.0~)", + "(crate(bitflags/default) >= 1.2.0 with crate(bitflags/default) < 2.0.0~)", + "(crate(concat-idents/default) >= 1.1.0 with crate(concat-idents/default) < 2.0.0~)", + "(crate(const-cstr/default) >= 0.3.0 with crate(const-cstr/default) < 0.4.0~)", + "(crate(io-uring/default) >= 0.5.10 with crate(io-uring/default) < 0.6.0~)", + "(crate(lazy_static/default) >= 1.1.0 with crate(lazy_static/default) < 2.0.0~)", + "(crate(nix) >= 0.24.0 with crate(nix) < 0.25.0~)", + "(crate(nix/event) >= 0.24.0 with crate(nix/event) < 0.25.0~)", + "(crate(nix/feature) >= 0.24.0 with crate(nix/feature) < 0.25.0~)", + "(crate(nix/fs) >= 0.24.0 with crate(nix/fs) < 0.25.0~)", + "(crate(nix/mman) >= 0.24.0 with crate(nix/mman) < 0.25.0~)", + "(crate(pci-driver) >= 0.1.2 with crate(pci-driver) < 0.2.0~)", + "(crate(pci-driver/vfio) >= 0.1.2 with crate(pci-driver/vfio) < 0.2.0~)", + "(crate(memmap2/default) >= 0.1.0 with crate(memmap2/default) < 0.6.0~)", + "(crate(virtio-bindings/default) >= 0.1.0 with crate(virtio-bindings/default) < 0.2.0~)", + "(crate(virtio-bindings/virtio-v5_0_0) >= 0.1.0 with crate(virtio-bindings/virtio-v5_0_0) < 0.2.0~)", + }, + ), + # default features with dev-dependencies + ( + "zola-0.16.1.json", + FeatureFlags(), + True, + { + "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", + "(crate(anyhow/default) >= 1.0.56 with crate(anyhow/default) < 2.0.0~)", + "(crate(ahash/default) >= 0.8.0 with crate(ahash/default) < 0.9.0~)", + "(crate(ammonia/default) >= 3.0.0 with crate(ammonia/default) < 4.0.0~)", + "(crate(atty/default) >= 0.2.11 with crate(atty/default) < 0.3.0~)", + "(crate(base64/default) >= 0.13.0 with crate(base64/default) < 0.14.0~)", + "(crate(csv/default) >= 1.0.0 with crate(csv/default) < 2.0.0~)", + "(crate(elasticlunr-rs/default) >= 3.0.0 with crate(elasticlunr-rs/default) < 4.0.0~)", + "(crate(elasticlunr-rs/da) >= 3.0.0 with crate(elasticlunr-rs/da) < 4.0.0~)", + "(crate(elasticlunr-rs/no) >= 3.0.0 with crate(elasticlunr-rs/no) < 4.0.0~)", + "(crate(elasticlunr-rs/de) >= 3.0.0 with crate(elasticlunr-rs/de) < 4.0.0~)", + "(crate(elasticlunr-rs/du) >= 3.0.0 with crate(elasticlunr-rs/du) < 4.0.0~)", + "(crate(elasticlunr-rs/es) >= 3.0.0 with crate(elasticlunr-rs/es) < 4.0.0~)", + "(crate(elasticlunr-rs/fi) >= 3.0.0 with crate(elasticlunr-rs/fi) < 4.0.0~)", + "(crate(elasticlunr-rs/fr) >= 3.0.0 with crate(elasticlunr-rs/fr) < 4.0.0~)", + "(crate(elasticlunr-rs/it) >= 3.0.0 with crate(elasticlunr-rs/it) < 4.0.0~)", + "(crate(elasticlunr-rs/pt) >= 3.0.0 with crate(elasticlunr-rs/pt) < 4.0.0~)", + "(crate(elasticlunr-rs/ro) >= 3.0.0 with crate(elasticlunr-rs/ro) < 4.0.0~)", + "(crate(elasticlunr-rs/ru) >= 3.0.0 with crate(elasticlunr-rs/ru) < 4.0.0~)", + "(crate(elasticlunr-rs/sv) >= 3.0.0 with crate(elasticlunr-rs/sv) < 4.0.0~)", + "(crate(elasticlunr-rs/tr) >= 3.0.0 with crate(elasticlunr-rs/tr) < 4.0.0~)", + "(crate(filetime/default) >= 0.2.0 with crate(filetime/default) < 0.3.0~)", + "(crate(gh-emoji/default) >= 1.0.0 with crate(gh-emoji/default) < 2.0.0~)", + "(crate(glob/default) >= 0.3.0 with crate(glob/default) < 0.4.0~)", + "(crate(globset/default) >= 0.4.0 with crate(globset/default) < 0.5.0~)", + "(crate(image/default) >= 0.24.0 with crate(image/default) < 0.25.0~)", + "(crate(lexical-sort/default) >= 0.3.0 with crate(lexical-sort/default) < 0.4.0~)", + "(crate(minify-html/default) >= 0.9.0 with crate(minify-html/default) < 0.10.0~)", + "(crate(nom-bibtex/default) >= 0.3.0 with crate(nom-bibtex/default) < 0.4.0~)", + "(crate(num-format/default) >= 0.4.0 with crate(num-format/default) < 0.5.0~)", + "(crate(once_cell/default) >= 1.0.0 with crate(once_cell/default) < 2.0.0~)", + "(crate(percent-encoding/default) >= 2.0.0 with crate(percent-encoding/default) < 3.0.0~)", + "(crate(pulldown-cmark) >= 0.9.0 with crate(pulldown-cmark) < 0.10.0~)", + "(crate(pulldown-cmark/simd) >= 0.9.0 with crate(pulldown-cmark/simd) < 0.10.0~)", + "(crate(quickxml_to_serde/default) >= 0.5.0 with crate(quickxml_to_serde/default) < 0.6.0~)", + "(crate(rayon/default) >= 1.0.0 with crate(rayon/default) < 2.0.0~)", + "(crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0~)", + "(crate(relative-path/default) >= 1.0.0 with crate(relative-path/default) < 2.0.0~)", + "(crate(reqwest) >= 0.11.0 with crate(reqwest) < 0.12.0~)", + "(crate(reqwest/blocking) >= 0.11.0 with crate(reqwest/blocking) < 0.12.0~)", + "(crate(reqwest/rustls-tls) >= 0.11.0 with crate(reqwest/rustls-tls) < 0.12.0~)", + "(crate(sass-rs/default) >= 0.2.0 with crate(sass-rs/default) < 0.3.0~)", + "(crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0~)", + "(crate(serde_yaml/default) >= 0.9.0 with crate(serde_yaml/default) < 0.10.0~)", + "(crate(sha2/default) >= 0.10.0 with crate(sha2/default) < 0.11.0~)", + "(crate(slug/default) >= 0.1.0 with crate(slug/default) < 0.2.0~)", + "(crate(svg_metadata/default) >= 0.4.0 with crate(svg_metadata/default) < 0.5.0~)", + "(crate(syntect/default) >= 5.0.0 with crate(syntect/default) < 6.0.0~)", + "(crate(tera/default) >= 1.0.0 with crate(tera/default) < 2.0.0~)", + "(crate(tera/preserve_order) >= 1.0.0 with crate(tera/preserve_order) < 2.0.0~)", + "(crate(termcolor/default) >= 1.0.4 with crate(termcolor/default) < 2.0.0~)", + "(crate(time/default) >= 0.3.0 with crate(time/default) < 0.4.0~)", + "(crate(time/macros) >= 0.3.0 with crate(time/macros) < 0.4.0~)", + "(crate(toml/default) >= 0.5.0 with crate(toml/default) < 0.6.0~)", + "(crate(unic-langid/default) >= 0.9.0 with crate(unic-langid/default) < 0.10.0~)", + "(crate(unicode-segmentation/default) >= 1.2.0 with crate(unicode-segmentation/default) < 2.0.0~)", + "(crate(url/default) >= 2.0.0 with crate(url/default) < 3.0.0~)", + "(crate(walkdir/default) >= 2.0.0 with crate(walkdir/default) < 3.0.0~)", + "(crate(webp/default) >= 0.2.0 with crate(webp/default) < 0.3.0~)", + "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", + "(crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0~)", + "(crate(tempfile/default) >= 3.3.0 with crate(tempfile/default) < 4.0.0~)", + "(crate(test-case/default) >= 2.0.0 with crate(test-case/default) < 3.0.0~)", + "(crate(pest/default) >= 2.0.0 with crate(pest/default) < 3.0.0~)", + "(crate(pest_derive/default) >= 2.0.0 with crate(pest_derive/default) < 3.0.0~)", + "(crate(insta/default) >= 1.12.0 with crate(insta/default) < 2.0.0~)", + "(crate(mockito/default) >= 0.31.0 with crate(mockito/default) < 0.32.0~)", + "(crate(kamadak-exif/default) >= 0.5.4 with crate(kamadak-exif/default) < 0.6.0~)", + "(crate(path-slash/default) >= 0.2.0 with crate(path-slash/default) < 0.3.0~)", + "(crate(clap/default) >= 3.0.0 with crate(clap/default) < 4.0.0~)", + "(crate(clap/derive) >= 3.0.0 with crate(clap/derive) < 4.0.0~)", + "(crate(ctrlc/default) >= 3.0.0 with crate(ctrlc/default) < 4.0.0~)", + "(crate(hyper) >= 0.14.1 with crate(hyper) < 0.15.0~)", + "(crate(hyper/runtime) >= 0.14.1 with crate(hyper/runtime) < 0.15.0~)", + "(crate(hyper/server) >= 0.14.1 with crate(hyper/server) < 0.15.0~)", + "(crate(hyper/http2) >= 0.14.1 with crate(hyper/http2) < 0.15.0~)", + "(crate(hyper/http1) >= 0.14.1 with crate(hyper/http1) < 0.15.0~)", + "(crate(mime/default) >= 0.3.16 with crate(mime/default) < 0.4.0~)", + "(crate(mime_guess/default) >= 2.0.0 with crate(mime_guess/default) < 3.0.0~)", + "(crate(notify/default) >= 4.0.0 with crate(notify/default) < 5.0.0~)", + "(crate(open/default) >= 3.0.0 with crate(open/default) < 4.0.0~)", + "(crate(pathdiff/default) >= 0.2.0 with crate(pathdiff/default) < 0.3.0~)", + "(crate(time/formatting) >= 0.3.0 with crate(time/formatting) < 0.4.0~)", + "(crate(time/local-offset) >= 0.3.0 with crate(time/local-offset) < 0.4.0~)", + "(crate(tokio) >= 1.0.1 with crate(tokio) < 2.0.0~)", + "(crate(tokio/rt) >= 1.0.1 with crate(tokio/rt) < 2.0.0~)", + "(crate(tokio/fs) >= 1.0.1 with crate(tokio/fs) < 2.0.0~)", + "(crate(tokio/time) >= 1.0.1 with crate(tokio/time) < 2.0.0~)", + "(crate(ws/default) >= 0.9.0 with crate(ws/default) < 0.10.0~)", + "(crate(same-file/default) >= 1.0.0 with crate(same-file/default) < 2.0.0~)", + "(crate(clap_complete/default) >= 3.0.0 with crate(clap_complete/default) < 4.0.0~)", + "(crate(winres/default) >= 0.1.0 with crate(winres/default) < 0.2.0~)", + }, + ), + # default features without dev-dependencies + ( + "zola-0.16.1.json", + FeatureFlags(), + False, + { + "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", + "(crate(anyhow/default) >= 1.0.56 with crate(anyhow/default) < 2.0.0~)", + "(crate(ahash/default) >= 0.8.0 with crate(ahash/default) < 0.9.0~)", + "(crate(ammonia/default) >= 3.0.0 with crate(ammonia/default) < 4.0.0~)", + "(crate(atty/default) >= 0.2.11 with crate(atty/default) < 0.3.0~)", + "(crate(base64/default) >= 0.13.0 with crate(base64/default) < 0.14.0~)", + "(crate(csv/default) >= 1.0.0 with crate(csv/default) < 2.0.0~)", + "(crate(elasticlunr-rs/default) >= 3.0.0 with crate(elasticlunr-rs/default) < 4.0.0~)", + "(crate(elasticlunr-rs/da) >= 3.0.0 with crate(elasticlunr-rs/da) < 4.0.0~)", + "(crate(elasticlunr-rs/no) >= 3.0.0 with crate(elasticlunr-rs/no) < 4.0.0~)", + "(crate(elasticlunr-rs/de) >= 3.0.0 with crate(elasticlunr-rs/de) < 4.0.0~)", + "(crate(elasticlunr-rs/du) >= 3.0.0 with crate(elasticlunr-rs/du) < 4.0.0~)", + "(crate(elasticlunr-rs/es) >= 3.0.0 with crate(elasticlunr-rs/es) < 4.0.0~)", + "(crate(elasticlunr-rs/fi) >= 3.0.0 with crate(elasticlunr-rs/fi) < 4.0.0~)", + "(crate(elasticlunr-rs/fr) >= 3.0.0 with crate(elasticlunr-rs/fr) < 4.0.0~)", + "(crate(elasticlunr-rs/it) >= 3.0.0 with crate(elasticlunr-rs/it) < 4.0.0~)", + "(crate(elasticlunr-rs/pt) >= 3.0.0 with crate(elasticlunr-rs/pt) < 4.0.0~)", + "(crate(elasticlunr-rs/ro) >= 3.0.0 with crate(elasticlunr-rs/ro) < 4.0.0~)", + "(crate(elasticlunr-rs/ru) >= 3.0.0 with crate(elasticlunr-rs/ru) < 4.0.0~)", + "(crate(elasticlunr-rs/sv) >= 3.0.0 with crate(elasticlunr-rs/sv) < 4.0.0~)", + "(crate(elasticlunr-rs/tr) >= 3.0.0 with crate(elasticlunr-rs/tr) < 4.0.0~)", + "(crate(filetime/default) >= 0.2.0 with crate(filetime/default) < 0.3.0~)", + "(crate(gh-emoji/default) >= 1.0.0 with crate(gh-emoji/default) < 2.0.0~)", + "(crate(glob/default) >= 0.3.0 with crate(glob/default) < 0.4.0~)", + "(crate(globset/default) >= 0.4.0 with crate(globset/default) < 0.5.0~)", + "(crate(image/default) >= 0.24.0 with crate(image/default) < 0.25.0~)", + "(crate(lexical-sort/default) >= 0.3.0 with crate(lexical-sort/default) < 0.4.0~)", + "(crate(minify-html/default) >= 0.9.0 with crate(minify-html/default) < 0.10.0~)", + "(crate(nom-bibtex/default) >= 0.3.0 with crate(nom-bibtex/default) < 0.4.0~)", + "(crate(num-format/default) >= 0.4.0 with crate(num-format/default) < 0.5.0~)", + "(crate(once_cell/default) >= 1.0.0 with crate(once_cell/default) < 2.0.0~)", + "(crate(percent-encoding/default) >= 2.0.0 with crate(percent-encoding/default) < 3.0.0~)", + "(crate(pulldown-cmark) >= 0.9.0 with crate(pulldown-cmark) < 0.10.0~)", + "(crate(pulldown-cmark/simd) >= 0.9.0 with crate(pulldown-cmark/simd) < 0.10.0~)", + "(crate(quickxml_to_serde/default) >= 0.5.0 with crate(quickxml_to_serde/default) < 0.6.0~)", + "(crate(rayon/default) >= 1.0.0 with crate(rayon/default) < 2.0.0~)", + "(crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0~)", + "(crate(relative-path/default) >= 1.0.0 with crate(relative-path/default) < 2.0.0~)", + "(crate(reqwest) >= 0.11.0 with crate(reqwest) < 0.12.0~)", + "(crate(reqwest/blocking) >= 0.11.0 with crate(reqwest/blocking) < 0.12.0~)", + "(crate(reqwest/rustls-tls) >= 0.11.0 with crate(reqwest/rustls-tls) < 0.12.0~)", + "(crate(sass-rs/default) >= 0.2.0 with crate(sass-rs/default) < 0.3.0~)", + "(crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0~)", + "(crate(serde_yaml/default) >= 0.9.0 with crate(serde_yaml/default) < 0.10.0~)", + "(crate(sha2/default) >= 0.10.0 with crate(sha2/default) < 0.11.0~)", + "(crate(slug/default) >= 0.1.0 with crate(slug/default) < 0.2.0~)", + "(crate(svg_metadata/default) >= 0.4.0 with crate(svg_metadata/default) < 0.5.0~)", + "(crate(syntect/default) >= 5.0.0 with crate(syntect/default) < 6.0.0~)", + "(crate(tera/default) >= 1.0.0 with crate(tera/default) < 2.0.0~)", + "(crate(tera/preserve_order) >= 1.0.0 with crate(tera/preserve_order) < 2.0.0~)", + "(crate(termcolor/default) >= 1.0.4 with crate(termcolor/default) < 2.0.0~)", + "(crate(time/default) >= 0.3.0 with crate(time/default) < 0.4.0~)", + "(crate(time/macros) >= 0.3.0 with crate(time/macros) < 0.4.0~)", + "(crate(toml/default) >= 0.5.0 with crate(toml/default) < 0.6.0~)", + "(crate(unic-langid/default) >= 0.9.0 with crate(unic-langid/default) < 0.10.0~)", + "(crate(unicode-segmentation/default) >= 1.2.0 with crate(unicode-segmentation/default) < 2.0.0~)", + "(crate(url/default) >= 2.0.0 with crate(url/default) < 3.0.0~)", + "(crate(walkdir/default) >= 2.0.0 with crate(walkdir/default) < 3.0.0~)", + "(crate(webp/default) >= 0.2.0 with crate(webp/default) < 0.3.0~)", + "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", + "(crate(pest/default) >= 2.0.0 with crate(pest/default) < 3.0.0~)", + "(crate(pest_derive/default) >= 2.0.0 with crate(pest_derive/default) < 3.0.0~)", + "(crate(kamadak-exif/default) >= 0.5.4 with crate(kamadak-exif/default) < 0.6.0~)", + "(crate(clap/default) >= 3.0.0 with crate(clap/default) < 4.0.0~)", + "(crate(clap/derive) >= 3.0.0 with crate(clap/derive) < 4.0.0~)", + "(crate(ctrlc/default) >= 3.0.0 with crate(ctrlc/default) < 4.0.0~)", + "(crate(hyper) >= 0.14.1 with crate(hyper) < 0.15.0~)", + "(crate(hyper/runtime) >= 0.14.1 with crate(hyper/runtime) < 0.15.0~)", + "(crate(hyper/server) >= 0.14.1 with crate(hyper/server) < 0.15.0~)", + "(crate(hyper/http2) >= 0.14.1 with crate(hyper/http2) < 0.15.0~)", + "(crate(hyper/http1) >= 0.14.1 with crate(hyper/http1) < 0.15.0~)", + "(crate(mime/default) >= 0.3.16 with crate(mime/default) < 0.4.0~)", + "(crate(mime_guess/default) >= 2.0.0 with crate(mime_guess/default) < 3.0.0~)", + "(crate(notify/default) >= 4.0.0 with crate(notify/default) < 5.0.0~)", + "(crate(open/default) >= 3.0.0 with crate(open/default) < 4.0.0~)", + "(crate(pathdiff/default) >= 0.2.0 with crate(pathdiff/default) < 0.3.0~)", + "(crate(time/formatting) >= 0.3.0 with crate(time/formatting) < 0.4.0~)", + "(crate(time/local-offset) >= 0.3.0 with crate(time/local-offset) < 0.4.0~)", + "(crate(tokio) >= 1.0.1 with crate(tokio) < 2.0.0~)", + "(crate(tokio/rt) >= 1.0.1 with crate(tokio/rt) < 2.0.0~)", + "(crate(tokio/fs) >= 1.0.1 with crate(tokio/fs) < 2.0.0~)", + "(crate(tokio/time) >= 1.0.1 with crate(tokio/time) < 2.0.0~)", + "(crate(ws/default) >= 0.9.0 with crate(ws/default) < 0.10.0~)", + "(crate(clap_complete/default) >= 3.0.0 with crate(clap_complete/default) < 4.0.0~)", + "(crate(winres/default) >= 0.1.0 with crate(winres/default) < 0.2.0~)", + }, + ), + ], + ids=short_repr, +) +def test_rpm_workspace_buildrequires(filename: str, flags: FeatureFlags, with_dev_deps: bool, expected: set[str]): + metadata = load_metadata_from_resource(filename) + assert workspace_buildrequires(metadata, flags, with_dev_deps) == expected diff --git a/cargo2rpm/tests/rpm/test_provides.py b/cargo2rpm/tests/rpm/test_provides.py new file mode 100644 index 0000000..2f1c375 --- /dev/null +++ b/cargo2rpm/tests/rpm/test_provides.py @@ -0,0 +1,74 @@ +from cargo2rpm.rpm import _provides_crate, _provides_feature +from cargo2rpm.utils import load_metadata_from_resource, short_repr + +import pytest + + +@pytest.mark.parametrize( + "filename,expected", + [ + ("ahash-0.8.3.json", "crate(ahash) = 0.8.3"), + ("assert_cmd-2.0.8.json", "crate(assert_cmd) = 2.0.8"), + ("assert_fs-1.0.10.json", "crate(assert_fs) = 1.0.10"), + ("autocfg-1.1.0.json", "crate(autocfg) = 1.1.0"), + ("bstr-1.2.0.json", "crate(bstr) = 1.2.0"), + ("cfg-if-1.0.0.json", "crate(cfg-if) = 1.0.0"), + ("clap-4.1.4.json", "crate(clap) = 4.1.4"), + ("gstreamer-0.19.7.json", "crate(gstreamer) = 0.19.7"), + ("human-panic-1.1.0.json", "crate(human-panic) = 1.1.0"), + ("libc-0.2.139.json", "crate(libc) = 0.2.139"), + ("predicates-2.1.5.json", "crate(predicates) = 2.1.5"), + ("proc-macro2-1.0.50.json", "crate(proc-macro2) = 1.0.50"), + ("quote-1.0.23.json", "crate(quote) = 1.0.23"), + ("rand-0.8.5.json", "crate(rand) = 0.8.5"), + ("rand_core-0.6.4.json", "crate(rand_core) = 0.6.4"), + ("rust_decimal-1.28.0.json", "crate(rust_decimal) = 1.28.0"), + ("rustix-0.36.8.json", "crate(rustix) = 0.36.8"), + ("serde-1.0.152.json", "crate(serde) = 1.0.152"), + ("serde_derive-1.0.152.json", "crate(serde_derive) = 1.0.152"), + ("syn-1.0.107.json", "crate(syn) = 1.0.107"), + ("time-0.3.17.json", "crate(time) = 0.3.17"), + ("tokio-1.25.0.json", "crate(tokio) = 1.25.0"), + ("unicode-xid-0.2.4.json", "crate(unicode-xid) = 0.2.4"), + ("zbus-3.8.0.json", "crate(zbus) = 3.8.0"), + ], + ids=short_repr, +) +def test_provides_crate(filename: str, expected: str): + metadata = load_metadata_from_resource(filename) + assert _provides_crate(metadata.packages[0]) == expected + + +@pytest.mark.parametrize( + "filename,expected", + [ + ("ahash-0.8.3.json", "crate(ahash/default) = 0.8.3"), + ("assert_cmd-2.0.8.json", "crate(assert_cmd/default) = 2.0.8"), + ("assert_fs-1.0.10.json", "crate(assert_fs/default) = 1.0.10"), + ("autocfg-1.1.0.json", "crate(autocfg/default) = 1.1.0"), + ("bstr-1.2.0.json", "crate(bstr/default) = 1.2.0"), + ("cfg-if-1.0.0.json", "crate(cfg-if/default) = 1.0.0"), + ("clap-4.1.4.json", "crate(clap/default) = 4.1.4"), + ("gstreamer-0.19.7.json", "crate(gstreamer/default) = 0.19.7"), + ("human-panic-1.1.0.json", "crate(human-panic/default) = 1.1.0"), + ("libc-0.2.139.json", "crate(libc/default) = 0.2.139"), + ("predicates-2.1.5.json", "crate(predicates/default) = 2.1.5"), + ("proc-macro2-1.0.50.json", "crate(proc-macro2/default) = 1.0.50"), + ("quote-1.0.23.json", "crate(quote/default) = 1.0.23"), + ("rand-0.8.5.json", "crate(rand/default) = 0.8.5"), + ("rand_core-0.6.4.json", "crate(rand_core/default) = 0.6.4"), + ("rust_decimal-1.28.0.json", "crate(rust_decimal/default) = 1.28.0"), + ("rustix-0.36.8.json", "crate(rustix/default) = 0.36.8"), + ("serde-1.0.152.json", "crate(serde/default) = 1.0.152"), + ("serde_derive-1.0.152.json", "crate(serde_derive/default) = 1.0.152"), + ("syn-1.0.107.json", "crate(syn/default) = 1.0.107"), + ("time-0.3.17.json", "crate(time/default) = 0.3.17"), + ("tokio-1.25.0.json", "crate(tokio/default) = 1.25.0"), + ("unicode-xid-0.2.4.json", "crate(unicode-xid/default) = 0.2.4"), + ("zbus-3.8.0.json", "crate(zbus/default) = 3.8.0"), + ], + ids=short_repr, +) +def test_provides_feature(filename: str, expected: str): + metadata = load_metadata_from_resource(filename) + assert _provides_feature(metadata.packages[0], "default") == expected diff --git a/cargo2rpm/tests/rpm/test_requires.py b/cargo2rpm/tests/rpm/test_requires.py new file mode 100644 index 0000000..2378d17 --- /dev/null +++ b/cargo2rpm/tests/rpm/test_requires.py @@ -0,0 +1,2676 @@ +from cargo2rpm import CARGO_BUGGY_RESOLVER +from cargo2rpm.rpm import _requires_crate, _requires_feature +from cargo2rpm.utils import load_metadata_from_resource, short_repr + +import pytest + + +@pytest.mark.parametrize( + "filename,expected", + [ + ( + "ahash-0.8.3.json", + { + "cargo", + "(crate(cfg-if/default) >= 1.0.0 with crate(cfg-if/default) < 2.0.0~)", + "(crate(once_cell) >= 1.13.1 with crate(once_cell) < 2.0.0~)", + "(crate(once_cell/unstable) >= 1.13.1 with crate(once_cell/unstable) < 2.0.0~)", + "(crate(once_cell/alloc) >= 1.13.1 with crate(once_cell/alloc) < 2.0.0~)", + "(crate(version_check/default) >= 0.9.4 with crate(version_check/default) < 0.10.0~)", + }, + ), + ( + "assert_cmd-2.0.8.json", + { + "cargo", + "(crate(bstr/default) >= 1.0.1 with crate(bstr/default) < 2.0.0~)", + "(crate(doc-comment/default) >= 0.3.0 with crate(doc-comment/default) < 0.4.0~)", + "(crate(predicates) >= 2.1.0 with crate(predicates) < 3.0.0~)", + "(crate(predicates/diff) >= 2.1.0 with crate(predicates/diff) < 3.0.0~)", + "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", + "(crate(predicates-tree/default) >= 1.0.0 with crate(predicates-tree/default) < 2.0.0~)", + "(crate(wait-timeout/default) >= 0.2.0 with crate(wait-timeout/default) < 0.3.0~)", + }, + ), + ( + "assert_fs-1.0.10.json", + { + "cargo", + "(crate(doc-comment/default) >= 0.3.0 with crate(doc-comment/default) < 0.4.0~)", + "(crate(globwalk/default) >= 0.8.0 with crate(globwalk/default) < 0.9.0~)", + "(crate(predicates) >= 2.0.3 with crate(predicates) < 3.0.0~)", + "(crate(predicates/diff) >= 2.0.3 with crate(predicates/diff) < 3.0.0~)", + "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", + "(crate(predicates-tree/default) >= 1.0.0 with crate(predicates-tree/default) < 2.0.0~)", + "(crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0~)", + }, + ), + ( + "autocfg-1.1.0.json", + { + "cargo", + }, + ), + ( + "bstr-1.2.0.json", + {"cargo", "(crate(memchr) >= 2.4.0 with crate(memchr) < 3.0.0~)"}, + ), + ( + "cfg-if-1.0.0.json", + { + "cargo", + }, + ), + ( + "clap-4.1.4.json", + { + "cargo", + "(crate(bitflags/default) >= 1.2.0 with crate(bitflags/default) < 2.0.0~)", + "(crate(clap_lex/default) >= 0.3.0 with crate(clap_lex/default) < 0.4.0~)", + }, + ), + ( + "gstreamer-0.19.7.json", + { + "cargo", + "(crate(bitflags/default) >= 1.0.0 with crate(bitflags/default) < 2.0.0~)", + "(crate(cfg-if/default) >= 1.0.0 with crate(cfg-if/default) < 2.0.0~)", + "(crate(gstreamer-sys/default) >= 0.19.0 with crate(gstreamer-sys/default) < 0.20.0~)", + "(crate(futures-channel/default) >= 0.3.0 with crate(futures-channel/default) < 0.4.0~)", + "(crate(futures-core/default) >= 0.3.0 with crate(futures-core/default) < 0.4.0~)", + "(crate(futures-util) >= 0.3.0 with crate(futures-util) < 0.4.0~)", + "(crate(glib/default) >= 0.16.2 with crate(glib/default) < 0.17.0~)", + "(crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0~)", + "(crate(muldiv/default) >= 1.0.0 with crate(muldiv/default) < 2.0.0~)", + "(crate(num-integer) >= 0.1.0 with crate(num-integer) < 0.2.0~)", + "(crate(num-rational) >= 0.4.0 with crate(num-rational) < 0.5.0~)", + "(crate(once_cell/default) >= 1.0.0 with crate(once_cell/default) < 2.0.0~)", + "(crate(option-operations/default) >= 0.5.0 with crate(option-operations/default) < 0.6.0~)", + "(crate(paste/default) >= 1.0.0 with crate(paste/default) < 2.0.0~)", + "(crate(pretty-hex/default) >= 0.3.0 with crate(pretty-hex/default) < 0.4.0~)", + "(crate(thiserror/default) >= 1.0.0 with crate(thiserror/default) < 2.0.0~)", + }, + ), + ( + "human-panic-1.1.0.json", + { + "cargo", + "(crate(backtrace/default) >= 0.3.9 with crate(backtrace/default) < 0.4.0~)", + "(crate(os_info/default) >= 2.0.6 with crate(os_info/default) < 3.0.0~)", + "(crate(serde/default) >= 1.0.79 with crate(serde/default) < 2.0.0~)", + "(crate(serde_derive/default) >= 1.0.79 with crate(serde_derive/default) < 2.0.0~)", + "(crate(toml/default) >= 0.5.0 with crate(toml/default) < 0.6.0~)", + "(crate(uuid) >= 0.8.0 with crate(uuid) < 0.9.0~)", + "(crate(uuid/v4) >= 0.8.0 with crate(uuid/v4) < 0.9.0~)", + }, + ), + ( + "libc-0.2.139.json", + { + "cargo", + }, + ), + ( + "predicates-2.1.5.json", + { + "cargo", + "(crate(itertools/default) >= 0.10.0 with crate(itertools/default) < 0.11.0~)", + "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", + }, + ), + ( + "proc-macro2-1.0.50.json", + { + "cargo", + "(crate(unicode-ident/default) >= 1.0.0 with crate(unicode-ident/default) < 2.0.0~)", + }, + ), + ( + "quote-1.0.23.json", + { + "cargo", + "(crate(proc-macro2) >= 1.0.40 with crate(proc-macro2) < 2.0.0~)", + }, + ), + ( + "rand-0.8.5.json", + { + "cargo", + "(crate(rand_core/default) >= 0.6.0 with crate(rand_core/default) < 0.7.0~)", + }, + ), + ( + "rand_core-0.6.4.json", + { + "cargo", + }, + ), + ( + "rust_decimal-1.28.0.json", + { + "cargo", + "(crate(arrayvec) >= 0.7.0 with crate(arrayvec) < 0.8.0~)", + "(crate(num-traits) >= 0.2.0 with crate(num-traits) < 0.3.0~)", + "(crate(num-traits/i128) >= 0.2.0 with crate(num-traits/i128) < 0.3.0~)", + }, + ), + ( + "rustix-0.36.8.json", + { + "cargo", + "(crate(bitflags/default) >= 1.2.1 with crate(bitflags/default) < 2.0.0~)", + "(crate(linux-raw-sys) >= 0.1.2 with crate(linux-raw-sys) < 0.2.0~)", + "(crate(linux-raw-sys/errno) >= 0.1.2 with crate(linux-raw-sys/errno) < 0.2.0~)", + "(crate(linux-raw-sys/general) >= 0.1.2 with crate(linux-raw-sys/general) < 0.2.0~)", + "(crate(linux-raw-sys/ioctl) >= 0.1.2 with crate(linux-raw-sys/ioctl) < 0.2.0~)", + "(crate(linux-raw-sys/no_std) >= 0.1.2 with crate(linux-raw-sys/no_std) < 0.2.0~)", + "(crate(libc/default) >= 0.2.133 with crate(libc/default) < 0.3.0~)", + "(crate(libc/extra_traits) >= 0.2.133 with crate(libc/extra_traits) < 0.3.0~)", + "(crate(errno) >= 0.2.8 with crate(errno) < 0.3.0~)", + "(crate(windows-sys/default) >= 0.45.0 with crate(windows-sys/default) < 0.46.0~)", + "(crate(windows-sys/Win32_Foundation) >= 0.45.0 with crate(windows-sys/Win32_Foundation) < 0.46.0~)", + "(crate(windows-sys/Win32_Networking_WinSock) >= 0.45.0 with crate(windows-sys/Win32_Networking_WinSock) < 0.46.0~)", + "(crate(windows-sys/Win32_NetworkManagement_IpHelper) >= 0.45.0 with crate(windows-sys/Win32_NetworkManagement_IpHelper) < 0.46.0~)", + "(crate(windows-sys/Win32_System_Threading) >= 0.45.0 with crate(windows-sys/Win32_System_Threading) < 0.46.0~)", + }, + ), + ( + "serde-1.0.152.json", + { + "cargo", + }, + ), + ( + "serde_derive-1.0.152.json", + { + "cargo", + "(crate(proc-macro2/default) >= 1.0.0 with crate(proc-macro2/default) < 2.0.0~)", + "(crate(quote/default) >= 1.0.0 with crate(quote/default) < 2.0.0~)", + "(crate(syn/default) >= 1.0.104 with crate(syn/default) < 2.0.0~)", + }, + ), + ( + "syn-1.0.107.json", + { + "cargo", + "(crate(proc-macro2) >= 1.0.46 with crate(proc-macro2) < 2.0.0~)", + "(crate(unicode-ident/default) >= 1.0.0 with crate(unicode-ident/default) < 2.0.0~)", + }, + ), + ( + "time-0.3.17.json", + { + "cargo", + "crate(time-core/default) = 0.1.0", + }, + ), + ( + "tokio-1.25.0.json", + { + "cargo", + "(crate(pin-project-lite/default) >= 0.2.0 with crate(pin-project-lite/default) < 0.3.0~)", + "(crate(autocfg/default) >= 1.1.0 with crate(autocfg/default) < 2.0.0~)", + "(crate(windows-sys/default) >= 0.42.0 with crate(windows-sys/default) < 0.43.0~)", + "(crate(windows-sys/Win32_Foundation) >= 0.42.0 with crate(windows-sys/Win32_Foundation) < 0.43.0~)", + "(crate(windows-sys/Win32_Security_Authorization) >= 0.42.0 with crate(windows-sys/Win32_Security_Authorization) < 0.43.0~)", + }, + ), + ( + "unicode-xid-0.2.4.json", + { + "cargo", + }, + ), + ( + "zbus-3.8.0.json", + { + "cargo", + "(crate(async-broadcast/default) >= 0.5.0 with crate(async-broadcast/default) < 0.6.0~)", + "(crate(async-recursion/default) >= 1.0.0 with crate(async-recursion/default) < 2.0.0~)", + "(crate(async-trait/default) >= 0.1.58 with crate(async-trait/default) < 0.2.0~)", + "(crate(byteorder/default) >= 1.4.3 with crate(byteorder/default) < 2.0.0~)", + "(crate(derivative/default) >= 2.2.0 with crate(derivative/default) < 3.0.0~)", + "(crate(dirs/default) >= 4.0.0 with crate(dirs/default) < 5.0.0~)", + "(crate(enumflags2/default) >= 0.7.5 with crate(enumflags2/default) < 0.8.0~)", + "(crate(enumflags2/serde) >= 0.7.5 with crate(enumflags2/serde) < 0.8.0~)", + "(crate(event-listener/default) >= 2.5.3 with crate(event-listener/default) < 3.0.0~)", + "(crate(futures-core/default) >= 0.3.25 with crate(futures-core/default) < 0.4.0~)", + "(crate(futures-sink/default) >= 0.3.25 with crate(futures-sink/default) < 0.4.0~)", + "(crate(futures-util) >= 0.3.25 with crate(futures-util) < 0.4.0~)", + "(crate(futures-util/sink) >= 0.3.25 with crate(futures-util/sink) < 0.4.0~)", + "(crate(futures-util/std) >= 0.3.25 with crate(futures-util/std) < 0.4.0~)", + "(crate(hex/default) >= 0.4.3 with crate(hex/default) < 0.5.0~)", + "(crate(nix/default) >= 0.25.0 with crate(nix/default) < 0.26.0~)", + "(crate(once_cell/default) >= 1.4.0 with crate(once_cell/default) < 2.0.0~)", + "(crate(ordered-stream/default) >= 0.1.4 with crate(ordered-stream/default) < 0.2.0~)", + "(crate(rand/default) >= 0.8.5 with crate(rand/default) < 0.9.0~)", + "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", + "(crate(serde_repr/default) >= 0.1.9 with crate(serde_repr/default) < 0.2.0~)", + "(crate(sha1/default) >= 0.10.5 with crate(sha1/default) < 0.11.0~)", + "(crate(sha1/std) >= 0.10.5 with crate(sha1/std) < 0.11.0~)", + "(crate(static_assertions/default) >= 1.1.0 with crate(static_assertions/default) < 2.0.0~)", + "(crate(tracing/default) >= 0.1.37 with crate(tracing/default) < 0.2.0~)", + "crate(zbus_macros/default) = 3.8.0", + "(crate(zbus_names/default) >= 2.5.0 with crate(zbus_names/default) < 3.0.0~)", + "(crate(zvariant) >= 3.10.0 with crate(zvariant) < 4.0.0~)", + "(crate(zvariant/enumflags2) >= 3.10.0 with crate(zvariant/enumflags2) < 4.0.0~)", + "(crate(uds_windows/default) >= 1.0.2 with crate(uds_windows/default) < 2.0.0~)", + "(crate(winapi/default) >= 0.3.0 with crate(winapi/default) < 0.4.0~)", + "(crate(winapi/handleapi) >= 0.3.0 with crate(winapi/handleapi) < 0.4.0~)", + "(crate(winapi/iphlpapi) >= 0.3.0 with crate(winapi/iphlpapi) < 0.4.0~)", + "(crate(winapi/memoryapi) >= 0.3.0 with crate(winapi/memoryapi) < 0.4.0~)", + "(crate(winapi/processthreadsapi) >= 0.3.0 with crate(winapi/processthreadsapi) < 0.4.0~)", + "(crate(winapi/sddl) >= 0.3.0 with crate(winapi/sddl) < 0.4.0~)", + "(crate(winapi/securitybaseapi) >= 0.3.0 with crate(winapi/securitybaseapi) < 0.4.0~)", + "(crate(winapi/synchapi) >= 0.3.0 with crate(winapi/synchapi) < 0.4.0~)", + "(crate(winapi/tcpmib) >= 0.3.0 with crate(winapi/tcpmib) < 0.4.0~)", + "(crate(winapi/winbase) >= 0.3.0 with crate(winapi/winbase) < 0.4.0~)", + "(crate(winapi/winerror) >= 0.3.0 with crate(winapi/winerror) < 0.4.0~)", + "(crate(winapi/winsock2) >= 0.3.0 with crate(winapi/winsock2) < 0.4.0~)", + }, + ), + ], + ids=short_repr, +) +def test_requires_crate(filename: str, expected: set[str]): + metadata = load_metadata_from_resource(filename) + assert _requires_crate(metadata.packages[0]) == expected + + +@pytest.mark.parametrize( + "filename,feature,expected", + [ + ( + "ahash-0.8.3.json", + "default", + { + "cargo", + "crate(ahash) = 0.8.3", + "crate(ahash/std) = 0.8.3", + "crate(ahash/runtime-rng) = 0.8.3", + }, + ), + ( + "ahash-0.8.3.json", + "atomic-polyfill", + { + "cargo", + "crate(ahash) = 0.8.3", + "(crate(atomic-polyfill/default) >= 1.0.1 with crate(atomic-polyfill/default) < 2.0.0~)", + "(crate(once_cell/atomic-polyfill) >= 1.13.1 with crate(once_cell/atomic-polyfill) < 2.0.0~)", + }, + ), + ( + "ahash-0.8.3.json", + "compile-time-rng", + { + "cargo", + "crate(ahash) = 0.8.3", + "crate(ahash/const-random) = 0.8.3", + }, + ), + ( + "ahash-0.8.3.json", + "const-random", + { + "cargo", + "crate(ahash) = 0.8.3", + "(crate(const-random/default) >= 0.1.12 with crate(const-random/default) < 0.2.0~)", + }, + ), + ( + "ahash-0.8.3.json", + "getrandom", + { + "cargo", + "crate(ahash) = 0.8.3", + "(crate(getrandom/default) >= 0.2.7 with crate(getrandom/default) < 0.3.0~)", + }, + ), + ( + "ahash-0.8.3.json", + "no-rng", + { + "cargo", + "crate(ahash) = 0.8.3", + }, + ), + ( + "ahash-0.8.3.json", + "runtime-rng", + { + "cargo", + "crate(ahash) = 0.8.3", + "crate(ahash/getrandom) = 0.8.3", + }, + ), + ( + "ahash-0.8.3.json", + "serde", + { + "cargo", + "crate(ahash) = 0.8.3", + "(crate(serde/default) >= 1.0.117 with crate(serde/default) < 2.0.0~)", + }, + ), + ( + "ahash-0.8.3.json", + "std", + { + "cargo", + "crate(ahash) = 0.8.3", + }, + ), + ( + "assert_cmd-2.0.8.json", + "default", + { + "cargo", + "crate(assert_cmd) = 2.0.8", + }, + ), + ( + "assert_cmd-2.0.8.json", + "color", + { + "cargo", + "crate(assert_cmd) = 2.0.8", + "crate(concolor/default) = 0.0.11", + "(crate(yansi/default) >= 0.5.1 with crate(yansi/default) < 0.6.0~)", + "crate(concolor/std) = 0.0.11" if CARGO_BUGGY_RESOLVER else "(crate(concolor/std) = 0.0.11 if crate(concolor) = 0.0.11)", + "(crate(predicates/color) >= 2.1.0 with crate(predicates/color) < 3.0.0~)", + }, + ), + ( + "assert_cmd-2.0.8.json", + "color-auto", + { + "cargo", + "crate(assert_cmd) = 2.0.8", + "crate(assert_cmd/color) = 2.0.8", + "crate(concolor/auto) = 0.0.11" if CARGO_BUGGY_RESOLVER else "(crate(concolor/auto) = 0.0.11 if crate(concolor) = 0.0.11)", + }, + ), + ( + "assert_fs-1.0.10.json", + "default", + { + "cargo", + "crate(assert_fs) = 1.0.10", + }, + ), + ( + "assert_fs-1.0.10.json", + "color", + { + "cargo", + "crate(assert_fs) = 1.0.10", + "crate(concolor/default) = 0.0.11", + "(crate(yansi/default) >= 0.5.0 with crate(yansi/default) < 0.6.0~)", + "(crate(predicates/color) >= 2.0.3 with crate(predicates/color) < 3.0.0~)", + }, + ), + ( + "assert_fs-1.0.10.json", + "color-auto", + { + "cargo", + "crate(assert_fs) = 1.0.10", + "crate(assert_fs/color) = 1.0.10", + "crate(concolor/auto) = 0.0.11" if CARGO_BUGGY_RESOLVER else "(crate(concolor/auto) = 0.0.11 if crate(concolor) = 0.0.11)", + }, + ), + ( + "autocfg-1.1.0.json", + "default", + { + "cargo", + "crate(autocfg) = 1.1.0", + }, + ), + ( + "bstr-1.2.0.json", + "default", + { + "cargo", + "crate(bstr) = 1.2.0", + "crate(bstr/std) = 1.2.0", + "crate(bstr/unicode) = 1.2.0", + }, + ), + ( + "bstr-1.2.0.json", + "alloc", + { + "cargo", + "crate(bstr) = 1.2.0", + "(crate(serde/alloc) >= 1.0.85 with crate(serde/alloc) < 2.0.0~)" + if CARGO_BUGGY_RESOLVER + else "((crate(serde/alloc) >= 1.0.85 with crate(serde/alloc) < 2.0.0~) if (crate(serde) >= 1.0.85 with crate(serde) < 2.0.0~))", + }, + ), + ( + "bstr-1.2.0.json", + "serde", + { + "cargo", + "crate(bstr) = 1.2.0", + "(crate(serde) >= 1.0.85 with crate(serde) < 2.0.0~)", + }, + ), + ( + "bstr-1.2.0.json", + "std", + { + "cargo", + "crate(bstr) = 1.2.0", + "crate(bstr/alloc) = 1.2.0", + "(crate(memchr/std) >= 2.4.0 with crate(memchr/std) < 3.0.0~)", + "(crate(serde/std) >= 1.0.85 with crate(serde/std) < 2.0.0~)" + if CARGO_BUGGY_RESOLVER + else "((crate(serde/std) >= 1.0.85 with crate(serde/std) < 2.0.0~) if (crate(serde) >= 1.0.85 with crate(serde) < 2.0.0~))", + }, + ), + ( + "bstr-1.2.0.json", + "unicode", + { + "cargo", + "crate(bstr) = 1.2.0", + "(crate(once_cell/default) >= 1.14.0 with crate(once_cell/default) < 2.0.0~)", + "(crate(regex-automata) >= 0.1.5 with crate(regex-automata) < 0.2.0~)", + }, + ), + ( + "cfg-if-1.0.0.json", + "default", + { + "cargo", + "crate(cfg-if) = 1.0.0", + }, + ), + ( + "cfg-if-1.0.0.json", + "compiler_builtins", + { + "cargo", + "crate(cfg-if) = 1.0.0", + "(crate(compiler_builtins/default) >= 0.1.2 with crate(compiler_builtins/default) < 0.2.0~)", + }, + ), + ( + "cfg-if-1.0.0.json", + "core", + { + "cargo", + "crate(cfg-if) = 1.0.0", + "(crate(rustc-std-workspace-core/default) >= 1.0.0 with crate(rustc-std-workspace-core/default) < 2.0.0~)", + }, + ), + ( + "cfg-if-1.0.0.json", + "rustc-dep-of-std", + { + "cargo", + "crate(cfg-if) = 1.0.0", + "crate(cfg-if/core) = 1.0.0", + "crate(cfg-if/compiler_builtins) = 1.0.0", + }, + ), + ( + "clap-4.1.4.json", + "default", + { + "cargo", + "crate(clap) = 4.1.4", + "crate(clap/std) = 4.1.4", + "crate(clap/color) = 4.1.4", + "crate(clap/help) = 4.1.4", + "crate(clap/usage) = 4.1.4", + "crate(clap/error-context) = 4.1.4", + "crate(clap/suggestions) = 4.1.4", + }, + ), + ( + "clap-4.1.4.json", + "cargo", + { + "cargo", + "crate(clap) = 4.1.4", + "(crate(once_cell/default) >= 1.12.0 with crate(once_cell/default) < 2.0.0~)", + }, + ), + ( + "clap-4.1.4.json", + "color", + { + "cargo", + "crate(clap) = 4.1.4", + "(crate(is-terminal/default) >= 0.4.1 with crate(is-terminal/default) < 0.5.0~)", + "(crate(termcolor/default) >= 1.1.1 with crate(termcolor/default) < 2.0.0~)", + }, + ), + ( + "clap-4.1.4.json", + "debug", + { + "cargo", + "crate(clap) = 4.1.4", + "(crate(backtrace/default) >= 0.3.0 with crate(backtrace/default) < 0.4.0~)", + "crate(clap_derive/debug) = 4.1.0" + if CARGO_BUGGY_RESOLVER + else "(crate(clap_derive/debug) = 4.1.0 if crate(clap_derive) = 4.1.0)", + }, + ), + ( + "clap-4.1.4.json", + "deprecated", + { + "cargo", + "crate(clap) = 4.1.4", + "crate(clap_derive/deprecated) = 4.1.0" + if CARGO_BUGGY_RESOLVER + else "(crate(clap_derive/deprecated) = 4.1.0 if crate(clap_derive) = 4.1.0)", + }, + ), + ( + "clap-4.1.4.json", + "derive", + { + "cargo", + "crate(clap) = 4.1.4", + "crate(clap_derive/default) = 4.1.0", + "(crate(once_cell/default) >= 1.12.0 with crate(once_cell/default) < 2.0.0~)", + }, + ), + ( + "clap-4.1.4.json", + "env", + { + "cargo", + "crate(clap) = 4.1.4", + }, + ), + ( + "clap-4.1.4.json", + "error-context", + { + "cargo", + "crate(clap) = 4.1.4", + }, + ), + ( + "clap-4.1.4.json", + "help", + { + "cargo", + "crate(clap) = 4.1.4", + }, + ), + ( + "clap-4.1.4.json", + "std", + { + "cargo", + "crate(clap) = 4.1.4", + }, + ), + ( + "clap-4.1.4.json", + "string", + { + "cargo", + "crate(clap) = 4.1.4", + }, + ), + ( + "clap-4.1.4.json", + "suggestions", + { + "cargo", + "crate(clap) = 4.1.4", + "crate(clap/error-context) = 4.1.4", + "(crate(strsim/default) >= 0.10.0 with crate(strsim/default) < 0.11.0~)", + }, + ), + ( + "clap-4.1.4.json", + "unicode", + { + "cargo", + "crate(clap) = 4.1.4", + "(crate(unicode-width/default) >= 0.1.9 with crate(unicode-width/default) < 0.2.0~)", + "(crate(unicase/default) >= 2.6.0 with crate(unicase/default) < 3.0.0~)", + }, + ), + ( + "clap-4.1.4.json", + "unstable-doc", + { + "cargo", + "crate(clap) = 4.1.4", + "crate(clap/derive) = 4.1.4", + "crate(clap/cargo) = 4.1.4", + "crate(clap/wrap_help) = 4.1.4", + "crate(clap/env) = 4.1.4", + "crate(clap/unicode) = 4.1.4", + "crate(clap/string) = 4.1.4", + "crate(clap/unstable-replace) = 4.1.4", + }, + ), + ( + "clap-4.1.4.json", + "unstable-grouped", + { + "cargo", + "crate(clap) = 4.1.4", + }, + ), + ( + "clap-4.1.4.json", + "unstable-replace", + { + "cargo", + "crate(clap) = 4.1.4", + }, + ), + ( + "clap-4.1.4.json", + "unstable-v5", + { + "cargo", + "crate(clap) = 4.1.4", + "crate(clap/deprecated) = 4.1.4", + "crate(clap_derive/unstable-v5) = 4.1.0" + if CARGO_BUGGY_RESOLVER + else "(crate(clap_derive/unstable-v5) = 4.1.0 if crate(clap_derive) = 4.1.0)", + }, + ), + ( + "clap-4.1.4.json", + "usage", + { + "cargo", + "crate(clap) = 4.1.4", + }, + ), + ( + "clap-4.1.4.json", + "wrap_help", + { + "cargo", + "crate(clap) = 4.1.4", + "crate(clap/help) = 4.1.4", + "(crate(terminal_size/default) >= 0.2.1 with crate(terminal_size/default) < 0.3.0~)", + }, + ), + ( + "gstreamer-0.19.7.json", + "default", + { + "cargo", + "crate(gstreamer) = 0.19.7", + }, + ), + ( + "gstreamer-0.19.7.json", + "dox", + { + "cargo", + "crate(gstreamer) = 0.19.7", + "crate(gstreamer/serde) = 0.19.7", + "(crate(glib/dox) >= 0.16.2 with crate(glib/dox) < 0.17.0~)", + "(crate(gstreamer-sys/dox) >= 0.19.0 with crate(gstreamer-sys/dox) < 0.20.0~)", + }, + ), + ( + "gstreamer-0.19.7.json", + "serde", + { + "cargo", + "crate(gstreamer) = 0.19.7", + "crate(gstreamer/serde_bytes) = 0.19.7", + "(crate(num-rational/serde) >= 0.4.0 with crate(num-rational/serde) < 0.5.0~)", + "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", + }, + ), + ( + "gstreamer-0.19.7.json", + "serde_bytes", + { + "cargo", + "crate(gstreamer) = 0.19.7", + "(crate(serde_bytes/default) >= 0.11.0 with crate(serde_bytes/default) < 0.12.0~)", + }, + ), + ( + "gstreamer-0.19.7.json", + "v1_16", + { + "cargo", + "crate(gstreamer) = 0.19.7", + "(crate(gstreamer-sys/v1_16) >= 0.19.0 with crate(gstreamer-sys/v1_16) < 0.20.0~)", + }, + ), + ( + "gstreamer-0.19.7.json", + "v1_18", + { + "cargo", + "crate(gstreamer) = 0.19.7", + "crate(gstreamer/v1_16) = 0.19.7", + "(crate(gstreamer-sys/v1_18) >= 0.19.0 with crate(gstreamer-sys/v1_18) < 0.20.0~)", + }, + ), + ( + "gstreamer-0.19.7.json", + "v1_20", + { + "cargo", + "crate(gstreamer) = 0.19.7", + "crate(gstreamer/v1_18) = 0.19.7", + "(crate(gstreamer-sys/v1_20) >= 0.19.0 with crate(gstreamer-sys/v1_20) < 0.20.0~)", + }, + ), + ( + "gstreamer-0.19.7.json", + "v1_22", + { + "cargo", + "crate(gstreamer) = 0.19.7", + "crate(gstreamer/v1_20) = 0.19.7", + "(crate(gstreamer-sys/v1_22) >= 0.19.0 with crate(gstreamer-sys/v1_22) < 0.20.0~)", + }, + ), + ( + "human-panic-1.1.0.json", + "default", + { + "cargo", + "crate(human-panic) = 1.1.0", + "crate(human-panic/color) = 1.1.0", + }, + ), + ( + "human-panic-1.1.0.json", + "color", + { + "cargo", + "crate(human-panic) = 1.1.0", + "crate(concolor/default) = 0.0.11", + "crate(concolor/auto) = 0.0.11", + "(crate(termcolor/default) >= 1.0.4 with crate(termcolor/default) < 2.0.0~)", + }, + ), + ( + "human-panic-1.1.0.json", + "nightly", + { + "cargo", + "crate(human-panic) = 1.1.0", + }, + ), + ( + "libc-0.2.139.json", + "default", + { + "cargo", + "crate(libc) = 0.2.139", + "crate(libc/std) = 0.2.139", + }, + ), + ( + "libc-0.2.139.json", + "align", + { + "cargo", + "crate(libc) = 0.2.139", + }, + ), + ( + "libc-0.2.139.json", + "const-extern-fn", + { + "cargo", + "crate(libc) = 0.2.139", + }, + ), + ( + "libc-0.2.139.json", + "extra_traits", + { + "cargo", + "crate(libc) = 0.2.139", + }, + ), + ( + "libc-0.2.139.json", + "rustc-dep-of-std", + { + "cargo", + "crate(libc) = 0.2.139", + "crate(libc/align) = 0.2.139", + "crate(libc/rustc-std-workspace-core) = 0.2.139", + }, + ), + ( + "libc-0.2.139.json", + "rustc-std-workspace-core", + { + "cargo", + "crate(libc) = 0.2.139", + "(crate(rustc-std-workspace-core/default) >= 1.0.0 with crate(rustc-std-workspace-core/default) < 2.0.0~)", + }, + ), + ( + "libc-0.2.139.json", + "std", + { + "cargo", + "crate(libc) = 0.2.139", + }, + ), + ( + "libc-0.2.139.json", + "use_std", + { + "cargo", + "crate(libc) = 0.2.139", + "crate(libc/std) = 0.2.139", + }, + ), + ( + "predicates-2.1.5.json", + "default", + { + "cargo", + "crate(predicates) = 2.1.5", + "crate(predicates/diff) = 2.1.5", + "crate(predicates/regex) = 2.1.5", + "crate(predicates/float-cmp) = 2.1.5", + "crate(predicates/normalize-line-endings) = 2.1.5", + }, + ), + ( + "predicates-2.1.5.json", + "color", + { + "cargo", + "crate(predicates) = 2.1.5", + "crate(concolor/default) = 0.0.11", + "crate(concolor/std) = 0.0.11" if CARGO_BUGGY_RESOLVER else "(crate(concolor/std) = 0.0.11 if crate(concolor) = 0.0.11)", + "(crate(yansi/default) >= 0.5.1 with crate(yansi/default) < 0.6.0~)", + }, + ), + ( + "predicates-2.1.5.json", + "color-auto", + { + "cargo", + "crate(predicates) = 2.1.5", + "crate(predicates/color) = 2.1.5", + "crate(concolor/auto) = 0.0.11" if CARGO_BUGGY_RESOLVER else "(crate(concolor/auto) = 0.0.11 if crate(concolor) = 0.0.11)", + }, + ), + ( + "predicates-2.1.5.json", + "diff", + { + "cargo", + "crate(predicates) = 2.1.5", + "(crate(difflib/default) >= 0.4.0 with crate(difflib/default) < 0.5.0~)", + }, + ), + ( + "predicates-2.1.5.json", + "float-cmp", + { + "cargo", + "crate(predicates) = 2.1.5", + "(crate(float-cmp/default) >= 0.9.0 with crate(float-cmp/default) < 0.10.0~)", + }, + ), + ( + "predicates-2.1.5.json", + "normalize-line-endings", + { + "cargo", + "crate(predicates) = 2.1.5", + "(crate(normalize-line-endings/default) >= 0.3.0 with crate(normalize-line-endings/default) < 0.4.0~)", + }, + ), + ( + "predicates-2.1.5.json", + "regex", + { + "cargo", + "crate(predicates) = 2.1.5", + "(crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0~)", + }, + ), + ( + "predicates-2.1.5.json", + "unstable", + { + "cargo", + "crate(predicates) = 2.1.5", + }, + ), + ( + "proc-macro2-1.0.50.json", + "default", + { + "cargo", + "crate(proc-macro2) = 1.0.50", + "crate(proc-macro2/proc-macro) = 1.0.50", + }, + ), + ( + "proc-macro2-1.0.50.json", + "nightly", + { + "cargo", + "crate(proc-macro2) = 1.0.50", + }, + ), + ( + "proc-macro2-1.0.50.json", + "proc-macro", + { + "cargo", + "crate(proc-macro2) = 1.0.50", + }, + ), + ( + "proc-macro2-1.0.50.json", + "span-locations", + { + "cargo", + "crate(proc-macro2) = 1.0.50", + }, + ), + ( + "quote-1.0.23.json", + "default", + { + "cargo", + "crate(quote) = 1.0.23", + "crate(quote/proc-macro) = 1.0.23", + }, + ), + ( + "quote-1.0.23.json", + "proc-macro", + { + "cargo", + "crate(quote) = 1.0.23", + "(crate(proc-macro2/proc-macro) >= 1.0.40 with crate(proc-macro2/proc-macro) < 2.0.0~)", + }, + ), + ( + "rand-0.8.5.json", + "default", + { + "cargo", + "crate(rand) = 0.8.5", + "crate(rand/std) = 0.8.5", + "crate(rand/std_rng) = 0.8.5", + }, + ), + ( + "rand-0.8.5.json", + "alloc", + { + "cargo", + "crate(rand) = 0.8.5", + "(crate(rand_core/alloc) >= 0.6.0 with crate(rand_core/alloc) < 0.7.0~)", + }, + ), + ( + "rand-0.8.5.json", + "getrandom", + { + "cargo", + "crate(rand) = 0.8.5", + "(crate(rand_core/getrandom) >= 0.6.0 with crate(rand_core/getrandom) < 0.7.0~)", + }, + ), + ( + "rand-0.8.5.json", + "libc", + { + "cargo", + "crate(rand) = 0.8.5", + "(crate(libc) >= 0.2.22 with crate(libc) < 0.3.0~)", + }, + ), + ( + "rand-0.8.5.json", + "log", + { + "cargo", + "crate(rand) = 0.8.5", + "(crate(log/default) >= 0.4.4 with crate(log/default) < 0.5.0~)", + }, + ), + ( + "rand-0.8.5.json", + "min_const_gen", + { + "cargo", + "crate(rand) = 0.8.5", + }, + ), + ( + "rand-0.8.5.json", + "nightly", + { + "cargo", + "crate(rand) = 0.8.5", + }, + ), + ( + "rand-0.8.5.json", + "packed_simd", + { + "cargo", + "crate(rand) = 0.8.5", + "(crate(packed_simd_2/default) >= 0.3.7 with crate(packed_simd_2/default) < 0.4.0~)", + "(crate(packed_simd_2/into_bits) >= 0.3.7 with crate(packed_simd_2/into_bits) < 0.4.0~)", + }, + ), + ( + "rand-0.8.5.json", + "rand_chacha", + { + "cargo", + "crate(rand) = 0.8.5", + "(crate(rand_chacha) >= 0.3.0 with crate(rand_chacha) < 0.4.0~)", + }, + ), + ( + "rand-0.8.5.json", + "serde", + { + "cargo", + "crate(rand) = 0.8.5", + "(crate(serde/default) >= 1.0.103 with crate(serde/default) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.103 with crate(serde/derive) < 2.0.0~)", + }, + ), + ( + "rand-0.8.5.json", + "serde1", + { + "cargo", + "crate(rand) = 0.8.5", + "crate(rand/serde) = 0.8.5", + "(crate(rand_core/serde1) >= 0.6.0 with crate(rand_core/serde1) < 0.7.0~)", + }, + ), + ( + "rand-0.8.5.json", + "simd_support", + { + "cargo", + "crate(rand) = 0.8.5", + "crate(rand/packed_simd) = 0.8.5", + }, + ), + ( + "rand-0.8.5.json", + "small_rng", + { + "cargo", + "crate(rand) = 0.8.5", + }, + ), + ( + "rand-0.8.5.json", + "std", + { + "cargo", + "crate(rand) = 0.8.5", + "crate(rand/alloc) = 0.8.5", + "crate(rand/getrandom) = 0.8.5", + "crate(rand/libc) = 0.8.5", + "(crate(rand_core/std) >= 0.6.0 with crate(rand_core/std) < 0.7.0~)", + "(crate(rand_chacha/std) >= 0.3.0 with crate(rand_chacha/std) < 0.4.0~)", + }, + ), + ( + "rand-0.8.5.json", + "std_rng", + { + "cargo", + "crate(rand) = 0.8.5", + "crate(rand/rand_chacha) = 0.8.5", + }, + ), + ( + "rand_core-0.6.4.json", + "default", + { + "cargo", + "crate(rand_core) = 0.6.4", + }, + ), + ( + "rand_core-0.6.4.json", + "alloc", + { + "cargo", + "crate(rand_core) = 0.6.4", + }, + ), + ( + "rand_core-0.6.4.json", + "getrandom", + { + "cargo", + "crate(rand_core) = 0.6.4", + "(crate(getrandom/default) >= 0.2.0 with crate(getrandom/default) < 0.3.0~)", + }, + ), + ( + "rand_core-0.6.4.json", + "serde", + { + "cargo", + "crate(rand_core) = 0.6.4", + "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", + "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", + }, + ), + ( + "rand_core-0.6.4.json", + "serde1", + { + "cargo", + "crate(rand_core) = 0.6.4", + "crate(rand_core/serde) = 0.6.4", + }, + ), + ( + "rand_core-0.6.4.json", + "std", + { + "cargo", + "crate(rand_core) = 0.6.4", + "crate(rand_core/alloc) = 0.6.4", + "crate(rand_core/getrandom) = 0.6.4", + "(crate(getrandom/std) >= 0.2.0 with crate(getrandom/std) < 0.3.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "default", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/serde) = 1.28.0", + "crate(rust_decimal/std) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "arbitrary", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "(crate(arbitrary) >= 1.0.0 with crate(arbitrary) < 2.0.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "borsh", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "(crate(borsh) >= 0.9.0 with crate(borsh) < 0.10.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "bytecheck", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "(crate(bytecheck) >= 0.6.0 with crate(bytecheck) < 0.7.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "byteorder", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "(crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "bytes", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "(crate(bytes) >= 1.0.0 with crate(bytes) < 2.0.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "c-repr", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "db-diesel-mysql", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/db-diesel1-mysql) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "db-diesel-postgres", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/db-diesel1-postgres) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "db-diesel1-mysql", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/std) = 1.28.0", + "(crate(diesel/mysql) >= 1.0.0 with crate(diesel/mysql) < 2.0.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "db-diesel1-postgres", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/std) = 1.28.0", + "(crate(diesel/postgres) >= 1.0.0 with crate(diesel/postgres) < 2.0.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "db-diesel2-mysql", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/std) = 1.28.0", + "(crate(diesel/mysql) >= 2.0.0 with crate(diesel/mysql) < 3.0.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "db-diesel2-postgres", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/std) = 1.28.0", + "(crate(diesel/postgres) >= 2.0.0 with crate(diesel/postgres) < 3.0.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "db-postgres", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/byteorder) = 1.28.0", + "crate(rust_decimal/bytes) = 1.28.0", + "crate(rust_decimal/postgres) = 1.28.0", + "crate(rust_decimal/std) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "db-tokio-postgres", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/byteorder) = 1.28.0", + "crate(rust_decimal/bytes) = 1.28.0", + "crate(rust_decimal/postgres) = 1.28.0", + "crate(rust_decimal/std) = 1.28.0", + "crate(rust_decimal/tokio-postgres) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "diesel1", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "(crate(diesel) >= 1.0.0 with crate(diesel) < 2.0.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "diesel2", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "(crate(diesel) >= 2.0.0 with crate(diesel) < 3.0.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "legacy-ops", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "maths", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "maths-nopanic", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/maths) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "postgres", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "(crate(postgres) >= 0.19.0 with crate(postgres) < 0.20.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "rand", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "(crate(rand) >= 0.8.0 with crate(rand) < 0.9.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "rkyv", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "(crate(rkyv) >= 0.7.0 with crate(rkyv) < 0.8.0~)", + "(crate(rkyv/size_32) >= 0.7.0 with crate(rkyv/size_32) < 0.8.0~)", + "(crate(rkyv/std) >= 0.7.0 with crate(rkyv/std) < 0.8.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "rkyv-safe", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/bytecheck) = 1.28.0", + "(crate(rkyv/validation) >= 0.7.0 with crate(rkyv/validation) < 0.8.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "rocket", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "(crate(rocket) >= 0.5.0~rc.1 with crate(rocket) < 0.6.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "rocket-traits", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/rocket) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "rust-fuzz", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/arbitrary) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "serde-arbitrary-precision", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/serde-with-arbitrary-precision) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "serde-bincode", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/serde-str) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "serde-float", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/serde-with-float) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "serde-str", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/serde-with-str) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "serde-with-arbitrary-precision", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/serde) = 1.28.0", + "(crate(serde_json/arbitrary_precision) >= 1.0.0 with crate(serde_json/arbitrary_precision) < 2.0.0~)", + "(crate(serde_json/std) >= 1.0.0 with crate(serde_json/std) < 2.0.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "serde-with-float", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/serde) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "serde-with-str", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/serde) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "serde_json", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "(crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0~)", + }, + ), + ( + "rust_decimal-1.28.0.json", + "std", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "(crate(arrayvec/std) >= 0.7.0 with crate(arrayvec/std) < 0.8.0~)", + "(crate(borsh/std) >= 0.9.0 with crate(borsh/std) < 0.10.0~)" + if CARGO_BUGGY_RESOLVER + else "((crate(borsh/std) >= 0.9.0 with crate(borsh/std) < 0.10.0~) if (crate(borsh) >= 0.9.0 with crate(borsh) < 0.10.0~))", + "(crate(bytecheck/std) >= 0.6.0 with crate(bytecheck/std) < 0.7.0~)" + if CARGO_BUGGY_RESOLVER + else "((crate(bytecheck/std) >= 0.6.0 with crate(bytecheck/std) < 0.7.0~) if (crate(bytecheck) >= 0.6.0 with crate(bytecheck) < 0.7.0~))", + "(crate(byteorder/std) >= 1.0.0 with crate(byteorder/std) < 2.0.0~)" + if CARGO_BUGGY_RESOLVER + else "((crate(byteorder/std) >= 1.0.0 with crate(byteorder/std) < 2.0.0~) if (crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0~))", + "(crate(bytes/std) >= 1.0.0 with crate(bytes/std) < 2.0.0~)" + if CARGO_BUGGY_RESOLVER + else "((crate(bytes/std) >= 1.0.0 with crate(bytes/std) < 2.0.0~) if (crate(bytes) >= 1.0.0 with crate(bytes) < 2.0.0~))", + "(crate(rand/std) >= 0.8.0 with crate(rand/std) < 0.9.0~)" + if CARGO_BUGGY_RESOLVER + else "((crate(rand/std) >= 0.8.0 with crate(rand/std) < 0.9.0~) if (crate(rand) >= 0.8.0 with crate(rand) < 0.9.0~))", + "(crate(rkyv/std) >= 0.7.0 with crate(rkyv/std) < 0.8.0~)" + if CARGO_BUGGY_RESOLVER + else "((crate(rkyv/std) >= 0.7.0 with crate(rkyv/std) < 0.8.0~) if (crate(rkyv) >= 0.7.0 with crate(rkyv) < 0.8.0~))", + "(crate(serde/std) >= 1.0.0 with crate(serde/std) < 2.0.0~)" + if CARGO_BUGGY_RESOLVER + else "((crate(serde/std) >= 1.0.0 with crate(serde/std) < 2.0.0~) if (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0~))", + "(crate(serde_json/std) >= 1.0.0 with crate(serde_json/std) < 2.0.0~)" + if CARGO_BUGGY_RESOLVER + else "((crate(serde_json/std) >= 1.0.0 with crate(serde_json/std) < 2.0.0~) if (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0~))", + }, + ), + ( + "rust_decimal-1.28.0.json", + "tokio-pg", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "crate(rust_decimal/db-tokio-postgres) = 1.28.0", + }, + ), + ( + "rust_decimal-1.28.0.json", + "tokio-postgres", + { + "cargo", + "crate(rust_decimal) = 1.28.0", + "(crate(tokio-postgres) >= 0.7.0 with crate(tokio-postgres) < 0.8.0~)", + }, + ), + ( + "rustix-0.36.8.json", + "default", + { + "cargo", + "crate(rustix) = 0.36.8", + "crate(rustix/std) = 0.36.8", + "crate(rustix/use-libc-auxv) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "all-apis", + { + "cargo", + "crate(rustix) = 0.36.8", + "crate(rustix/fs) = 0.36.8", + "crate(rustix/io_uring) = 0.36.8", + "crate(rustix/mm) = 0.36.8", + "crate(rustix/net) = 0.36.8", + "crate(rustix/param) = 0.36.8", + "crate(rustix/process) = 0.36.8", + "crate(rustix/procfs) = 0.36.8", + "crate(rustix/rand) = 0.36.8", + "crate(rustix/runtime) = 0.36.8", + "crate(rustix/termios) = 0.36.8", + "crate(rustix/thread) = 0.36.8", + "crate(rustix/time) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "all-impls", + { + "cargo", + "crate(rustix) = 0.36.8", + "crate(rustix/fs-err) = 0.36.8", + "crate(rustix/os_pipe) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "alloc", + { + "cargo", + "crate(rustix) = 0.36.8", + "(crate(rustc-std-workspace-alloc/default) >= 1.0.0 with crate(rustc-std-workspace-alloc/default) < 2.0.0~)", + }, + ), + ( + "rustix-0.36.8.json", + "cc", + { + "cargo", + "crate(rustix) = 0.36.8", + "(crate(cc/default) >= 1.0.68 with crate(cc/default) < 2.0.0~)", + }, + ), + ( + "rustix-0.36.8.json", + "compiler_builtins", + { + "cargo", + "crate(rustix) = 0.36.8", + "(crate(compiler_builtins/default) >= 0.1.49 with crate(compiler_builtins/default) < 0.2.0~)", + }, + ), + ( + "rustix-0.36.8.json", + "core", + { + "cargo", + "crate(rustix) = 0.36.8", + "(crate(rustc-std-workspace-core/default) >= 1.0.0 with crate(rustc-std-workspace-core/default) < 2.0.0~)", + }, + ), + ( + "rustix-0.36.8.json", + "fs", + { + "cargo", + "crate(rustix) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "fs-err", + { + "cargo", + "crate(rustix) = 0.36.8", + "(crate(io-lifetimes/fs-err) >= 1.0.0 with crate(io-lifetimes/fs-err) < 2.0.0~)", + }, + ), + ( + "rustix-0.36.8.json", + "io-lifetimes", + { + "cargo", + "crate(rustix) = 0.36.8", + "(crate(io-lifetimes) >= 1.0.0 with crate(io-lifetimes) < 2.0.0~)", + "(crate(io-lifetimes/close) >= 1.0.0 with crate(io-lifetimes/close) < 2.0.0~)", + }, + ), + ( + "rustix-0.36.8.json", + "io_uring", + { + "cargo", + "crate(rustix) = 0.36.8", + "crate(rustix/fs) = 0.36.8", + "crate(rustix/net) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "itoa", + { + "cargo", + "crate(rustix) = 0.36.8", + "(crate(itoa) >= 1.0.1 with crate(itoa) < 2.0.0~)", + }, + ), + ( + "rustix-0.36.8.json", + "libc", + { + "cargo", + "crate(rustix) = 0.36.8", + "(crate(libc/default) >= 0.2.133 with crate(libc/default) < 0.3.0~)", + "(crate(libc/extra_traits) >= 0.2.133 with crate(libc/extra_traits) < 0.3.0~)", + }, + ), + ( + "rustix-0.36.8.json", + "libc_errno", + { + "cargo", + "crate(rustix) = 0.36.8", + "(crate(errno) >= 0.2.8 with crate(errno) < 0.3.0~)", + }, + ), + ( + "rustix-0.36.8.json", + "mm", + { + "cargo", + "crate(rustix) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "net", + { + "cargo", + "crate(rustix) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "once_cell", + { + "cargo", + "crate(rustix) = 0.36.8", + "(crate(once_cell/default) >= 1.5.2 with crate(once_cell/default) < 2.0.0~)", + }, + ), + ( + "rustix-0.36.8.json", + "os_pipe", + { + "cargo", + "crate(rustix) = 0.36.8", + "(crate(io-lifetimes/os_pipe) >= 1.0.0 with crate(io-lifetimes/os_pipe) < 2.0.0~)", + }, + ), + ( + "rustix-0.36.8.json", + "param", + { + "cargo", + "crate(rustix) = 0.36.8", + "crate(rustix/fs) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "process", + { + "cargo", + "crate(rustix) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "procfs", + { + "cargo", + "crate(rustix) = 0.36.8", + "crate(rustix/once_cell) = 0.36.8", + "crate(rustix/itoa) = 0.36.8", + "crate(rustix/fs) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "rand", + { + "cargo", + "crate(rustix) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "runtime", + { + "cargo", + "crate(rustix) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "rustc-dep-of-std", + { + "cargo", + "crate(rustix) = 0.36.8", + "crate(rustix/core) = 0.36.8", + "crate(rustix/alloc) = 0.36.8", + "crate(rustix/compiler_builtins) = 0.36.8", + "(crate(linux-raw-sys/rustc-dep-of-std) >= 0.1.2 with crate(linux-raw-sys/rustc-dep-of-std) < 0.2.0~)", + "(crate(bitflags/rustc-dep-of-std) >= 1.2.1 with crate(bitflags/rustc-dep-of-std) < 2.0.0~)", + }, + ), + ( + "rustix-0.36.8.json", + "std", + { + "cargo", + "crate(rustix) = 0.36.8", + "crate(rustix/io-lifetimes) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "termios", + { + "cargo", + "crate(rustix) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "thread", + { + "cargo", + "crate(rustix) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "time", + { + "cargo", + "crate(rustix) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "use-libc", + { + "cargo", + "crate(rustix) = 0.36.8", + "crate(rustix/libc) = 0.36.8", + "crate(rustix/libc_errno) = 0.36.8", + }, + ), + ( + "rustix-0.36.8.json", + "use-libc-auxv", + { + "cargo", + "crate(rustix) = 0.36.8", + "crate(rustix/libc) = 0.36.8", + }, + ), + ( + "serde-1.0.152.json", + "default", + { + "cargo", + "crate(serde) = 1.0.152", + "crate(serde/std) = 1.0.152", + }, + ), + ( + "serde-1.0.152.json", + "alloc", + { + "cargo", + "crate(serde) = 1.0.152", + }, + ), + ( + "serde-1.0.152.json", + "derive", + { + "cargo", + "crate(serde) = 1.0.152", + "crate(serde/serde_derive) = 1.0.152", + }, + ), + ( + "serde-1.0.152.json", + "rc", + { + "cargo", + "crate(serde) = 1.0.152", + }, + ), + ( + "serde-1.0.152.json", + "serde_derive", + { + "cargo", + "crate(serde) = 1.0.152", + "crate(serde_derive/default) = 1.0.152", + }, + ), + ( + "serde-1.0.152.json", + "std", + { + "cargo", + "crate(serde) = 1.0.152", + }, + ), + ( + "serde-1.0.152.json", + "unstable", + { + "cargo", + "crate(serde) = 1.0.152", + }, + ), + ( + "serde_derive-1.0.152.json", + "default", + { + "cargo", + "crate(serde_derive) = 1.0.152", + }, + ), + ( + "serde_derive-1.0.152.json", + "deserialize_in_place", + { + "cargo", + "crate(serde_derive) = 1.0.152", + }, + ), + ( + "syn-1.0.107.json", + "default", + { + "cargo", + "crate(syn) = 1.0.107", + "crate(syn/derive) = 1.0.107", + "crate(syn/parsing) = 1.0.107", + "crate(syn/printing) = 1.0.107", + "crate(syn/clone-impls) = 1.0.107", + "crate(syn/proc-macro) = 1.0.107", + }, + ), + ( + "syn-1.0.107.json", + "clone-impls", + { + "cargo", + "crate(syn) = 1.0.107", + }, + ), + ( + "syn-1.0.107.json", + "derive", + { + "cargo", + "crate(syn) = 1.0.107", + }, + ), + ( + "syn-1.0.107.json", + "extra-traits", + { + "cargo", + "crate(syn) = 1.0.107", + }, + ), + ( + "syn-1.0.107.json", + "fold", + { + "cargo", + "crate(syn) = 1.0.107", + }, + ), + ( + "syn-1.0.107.json", + "full", + { + "cargo", + "crate(syn) = 1.0.107", + }, + ), + ( + "syn-1.0.107.json", + "parsing", + { + "cargo", + "crate(syn) = 1.0.107", + }, + ), + ( + "syn-1.0.107.json", + "printing", + { + "cargo", + "crate(syn) = 1.0.107", + "crate(syn/quote) = 1.0.107", + }, + ), + ( + "syn-1.0.107.json", + "proc-macro", + { + "cargo", + "crate(syn) = 1.0.107", + "(crate(proc-macro2/proc-macro) >= 1.0.46 with crate(proc-macro2/proc-macro) < 2.0.0~)", + "(crate(quote/proc-macro) >= 1.0.0 with crate(quote/proc-macro) < 2.0.0~)", + }, + ), + ( + "syn-1.0.107.json", + "quote", + { + "cargo", + "crate(syn) = 1.0.107", + "(crate(quote) >= 1.0.0 with crate(quote) < 2.0.0~)", + }, + ), + ( + "syn-1.0.107.json", + "test", + { + "cargo", + "crate(syn) = 1.0.107", + }, + ), + ( + "syn-1.0.107.json", + "visit", + { + "cargo", + "crate(syn) = 1.0.107", + }, + ), + ( + "syn-1.0.107.json", + "visit-mut", + { + "cargo", + "crate(syn) = 1.0.107", + }, + ), + ( + "time-0.3.17.json", + "default", + { + "cargo", + "crate(time) = 0.3.17", + "crate(time/std) = 0.3.17", + }, + ), + ( + "time-0.3.17.json", + "default", + { + "cargo", + "crate(time) = 0.3.17", + "crate(time/std) = 0.3.17", + }, + ), + ( + "time-0.3.17.json", + "alloc", + { + "cargo", + "crate(time) = 0.3.17", + "(crate(serde/alloc) >= 1.0.126 with crate(serde/alloc) < 2.0.0~)" + if CARGO_BUGGY_RESOLVER + else "((crate(serde/alloc) >= 1.0.126 with crate(serde/alloc) < 2.0.0~) if (crate(serde) >= 1.0.126 with crate(serde) < 2.0.0~))", + }, + ), + ( + "time-0.3.17.json", + "formatting", + { + "cargo", + "crate(time) = 0.3.17", + "crate(time/std) = 0.3.17", + "(crate(itoa/default) >= 1.0.1 with crate(itoa/default) < 2.0.0~)", + "crate(time-macros/formatting) = 0.2.6" + if CARGO_BUGGY_RESOLVER + else "(crate(time-macros/formatting) = 0.2.6 if crate(time-macros) = 0.2.6)", + }, + ), + ( + "time-0.3.17.json", + "large-dates", + { + "cargo", + "crate(time) = 0.3.17", + "crate(time-macros/large-dates) = 0.2.6" + if CARGO_BUGGY_RESOLVER + else "(crate(time-macros/large-dates) = 0.2.6 if crate(time-macros) = 0.2.6)", + }, + ), + ( + "time-0.3.17.json", + "local-offset", + { + "cargo", + "crate(time) = 0.3.17", + "crate(time/std) = 0.3.17", + "(crate(libc/default) >= 0.2.98 with crate(libc/default) < 0.3.0~)", + "(crate(num_threads/default) >= 0.1.2 with crate(num_threads/default) < 0.2.0~)", + }, + ), + ( + "time-0.3.17.json", + "macros", + { + "cargo", + "crate(time) = 0.3.17", + "crate(time-macros/default) = 0.2.6", + }, + ), + ( + "time-0.3.17.json", + "parsing", + { + "cargo", + "crate(time) = 0.3.17", + "crate(time-macros/parsing) = 0.2.6" + if CARGO_BUGGY_RESOLVER + else "(crate(time-macros/parsing) = 0.2.6 if crate(time-macros) = 0.2.6)", + }, + ), + ( + "time-0.3.17.json", + "rand", + { + "cargo", + "crate(time) = 0.3.17", + "(crate(rand) >= 0.8.4 with crate(rand) < 0.9.0~)", + }, + ), + ( + "time-0.3.17.json", + "serde", + { + "cargo", + "crate(time) = 0.3.17", + "(crate(serde) >= 1.0.126 with crate(serde) < 2.0.0~)", + "crate(time-macros/serde) = 0.2.6" + if CARGO_BUGGY_RESOLVER + else "(crate(time-macros/serde) = 0.2.6 if crate(time-macros) = 0.2.6)", + }, + ), + ( + "time-0.3.17.json", + "serde-human-readable", + { + "cargo", + "crate(time) = 0.3.17", + "crate(time/serde) = 0.3.17", + "crate(time/formatting) = 0.3.17", + "crate(time/parsing) = 0.3.17", + }, + ), + ( + "time-0.3.17.json", + "serde-well-known", + { + "cargo", + "crate(time) = 0.3.17", + "crate(time/serde) = 0.3.17", + "crate(time/formatting) = 0.3.17", + "crate(time/parsing) = 0.3.17", + }, + ), + ( + "time-0.3.17.json", + "std", + { + "cargo", + "crate(time) = 0.3.17", + "crate(time/alloc) = 0.3.17", + }, + ), + ( + "time-0.3.17.json", + "wasm-bindgen", + { + "cargo", + "crate(time) = 0.3.17", + "(crate(js-sys/default) >= 0.3.58 with crate(js-sys/default) < 0.4.0~)", + }, + ), + ( + "tokio-1.25.0.json", + "default", + { + "cargo", + "crate(tokio) = 1.25.0", + }, + ), + ( + "tokio-1.25.0.json", + "bytes", + { + "cargo", + "crate(tokio) = 1.25.0", + "(crate(bytes/default) >= 1.0.0 with crate(bytes/default) < 2.0.0~)", + }, + ), + ( + "tokio-1.25.0.json", + "fs", + { + "cargo", + "crate(tokio) = 1.25.0", + }, + ), + ( + "tokio-1.25.0.json", + "full", + { + "cargo", + "crate(tokio) = 1.25.0", + "crate(tokio/fs) = 1.25.0", + "crate(tokio/io-util) = 1.25.0", + "crate(tokio/io-std) = 1.25.0", + "crate(tokio/macros) = 1.25.0", + "crate(tokio/net) = 1.25.0", + "crate(tokio/parking_lot) = 1.25.0", + "crate(tokio/process) = 1.25.0", + "crate(tokio/rt) = 1.25.0", + "crate(tokio/rt-multi-thread) = 1.25.0", + "crate(tokio/signal) = 1.25.0", + "crate(tokio/sync) = 1.25.0", + "crate(tokio/time) = 1.25.0", + }, + ), + ( + "tokio-1.25.0.json", + "io-std", + { + "cargo", + "crate(tokio) = 1.25.0", + }, + ), + ( + "tokio-1.25.0.json", + "io-util", + { + "cargo", + "crate(tokio) = 1.25.0", + "crate(tokio/memchr) = 1.25.0", + "crate(tokio/bytes) = 1.25.0", + }, + ), + ( + "tokio-1.25.0.json", + "libc", + { + "cargo", + "crate(tokio) = 1.25.0", + "(crate(libc/default) >= 0.2.42 with crate(libc/default) < 0.3.0~)", + }, + ), + ( + "tokio-1.25.0.json", + "macros", + { + "cargo", + "crate(tokio) = 1.25.0", + "crate(tokio/tokio-macros) = 1.25.0", + }, + ), + ( + "tokio-1.25.0.json", + "memchr", + { + "cargo", + "crate(tokio) = 1.25.0", + "(crate(memchr/default) >= 2.2.0 with crate(memchr/default) < 3.0.0~)", + }, + ), + ( + "tokio-1.25.0.json", + "mio", + { + "cargo", + "crate(tokio) = 1.25.0", + "(crate(mio/default) >= 0.8.4 with crate(mio/default) < 0.9.0~)", + }, + ), + ( + "tokio-1.25.0.json", + "net", + { + "cargo", + "crate(tokio) = 1.25.0", + "crate(tokio/libc) = 1.25.0", + "crate(tokio/socket2) = 1.25.0", + "(crate(mio/os-poll) >= 0.8.4 with crate(mio/os-poll) < 0.9.0~)", + "(crate(mio/os-ext) >= 0.8.4 with crate(mio/os-ext) < 0.9.0~)", + "(crate(mio/net) >= 0.8.4 with crate(mio/net) < 0.9.0~)", + "(crate(windows-sys/Win32_Foundation) >= 0.42.0 with crate(windows-sys/Win32_Foundation) < 0.43.0~)", + "(crate(windows-sys/Win32_Security) >= 0.42.0 with crate(windows-sys/Win32_Security) < 0.43.0~)", + "(crate(windows-sys/Win32_Storage_FileSystem) >= 0.42.0 with crate(windows-sys/Win32_Storage_FileSystem) < 0.43.0~)", + "(crate(windows-sys/Win32_System_Pipes) >= 0.42.0 with crate(windows-sys/Win32_System_Pipes) < 0.43.0~)", + "(crate(windows-sys/Win32_System_SystemServices) >= 0.42.0 with crate(windows-sys/Win32_System_SystemServices) < 0.43.0~)", + }, + ), + ( + "tokio-1.25.0.json", + "num_cpus", + { + "cargo", + "crate(tokio) = 1.25.0", + "(crate(num_cpus/default) >= 1.8.0 with crate(num_cpus/default) < 2.0.0~)", + }, + ), + ( + "tokio-1.25.0.json", + "parking_lot", + { + "cargo", + "crate(tokio) = 1.25.0", + "(crate(parking_lot/default) >= 0.12.0 with crate(parking_lot/default) < 0.13.0~)", + }, + ), + ( + "tokio-1.25.0.json", + "process", + { + "cargo", + "crate(tokio) = 1.25.0", + "crate(tokio/bytes) = 1.25.0", + "crate(tokio/libc) = 1.25.0", + "crate(tokio/signal-hook-registry) = 1.25.0", + "(crate(mio/os-poll) >= 0.8.4 with crate(mio/os-poll) < 0.9.0~)", + "(crate(mio/os-ext) >= 0.8.4 with crate(mio/os-ext) < 0.9.0~)", + "(crate(mio/net) >= 0.8.4 with crate(mio/net) < 0.9.0~)", + "(crate(windows-sys/Win32_Foundation) >= 0.42.0 with crate(windows-sys/Win32_Foundation) < 0.43.0~)", + "(crate(windows-sys/Win32_System_Threading) >= 0.42.0 with crate(windows-sys/Win32_System_Threading) < 0.43.0~)", + "(crate(windows-sys/Win32_System_WindowsProgramming) >= 0.42.0 with crate(windows-sys/Win32_System_WindowsProgramming) < 0.43.0~)", + }, + ), + ( + "tokio-1.25.0.json", + "rt", + { + "cargo", + "crate(tokio) = 1.25.0", + }, + ), + ( + "tokio-1.25.0.json", + "rt-multi-thread", + { + "cargo", + "crate(tokio) = 1.25.0", + "crate(tokio/rt) = 1.25.0", + "crate(tokio/num_cpus) = 1.25.0", + }, + ), + ( + "tokio-1.25.0.json", + "signal", + { + "cargo", + "crate(tokio) = 1.25.0", + "crate(tokio/libc) = 1.25.0", + "crate(tokio/signal-hook-registry) = 1.25.0", + "(crate(mio/os-poll) >= 0.8.4 with crate(mio/os-poll) < 0.9.0~)", + "(crate(mio/os-ext) >= 0.8.4 with crate(mio/os-ext) < 0.9.0~)", + "(crate(mio/net) >= 0.8.4 with crate(mio/net) < 0.9.0~)", + "(crate(windows-sys/Win32_Foundation) >= 0.42.0 with crate(windows-sys/Win32_Foundation) < 0.43.0~)", + "(crate(windows-sys/Win32_System_Console) >= 0.42.0 with crate(windows-sys/Win32_System_Console) < 0.43.0~)", + }, + ), + ( + "tokio-1.25.0.json", + "signal-hook-registry", + { + "cargo", + "crate(tokio) = 1.25.0", + "(crate(signal-hook-registry/default) >= 1.1.1 with crate(signal-hook-registry/default) < 2.0.0~)", + }, + ), + ( + "tokio-1.25.0.json", + "socket2", + { + "cargo", + "crate(tokio) = 1.25.0", + "(crate(socket2/default) >= 0.4.4 with crate(socket2/default) < 0.5.0~)", + "(crate(socket2/all) >= 0.4.4 with crate(socket2/all) < 0.5.0~)", + }, + ), + ( + "tokio-1.25.0.json", + "stats", + { + "cargo", + "crate(tokio) = 1.25.0", + }, + ), + ( + "tokio-1.25.0.json", + "sync", + { + "cargo", + "crate(tokio) = 1.25.0", + }, + ), + ( + "tokio-1.25.0.json", + "test-util", + { + "cargo", + "crate(tokio) = 1.25.0", + "crate(tokio/rt) = 1.25.0", + "crate(tokio/sync) = 1.25.0", + "crate(tokio/time) = 1.25.0", + }, + ), + ( + "tokio-1.25.0.json", + "time", + { + "cargo", + "crate(tokio) = 1.25.0", + }, + ), + ( + "tokio-1.25.0.json", + "tokio-macros", + { + "cargo", + "crate(tokio) = 1.25.0", + "(crate(tokio-macros/default) >= 1.7.0 with crate(tokio-macros/default) < 2.0.0~)", + }, + ), + ( + "tokio-1.25.0.json", + "tracing", + { + "cargo", + "crate(tokio) = 1.25.0", + "(crate(tracing) >= 0.1.25 with crate(tracing) < 0.2.0~)", + "(crate(tracing/std) >= 0.1.25 with crate(tracing/std) < 0.2.0~)", + }, + ), + ( + "tokio-1.25.0.json", + "windows-sys", + { + "cargo", + "crate(tokio) = 1.25.0", + "(crate(windows-sys/default) >= 0.42.0 with crate(windows-sys/default) < 0.43.0~)", + }, + ), + ( + "unicode-xid-0.2.4.json", + "default", + { + "cargo", + "crate(unicode-xid) = 0.2.4", + }, + ), + ( + "unicode-xid-0.2.4.json", + "bench", + { + "cargo", + "crate(unicode-xid) = 0.2.4", + }, + ), + ( + "unicode-xid-0.2.4.json", + "no_std", + { + "cargo", + "crate(unicode-xid) = 0.2.4", + }, + ), + ( + "zbus-3.8.0.json", + "default", + { + "cargo", + "crate(zbus) = 3.8.0", + "crate(zbus/async-io) = 3.8.0", + }, + ), + ( + "zbus-3.8.0.json", + "async-executor", + { + "cargo", + "crate(zbus) = 3.8.0", + "(crate(async-executor/default) >= 1.5.0 with crate(async-executor/default) < 2.0.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "async-io", + { + "cargo", + "crate(zbus) = 3.8.0", + "crate(zbus/async-executor) = 3.8.0", + "crate(zbus/async-task) = 3.8.0", + "crate(zbus/async-lock) = 3.8.0", + "(crate(async-io/default) >= 1.12.0 with crate(async-io/default) < 2.0.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "async-lock", + { + "cargo", + "crate(zbus) = 3.8.0", + "(crate(async-lock/default) >= 2.6.0 with crate(async-lock/default) < 3.0.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "async-task", + { + "cargo", + "crate(zbus) = 3.8.0", + "(crate(async-task/default) >= 4.3.0 with crate(async-task/default) < 5.0.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "chrono", + { + "cargo", + "crate(zbus) = 3.8.0", + "(crate(zvariant/chrono) >= 3.10.0 with crate(zvariant/chrono) < 4.0.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "gvariant", + { + "cargo", + "crate(zbus) = 3.8.0", + "(crate(zvariant/gvariant) >= 3.10.0 with crate(zvariant/gvariant) < 4.0.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "lazy_static", + { + "cargo", + "crate(zbus) = 3.8.0", + "(crate(lazy_static/default) >= 1.4.0 with crate(lazy_static/default) < 2.0.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "quick-xml", + { + "cargo", + "crate(zbus) = 3.8.0", + "(crate(quick-xml/default) >= 0.27.1 with crate(quick-xml/default) < 0.28.0~)", + "(crate(quick-xml/serialize) >= 0.27.1 with crate(quick-xml/serialize) < 0.28.0~)", + "(crate(quick-xml/overlapped-lists) >= 0.27.1 with crate(quick-xml/overlapped-lists) < 0.28.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "serde-xml-rs", + { + "cargo", + "crate(zbus) = 3.8.0", + "(crate(serde-xml-rs/default) >= 0.4.1 with crate(serde-xml-rs/default) < 0.5.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "time", + { + "cargo", + "crate(zbus) = 3.8.0", + "(crate(zvariant/time) >= 3.10.0 with crate(zvariant/time) < 4.0.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "tokio", + { + "cargo", + "crate(zbus) = 3.8.0", + "crate(zbus/lazy_static) = 3.8.0", + "(crate(tokio/default) >= 1.21.2 with crate(tokio/default) < 2.0.0~)", + "(crate(tokio/rt) >= 1.21.2 with crate(tokio/rt) < 2.0.0~)", + "(crate(tokio/net) >= 1.21.2 with crate(tokio/net) < 2.0.0~)", + "(crate(tokio/time) >= 1.21.2 with crate(tokio/time) < 2.0.0~)", + "(crate(tokio/fs) >= 1.21.2 with crate(tokio/fs) < 2.0.0~)", + "(crate(tokio/io-util) >= 1.21.2 with crate(tokio/io-util) < 2.0.0~)", + "(crate(tokio/sync) >= 1.21.2 with crate(tokio/sync) < 2.0.0~)", + "(crate(tokio/tracing) >= 1.21.2 with crate(tokio/tracing) < 2.0.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "tokio-vsock", + { + "cargo", + "crate(zbus) = 3.8.0", + "crate(zbus/tokio) = 3.8.0", + "(crate(tokio-vsock/default) >= 0.3.3 with crate(tokio-vsock/default) < 0.4.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "url", + { + "cargo", + "crate(zbus) = 3.8.0", + "(crate(zvariant/url) >= 3.10.0 with crate(zvariant/url) < 4.0.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "uuid", + { + "cargo", + "crate(zbus) = 3.8.0", + "(crate(zvariant/uuid) >= 3.10.0 with crate(zvariant/uuid) < 4.0.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "vsock", + { + "cargo", + "crate(zbus) = 3.8.0", + "(crate(async-io/default) >= 1.12.0 with crate(async-io/default) < 2.0.0~)", + "(crate(vsock/default) >= 0.3.0 with crate(vsock/default) < 0.4.0~)", + }, + ), + ( + "zbus-3.8.0.json", + "windows-gdbus", + { + "cargo", + "crate(zbus) = 3.8.0", + }, + ), + ( + "zbus-3.8.0.json", + "xml", + { + "cargo", + "crate(zbus) = 3.8.0", + "crate(zbus/serde-xml-rs) = 3.8.0", + }, + ), + ], + ids=short_repr, +) +def test_requires_feature(filename: str, feature: str, expected: set[str]): + metadata = load_metadata_from_resource(filename) + assert _requires_feature(metadata.packages[0], feature) == expected diff --git a/cargo2rpm/tests/rpm/test_subpackages.py b/cargo2rpm/tests/rpm/test_subpackages.py new file mode 100644 index 0000000..a652896 --- /dev/null +++ b/cargo2rpm/tests/rpm/test_subpackages.py @@ -0,0 +1,305 @@ +from cargo2rpm.rpm import devel_subpackage_names +from cargo2rpm.utils import load_metadata_from_resource, short_repr + +import pytest + + +@pytest.mark.parametrize( + "filename,expected", + [ + ( + "ahash-0.8.3.json", + {"default", "atomic-polyfill", "compile-time-rng", "const-random", "getrandom", "no-rng", "runtime-rng", "serde", "std"}, + ), + ( + "assert_cmd-2.0.8.json", + {"default", "color", "color-auto"}, + ), + ( + "assert_fs-1.0.10.json", + {"default", "color", "color-auto"}, + ), + ( + "autocfg-1.1.0.json", + {"default"}, + ), + ( + "bstr-1.2.0.json", + {"default", "alloc", "serde", "std", "unicode"}, + ), + ( + "cfg-if-1.0.0.json", + {"default", "compiler_builtins", "core", "rustc-dep-of-std"}, + ), + ( + "clap-4.1.4.json", + { + "default", + "cargo", + "color", + "debug", + "deprecated", + "derive", + "env", + "error-context", + "help", + "std", + "string", + "suggestions", + "unicode", + "unstable-doc", + "unstable-grouped", + "unstable-replace", + "unstable-v5", + "usage", + "wrap_help", + }, + ), + ( + "gstreamer-0.19.7.json", + {"default", "dox", "serde", "serde_bytes", "v1_16", "v1_18", "v1_20", "v1_22"}, + ), + ( + "human-panic-1.1.0.json", + {"default", "color", "nightly"}, + ), + ( + "hyperfine-1.15.0.json", + set(), + ), + ( + "libc-0.2.139.json", + {"default", "align", "const-extern-fn", "extra_traits", "rustc-dep-of-std", "rustc-std-workspace-core", "std", "use_std"}, + ), + ( + "predicates-2.1.5.json", + {"default", "color", "color-auto", "diff", "float-cmp", "normalize-line-endings", "regex", "unstable"}, + ), + ( + "proc-macro2-1.0.50.json", + {"default", "nightly", "proc-macro", "span-locations"}, + ), + ( + "quote-1.0.23.json", + {"default", "proc-macro"}, + ), + ( + "rand-0.8.5.json", + { + "default", + "alloc", + "getrandom", + "libc", + "log", + "min_const_gen", + "nightly", + "packed_simd", + "rand_chacha", + "serde", + "serde1", + "simd_support", + "small_rng", + "std", + "std_rng", + }, + ), + ( + "rand_core-0.6.4.json", + {"default", "alloc", "getrandom", "serde", "serde1", "std"}, + ), + ( + "rpm-sequoia-1.2.0.json", + set(), + ), + ( + "rust_decimal-1.28.0.json", + { + "default", + "arbitrary", + "borsh", + "bytecheck", + "byteorder", + "bytes", + "c-repr", + "db-diesel-mysql", + "db-diesel-postgres", + "db-diesel1-mysql", + "db-diesel1-postgres", + "db-diesel2-mysql", + "db-diesel2-postgres", + "db-postgres", + "db-tokio-postgres", + "diesel1", + "diesel2", + "legacy-ops", + "maths", + "maths-nopanic", + "postgres", + "rand", + "rkyv", + "rkyv-safe", + "rocket", + "rocket-traits", + "rust-fuzz", + "serde", + "serde-arbitrary-precision", + "serde-bincode", + "serde-float", + "serde-str", + "serde-with-arbitrary-precision", + "serde-with-float", + "serde-with-str", + "serde_json", + "std", + "tokio-pg", + "tokio-postgres", + }, + ), + ( + "rustix-0.36.8.json", + { + "default", + "all-apis", + "all-impls", + "alloc", + "cc", + "compiler_builtins", + "core", + "fs", + "fs-err", + "io-lifetimes", + "io_uring", + "itoa", + "libc", + "libc_errno", + "mm", + "net", + "once_cell", + "os_pipe", + "param", + "process", + "procfs", + "rand", + "runtime", + "rustc-dep-of-std", + "std", + "termios", + "thread", + "time", + "use-libc", + "use-libc-auxv", + }, + ), + ( + "serde-1.0.152.json", + {"default", "alloc", "derive", "rc", "serde_derive", "std", "unstable"}, + ), + ( + "serde_derive-1.0.152.json", + {"default", "deserialize_in_place"}, + ), + ( + "syn-1.0.107.json", + { + "default", + "clone-impls", + "derive", + "extra-traits", + "fold", + "full", + "parsing", + "printing", + "proc-macro", + "quote", + "test", + "visit", + "visit-mut", + }, + ), + ( + "time-0.3.17.json", + { + "default", + "alloc", + "formatting", + "large-dates", + "local-offset", + "macros", + "parsing", + "quickcheck", + "rand", + "serde", + "serde-human-readable", + "serde-well-known", + "std", + "wasm-bindgen", + }, + ), + ( + "tokio-1.25.0.json", + { + "default", + "bytes", + "fs", + "full", + "io-std", + "io-util", + "libc", + "macros", + "memchr", + "mio", + "net", + "num_cpus", + "parking_lot", + "process", + "rt", + "rt-multi-thread", + "signal", + "signal-hook-registry", + "socket2", + "stats", + "sync", + "test-util", + "time", + "tokio-macros", + "tracing", + "windows-sys", + }, + ), + ( + "unicode-xid-0.2.4.json", + {"default", "bench", "no_std"}, + ), + ( + "zbus-3.8.0.json", + { + "default", + "async-executor", + "async-io", + "async-lock", + "async-task", + "chrono", + "gvariant", + "lazy_static", + "quick-xml", + "serde-xml-rs", + "time", + "tokio", + "tokio-vsock", + "url", + "uuid", + "vsock", + "windows-gdbus", + "xml", + }, + ), + ( + "zoxide-0.9.0.json", + set(), + ), + ], + ids=short_repr, +) +def test_devel_subpackage_names(filename: str, expected: set[str]): + metadata = load_metadata_from_resource(filename) + assert devel_subpackage_names(metadata.packages[0]) == expected diff --git a/cargo2rpm/tests/test_rpm.py b/cargo2rpm/tests/test_rpm.py deleted file mode 100644 index 599ed24..0000000 --- a/cargo2rpm/tests/test_rpm.py +++ /dev/null @@ -1,4400 +0,0 @@ -from cargo2rpm import CARGO_BUGGY_RESOLVER -from cargo2rpm.metadata import FeatureFlags -from cargo2rpm.rpm import ( - buildrequires, - workspace_buildrequires, - devel_subpackage_names, - _requires_crate, - _requires_feature, - _provides_crate, - _provides_feature, -) -from cargo2rpm.utils import load_metadata_from_resource, short_repr - -import pytest - - -@pytest.mark.parametrize( - "filename,flags,with_dev_deps,expected", - [ - # default features with dev-dependencies - ( - "ahash-0.8.3.json", - FeatureFlags(), - True, - { - "(crate(cfg-if/default) >= 1.0.0 with crate(cfg-if/default) < 2.0.0~)", - "(crate(getrandom/default) >= 0.2.7 with crate(getrandom/default) < 0.3.0~)", - "(crate(criterion/default) >= 0.3.2 with crate(criterion/default) < 0.4.0~)", - "(crate(criterion/html_reports) >= 0.3.2 with crate(criterion/html_reports) < 0.4.0~)", - "(crate(fnv/default) >= 1.0.5 with crate(fnv/default) < 2.0.0~)", - "(crate(fxhash/default) >= 0.2.1 with crate(fxhash/default) < 0.3.0~)", - "(crate(hashbrown/default) >= 0.12.3 with crate(hashbrown/default) < 0.13.0~)", - "(crate(hex/default) >= 0.4.2 with crate(hex/default) < 0.5.0~)", - "(crate(no-panic/default) >= 0.1.10 with crate(no-panic/default) < 0.2.0~)", - "(crate(rand/default) >= 0.8.5 with crate(rand/default) < 0.9.0~)", - "(crate(seahash/default) >= 4.0.0 with crate(seahash/default) < 5.0.0~)", - "(crate(serde_json/default) >= 1.0.59 with crate(serde_json/default) < 2.0.0~)", - "(crate(version_check/default) >= 0.9.4 with crate(version_check/default) < 0.10.0~)", - "(crate(once_cell) >= 1.13.1 with crate(once_cell) < 2.0.0~)", - "(crate(once_cell/unstable) >= 1.13.1 with crate(once_cell/unstable) < 2.0.0~)", - "(crate(once_cell/alloc) >= 1.13.1 with crate(once_cell/alloc) < 2.0.0~)", - }, - ), - # default features without dev-dependencies - ( - "ahash-0.8.3.json", - FeatureFlags(), - False, - { - "(crate(cfg-if/default) >= 1.0.0 with crate(cfg-if/default) < 2.0.0~)", - "(crate(getrandom/default) >= 0.2.7 with crate(getrandom/default) < 0.3.0~)", - "(crate(version_check/default) >= 0.9.4 with crate(version_check/default) < 0.10.0~)", - "(crate(once_cell) >= 1.13.1 with crate(once_cell) < 2.0.0~)", - "(crate(once_cell/unstable) >= 1.13.1 with crate(once_cell/unstable) < 2.0.0~)", - "(crate(once_cell/alloc) >= 1.13.1 with crate(once_cell/alloc) < 2.0.0~)", - }, - ), - # default features with dev-dependencies - ( - "aho-corasick-1.0.2.json", - FeatureFlags(), - True, - { - "(crate(doc-comment/default) >= 0.3.3 with crate(doc-comment/default) < 0.4.0~)", - "(crate(memchr) >= 2.4.0 with crate(memchr) < 3.0.0~)", - }.union({"(crate(memchr/std) >= 2.4.0 with crate(memchr/std) < 3.0.0~)"} if CARGO_BUGGY_RESOLVER else set()), - ), - # default features without dev-dependencies - ( - "aho-corasick-1.0.2.json", - FeatureFlags(), - False, - { - "(crate(memchr) >= 2.4.0 with crate(memchr) < 3.0.0~)", - }.union({"(crate(memchr/std) >= 2.4.0 with crate(memchr/std) < 3.0.0~)"} if CARGO_BUGGY_RESOLVER else set()), - ), - # default features with dev-dependencies - ( - "assert_cmd-2.0.8.json", - FeatureFlags(), - True, - { - "(crate(bstr/default) >= 1.0.1 with crate(bstr/default) < 2.0.0~)", - "(crate(doc-comment/default) >= 0.3.0 with crate(doc-comment/default) < 0.4.0~)", - "(crate(predicates) >= 2.1.0 with crate(predicates) < 3.0.0~)", - "(crate(predicates/diff) >= 2.1.0 with crate(predicates/diff) < 3.0.0~)", - "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", - "(crate(predicates-tree/default) >= 1.0.0 with crate(predicates-tree/default) < 2.0.0~)", - "(crate(wait-timeout/default) >= 0.2.0 with crate(wait-timeout/default) < 0.3.0~)", - "(crate(escargot/default) >= 0.5.0 with crate(escargot/default) < 0.6.0~)", - }, - ), - # default features without dev-dependencies - ( - "assert_cmd-2.0.8.json", - FeatureFlags(), - False, - { - "(crate(bstr/default) >= 1.0.1 with crate(bstr/default) < 2.0.0~)", - "(crate(doc-comment/default) >= 0.3.0 with crate(doc-comment/default) < 0.4.0~)", - "(crate(predicates) >= 2.1.0 with crate(predicates) < 3.0.0~)", - "(crate(predicates/diff) >= 2.1.0 with crate(predicates/diff) < 3.0.0~)", - "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", - "(crate(predicates-tree/default) >= 1.0.0 with crate(predicates-tree/default) < 2.0.0~)", - "(crate(wait-timeout/default) >= 0.2.0 with crate(wait-timeout/default) < 0.3.0~)", - }, - ), - # default features with dev-dependencies - ( - "assert_fs-1.0.10.json", - FeatureFlags(), - True, - { - "(crate(doc-comment/default) >= 0.3.0 with crate(doc-comment/default) < 0.4.0~)", - "(crate(globwalk/default) >= 0.8.0 with crate(globwalk/default) < 0.9.0~)", - "(crate(predicates) >= 2.0.3 with crate(predicates) < 3.0.0~)", - "(crate(predicates/diff) >= 2.0.3 with crate(predicates/diff) < 3.0.0~)", - "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", - "(crate(predicates-tree/default) >= 1.0.0 with crate(predicates-tree/default) < 2.0.0~)", - "(crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0~)", - }, - ), - # default features without dev-dependencies - ( - "assert_fs-1.0.10.json", - FeatureFlags(), - False, - { - "(crate(doc-comment/default) >= 0.3.0 with crate(doc-comment/default) < 0.4.0~)", - "(crate(globwalk/default) >= 0.8.0 with crate(globwalk/default) < 0.9.0~)", - "(crate(predicates) >= 2.0.3 with crate(predicates) < 3.0.0~)", - "(crate(predicates/diff) >= 2.0.3 with crate(predicates/diff) < 3.0.0~)", - "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", - "(crate(predicates-tree/default) >= 1.0.0 with crate(predicates-tree/default) < 2.0.0~)", - "(crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0~)", - }, - ), - # default features with dev-dependencies - ( - "autocfg-1.1.0.json", - FeatureFlags(), - True, - set(), - ), - # default features without dev-dependencies - ( - "autocfg-1.1.0.json", - FeatureFlags(), - False, - set(), - ), - # default features with dev-dependencies - ( - "bstr-1.2.0.json", - FeatureFlags(), - True, - { - "(crate(memchr) >= 2.4.0 with crate(memchr) < 3.0.0~)", - "(crate(memchr/std) >= 2.4.0 with crate(memchr/std) < 3.0.0~)", - "(crate(once_cell/default) >= 1.14.0 with crate(once_cell/default) < 2.0.0~)", - "(crate(regex-automata) >= 0.1.5 with crate(regex-automata) < 0.2.0~)", - "(crate(quickcheck) >= 1.0.0 with crate(quickcheck) < 2.0.0~)", - "(crate(ucd-parse/default) >= 0.1.3 with crate(ucd-parse/default) < 0.2.0~)", - "(crate(unicode-segmentation/default) >= 1.2.1 with crate(unicode-segmentation/default) < 2.0.0~)", - }.union( - { - "(crate(serde) >= 1.0.85 with crate(serde) < 2.0.0~)", - "(crate(serde/alloc) >= 1.0.85 with crate(serde/alloc) < 2.0.0~)", - "(crate(serde/std) >= 1.0.85 with crate(serde/std) < 2.0.0~)", - } - if CARGO_BUGGY_RESOLVER - else set() - ), - ), - # default features without dev-dependencies - ( - "bstr-1.2.0.json", - FeatureFlags(), - False, - { - "(crate(memchr) >= 2.4.0 with crate(memchr) < 3.0.0~)", - "(crate(memchr/std) >= 2.4.0 with crate(memchr/std) < 3.0.0~)", - "(crate(once_cell/default) >= 1.14.0 with crate(once_cell/default) < 2.0.0~)", - "(crate(regex-automata) >= 0.1.5 with crate(regex-automata) < 0.2.0~)", - }.union( - { - "(crate(serde) >= 1.0.85 with crate(serde) < 2.0.0~)", - "(crate(serde/alloc) >= 1.0.85 with crate(serde/alloc) < 2.0.0~)", - "(crate(serde/std) >= 1.0.85 with crate(serde/std) < 2.0.0~)", - } - if CARGO_BUGGY_RESOLVER - else set() - ), - ), - # default features with dev-dependencies - ( - "cfg-if-1.0.0.json", - FeatureFlags(), - True, - set(), - ), - # default features without dev-dependencies - ( - "cfg-if-1.0.0.json", - FeatureFlags(), - False, - set(), - ), - # default features with dev-dependencies - ( - "clap-4.1.4.json", - FeatureFlags(), - True, - { - "(crate(bitflags/default) >= 1.2.0 with crate(bitflags/default) < 2.0.0~)", - "(crate(clap_lex/default) >= 0.3.0 with crate(clap_lex/default) < 0.4.0~)", - "(crate(is-terminal/default) >= 0.4.1 with crate(is-terminal/default) < 0.5.0~)", - "(crate(strsim/default) >= 0.10.0 with crate(strsim/default) < 0.11.0~)", - "(crate(termcolor/default) >= 1.1.1 with crate(termcolor/default) < 2.0.0~)", - "(crate(humantime/default) >= 2.0.0 with crate(humantime/default) < 3.0.0~)", - "(crate(rustversion/default) >= 1.0.0 with crate(rustversion/default) < 2.0.0~)", - "(crate(shlex/default) >= 1.1.0 with crate(shlex/default) < 2.0.0~)", - "(crate(snapbox/default) >= 0.4.0 with crate(snapbox/default) < 0.5.0~)", - "(crate(static_assertions/default) >= 1.1.0 with crate(static_assertions/default) < 2.0.0~)", - "(crate(trybuild/default) >= 1.0.73 with crate(trybuild/default) < 2.0.0~)", - "(crate(trycmd) >= 0.14.9 with crate(trycmd) < 0.15.0~)", - "(crate(trycmd/color-auto) >= 0.14.9 with crate(trycmd/color-auto) < 0.15.0~)", - "(crate(trycmd/diff) >= 0.14.9 with crate(trycmd/diff) < 0.15.0~)", - "(crate(trycmd/examples) >= 0.14.9 with crate(trycmd/examples) < 0.15.0~)", - "(crate(unic-emoji-char/default) >= 0.9.0 with crate(unic-emoji-char/default) < 0.10.0~)", - }, - ), - # default features without dev-dependencies - ( - "clap-4.1.4.json", - FeatureFlags(), - False, - { - "(crate(bitflags/default) >= 1.2.0 with crate(bitflags/default) < 2.0.0~)", - "(crate(clap_lex/default) >= 0.3.0 with crate(clap_lex/default) < 0.4.0~)", - "(crate(is-terminal/default) >= 0.4.1 with crate(is-terminal/default) < 0.5.0~)", - "(crate(strsim/default) >= 0.10.0 with crate(strsim/default) < 0.11.0~)", - "(crate(termcolor/default) >= 1.1.1 with crate(termcolor/default) < 2.0.0~)", - }, - ), - # default features with dev-dependencies - ( - "gstreamer-0.19.7.json", - FeatureFlags(), - True, - { - "(crate(bitflags/default) >= 1.0.0 with crate(bitflags/default) < 2.0.0~)", - "(crate(cfg-if/default) >= 1.0.0 with crate(cfg-if/default) < 2.0.0~)", - "(crate(gstreamer-sys/default) >= 0.19.0 with crate(gstreamer-sys/default) < 0.20.0~)", - "(crate(futures-channel/default) >= 0.3.0 with crate(futures-channel/default) < 0.4.0~)", - "(crate(futures-core/default) >= 0.3.0 with crate(futures-core/default) < 0.4.0~)", - "(crate(futures-util) >= 0.3.0 with crate(futures-util) < 0.4.0~)", - "(crate(glib/default) >= 0.16.2 with crate(glib/default) < 0.17.0~)", - "(crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0~)", - "(crate(muldiv/default) >= 1.0.0 with crate(muldiv/default) < 2.0.0~)", - "(crate(num-integer) >= 0.1.0 with crate(num-integer) < 0.2.0~)", - "(crate(num-rational) >= 0.4.0 with crate(num-rational) < 0.5.0~)", - "(crate(once_cell/default) >= 1.0.0 with crate(once_cell/default) < 2.0.0~)", - "(crate(option-operations/default) >= 0.5.0 with crate(option-operations/default) < 0.6.0~)", - "(crate(paste/default) >= 1.0.0 with crate(paste/default) < 2.0.0~)", - "(crate(pretty-hex/default) >= 0.3.0 with crate(pretty-hex/default) < 0.4.0~)", - "(crate(thiserror/default) >= 1.0.0 with crate(thiserror/default) < 2.0.0~)", - "(crate(futures-executor/default) >= 0.3.1 with crate(futures-executor/default) < 0.4.0~)", - "(crate(gir-format-check/default) >= 0.1.0 with crate(gir-format-check/default) < 0.2.0~)", - "(crate(ron/default) >= 0.8.0 with crate(ron/default) < 0.9.0~)", - "(crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0~)", - }, - ), - # default features without dev-dependencies - ( - "gstreamer-0.19.7.json", - FeatureFlags(), - False, - { - "(crate(bitflags/default) >= 1.0.0 with crate(bitflags/default) < 2.0.0~)", - "(crate(cfg-if/default) >= 1.0.0 with crate(cfg-if/default) < 2.0.0~)", - "(crate(gstreamer-sys/default) >= 0.19.0 with crate(gstreamer-sys/default) < 0.20.0~)", - "(crate(futures-channel/default) >= 0.3.0 with crate(futures-channel/default) < 0.4.0~)", - "(crate(futures-core/default) >= 0.3.0 with crate(futures-core/default) < 0.4.0~)", - "(crate(futures-util) >= 0.3.0 with crate(futures-util) < 0.4.0~)", - "(crate(glib/default) >= 0.16.2 with crate(glib/default) < 0.17.0~)", - "(crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0~)", - "(crate(muldiv/default) >= 1.0.0 with crate(muldiv/default) < 2.0.0~)", - "(crate(num-integer) >= 0.1.0 with crate(num-integer) < 0.2.0~)", - "(crate(num-rational) >= 0.4.0 with crate(num-rational) < 0.5.0~)", - "(crate(once_cell/default) >= 1.0.0 with crate(once_cell/default) < 2.0.0~)", - "(crate(option-operations/default) >= 0.5.0 with crate(option-operations/default) < 0.6.0~)", - "(crate(paste/default) >= 1.0.0 with crate(paste/default) < 2.0.0~)", - "(crate(pretty-hex/default) >= 0.3.0 with crate(pretty-hex/default) < 0.4.0~)", - "(crate(thiserror/default) >= 1.0.0 with crate(thiserror/default) < 2.0.0~)", - }, - ), - # default features with dev-dependencies - ( - "human-panic-1.1.0.json", - FeatureFlags(), - True, - { - "(crate(backtrace/default) >= 0.3.9 with crate(backtrace/default) < 0.4.0~)", - "crate(concolor/default) = 0.0.11", - "crate(concolor/auto) = 0.0.11", - "(crate(os_info/default) >= 2.0.6 with crate(os_info/default) < 3.0.0~)", - "(crate(serde/default) >= 1.0.79 with crate(serde/default) < 2.0.0~)", - "(crate(serde_derive/default) >= 1.0.79 with crate(serde_derive/default) < 2.0.0~)", - "(crate(termcolor/default) >= 1.0.4 with crate(termcolor/default) < 2.0.0~)", - "(crate(toml/default) >= 0.5.0 with crate(toml/default) < 0.6.0~)", - "(crate(uuid) >= 0.8.0 with crate(uuid) < 0.9.0~)", - "(crate(uuid/v4) >= 0.8.0 with crate(uuid/v4) < 0.9.0~)", - }, - ), - # default features without dev-dependencies - ( - "human-panic-1.1.0.json", - FeatureFlags(), - False, - { - "(crate(backtrace/default) >= 0.3.9 with crate(backtrace/default) < 0.4.0~)", - "crate(concolor/default) = 0.0.11", - "crate(concolor/auto) = 0.0.11", - "(crate(os_info/default) >= 2.0.6 with crate(os_info/default) < 3.0.0~)", - "(crate(serde/default) >= 1.0.79 with crate(serde/default) < 2.0.0~)", - "(crate(serde_derive/default) >= 1.0.79 with crate(serde_derive/default) < 2.0.0~)", - "(crate(termcolor/default) >= 1.0.4 with crate(termcolor/default) < 2.0.0~)", - "(crate(toml/default) >= 0.5.0 with crate(toml/default) < 0.6.0~)", - "(crate(uuid) >= 0.8.0 with crate(uuid) < 0.9.0~)", - "(crate(uuid/v4) >= 0.8.0 with crate(uuid/v4) < 0.9.0~)", - }, - ), - # default features with dev-dependencies - ( - "iri-string-0.7.0.json", - FeatureFlags(), - True, - {"(crate(serde_test/default) >= 1.0.104 with crate(serde_test/default) < 2.0.0~)"}.union( - { - "(crate(memchr) >= 2.4.1 with crate(memchr) < 3.0.0~)", - "(crate(memchr/std) >= 2.4.1 with crate(memchr/std) < 3.0.0~)", - "(crate(serde) >= 1.0.103 with crate(serde) < 2.0.0~)", - "(crate(serde/alloc) >= 1.0.103 with crate(serde/alloc) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.103 with crate(serde/derive) < 2.0.0~)", - "(crate(serde/std) >= 1.0.103 with crate(serde/std) < 2.0.0~)", - } - if CARGO_BUGGY_RESOLVER - else set() - ), - ), - # default features without dev-dependencies - ( - "iri-string-0.7.0.json", - FeatureFlags(), - False, - { - "(crate(memchr) >= 2.4.1 with crate(memchr) < 3.0.0~)", - "(crate(memchr/std) >= 2.4.1 with crate(memchr/std) < 3.0.0~)", - "(crate(serde) >= 1.0.103 with crate(serde) < 2.0.0~)", - "(crate(serde/alloc) >= 1.0.103 with crate(serde/alloc) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.103 with crate(serde/derive) < 2.0.0~)", - "(crate(serde/std) >= 1.0.103 with crate(serde/std) < 2.0.0~)", - } - if CARGO_BUGGY_RESOLVER - else set(), - ), - # default features with dev-dependencies - ("libc-0.2.139.json", FeatureFlags(), True, set()), - # default features without dev-dependencies - ("libc-0.2.139.json", FeatureFlags(), False, set()), - # default features with dev-dependencies - ( - "predicates-2.1.5.json", - FeatureFlags(), - True, - { - "(crate(difflib/default) >= 0.4.0 with crate(difflib/default) < 0.5.0~)", - "(crate(float-cmp/default) >= 0.9.0 with crate(float-cmp/default) < 0.10.0~)", - "(crate(itertools/default) >= 0.10.0 with crate(itertools/default) < 0.11.0~)", - "(crate(normalize-line-endings/default) >= 0.3.0 with crate(normalize-line-endings/default) < 0.4.0~)", - "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", - "(crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0~)", - "(crate(predicates-tree/default) >= 1.0.0 with crate(predicates-tree/default) < 2.0.0~)", - }, - ), - # default features without dev-dependencies - ( - "predicates-2.1.5.json", - FeatureFlags(), - False, - { - "(crate(difflib/default) >= 0.4.0 with crate(difflib/default) < 0.5.0~)", - "(crate(float-cmp/default) >= 0.9.0 with crate(float-cmp/default) < 0.10.0~)", - "(crate(itertools/default) >= 0.10.0 with crate(itertools/default) < 0.11.0~)", - "(crate(normalize-line-endings/default) >= 0.3.0 with crate(normalize-line-endings/default) < 0.4.0~)", - "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", - "(crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0~)", - }, - ), - # default features with dev-dependencies - ( - "proc-macro2-1.0.50.json", - FeatureFlags(), - True, - { - "(crate(unicode-ident/default) >= 1.0.0 with crate(unicode-ident/default) < 2.0.0~)", - "(crate(quote) >= 1.0.0 with crate(quote) < 2.0.0~)", - }, - ), - # default features without dev-dependencies - ( - "proc-macro2-1.0.50.json", - FeatureFlags(), - False, - {"(crate(unicode-ident/default) >= 1.0.0 with crate(unicode-ident/default) < 2.0.0~)"}, - ), - # default features with dev-dependencies - ( - "quote-1.0.23.json", - FeatureFlags(), - True, - { - "(crate(proc-macro2) >= 1.0.40 with crate(proc-macro2) < 2.0.0~)", - "(crate(proc-macro2/proc-macro) >= 1.0.40 with crate(proc-macro2/proc-macro) < 2.0.0~)", - "(crate(rustversion/default) >= 1.0.0 with crate(rustversion/default) < 2.0.0~)", - "(crate(trybuild/default) >= 1.0.66 with crate(trybuild/default) < 2.0.0~)", - "(crate(trybuild/diff) >= 1.0.66 with crate(trybuild/diff) < 2.0.0~)", - }, - ), - # default features without dev-dependencies - ( - "quote-1.0.23.json", - FeatureFlags(), - False, - { - "(crate(proc-macro2) >= 1.0.40 with crate(proc-macro2) < 2.0.0~)", - "(crate(proc-macro2/proc-macro) >= 1.0.40 with crate(proc-macro2/proc-macro) < 2.0.0~)", - }, - ), - # default features with dev-dependencies - ( - "rand-0.8.5.json", - FeatureFlags(), - True, - { - "(crate(rand_chacha) >= 0.3.0 with crate(rand_chacha) < 0.4.0~)", - "(crate(rand_chacha/std) >= 0.3.0 with crate(rand_chacha/std) < 0.4.0~)", - "(crate(rand_core/default) >= 0.6.0 with crate(rand_core/default) < 0.7.0~)", - "(crate(rand_core/alloc) >= 0.6.0 with crate(rand_core/alloc) < 0.7.0~)", - "(crate(rand_core/getrandom) >= 0.6.0 with crate(rand_core/getrandom) < 0.7.0~)", - "(crate(rand_core/std) >= 0.6.0 with crate(rand_core/std) < 0.7.0~)", - "(crate(bincode/default) >= 1.2.1 with crate(bincode/default) < 2.0.0~)", - "(crate(rand_pcg/default) >= 0.3.0 with crate(rand_pcg/default) < 0.4.0~)", - "(crate(libc) >= 0.2.22 with crate(libc) < 0.3.0~)", - }, - ), - # default features without dev-dependencies - ( - "rand-0.8.5.json", - FeatureFlags(), - False, - { - "(crate(rand_chacha) >= 0.3.0 with crate(rand_chacha) < 0.4.0~)", - "(crate(rand_chacha/std) >= 0.3.0 with crate(rand_chacha/std) < 0.4.0~)", - "(crate(rand_core/default) >= 0.6.0 with crate(rand_core/default) < 0.7.0~)", - "(crate(rand_core/alloc) >= 0.6.0 with crate(rand_core/alloc) < 0.7.0~)", - "(crate(rand_core/getrandom) >= 0.6.0 with crate(rand_core/getrandom) < 0.7.0~)", - "(crate(rand_core/std) >= 0.6.0 with crate(rand_core/std) < 0.7.0~)", - "(crate(libc) >= 0.2.22 with crate(libc) < 0.3.0~)", - }, - ), - # default features with dev-dependencies - ("rand_core-0.6.4.json", FeatureFlags(), True, set()), - # default features without dev-dependencies - ("rand_core-0.6.4.json", FeatureFlags(), False, set()), - # default features with dev-dependencies - ( - "regex-1.8.4.json", - FeatureFlags(), - True, - { - "(crate(aho-corasick/default) >= 1.0.0 with crate(aho-corasick/default) < 2.0.0~)", - "(crate(memchr/default) >= 2.5.0 with crate(memchr/default) < 3.0.0~)", - "(crate(regex-syntax/default) >= 0.7.2 with crate(regex-syntax/default) < 0.8.0~)", - "(crate(regex-syntax/unicode) >= 0.7.2 with crate(regex-syntax/unicode) < 0.8.0~)", - "(crate(regex-syntax/unicode-age) >= 0.7.2 with crate(regex-syntax/unicode-age) < 0.8.0~)", - "(crate(regex-syntax/unicode-bool) >= 0.7.2 with crate(regex-syntax/unicode-bool) < 0.8.0~)", - "(crate(regex-syntax/unicode-case) >= 0.7.2 with crate(regex-syntax/unicode-case) < 0.8.0~)", - "(crate(regex-syntax/unicode-gencat) >= 0.7.2 with crate(regex-syntax/unicode-gencat) < 0.8.0~)", - "(crate(regex-syntax/unicode-perl) >= 0.7.2 with crate(regex-syntax/unicode-perl) < 0.8.0~)", - "(crate(regex-syntax/unicode-script) >= 0.7.2 with crate(regex-syntax/unicode-script) < 0.8.0~)", - "(crate(regex-syntax/unicode-segment) >= 0.7.2 with crate(regex-syntax/unicode-segment) < 0.8.0~)", - "(crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0~)", - "(crate(quickcheck) >= 1.0.3 with crate(quickcheck) < 2.0.0~)", - "(crate(rand) >= 0.8.3 with crate(rand) < 0.9.0~)", - "(crate(rand/getrandom) >= 0.8.3 with crate(rand/getrandom) < 0.9.0~)", - "(crate(rand/small_rng) >= 0.8.3 with crate(rand/small_rng) < 0.9.0~)", - }, - ), - # default features without dev-dependencies - ( - "regex-1.8.4.json", - FeatureFlags(), - False, - { - "(crate(aho-corasick/default) >= 1.0.0 with crate(aho-corasick/default) < 2.0.0~)", - "(crate(memchr/default) >= 2.5.0 with crate(memchr/default) < 3.0.0~)", - "(crate(regex-syntax/default) >= 0.7.2 with crate(regex-syntax/default) < 0.8.0~)", - "(crate(regex-syntax/unicode) >= 0.7.2 with crate(regex-syntax/unicode) < 0.8.0~)", - "(crate(regex-syntax/unicode-age) >= 0.7.2 with crate(regex-syntax/unicode-age) < 0.8.0~)", - "(crate(regex-syntax/unicode-bool) >= 0.7.2 with crate(regex-syntax/unicode-bool) < 0.8.0~)", - "(crate(regex-syntax/unicode-case) >= 0.7.2 with crate(regex-syntax/unicode-case) < 0.8.0~)", - "(crate(regex-syntax/unicode-gencat) >= 0.7.2 with crate(regex-syntax/unicode-gencat) < 0.8.0~)", - "(crate(regex-syntax/unicode-perl) >= 0.7.2 with crate(regex-syntax/unicode-perl) < 0.8.0~)", - "(crate(regex-syntax/unicode-script) >= 0.7.2 with crate(regex-syntax/unicode-script) < 0.8.0~)", - "(crate(regex-syntax/unicode-segment) >= 0.7.2 with crate(regex-syntax/unicode-segment) < 0.8.0~)", - }, - ), - # default features with dev-dependencies - ("regex-syntax-0.7.2.json", FeatureFlags(), True, set()), - # default features without dev-dependencies - ("regex-syntax-0.7.2.json", FeatureFlags(), False, set()), - # default features with dev-dependencies - ( - "rpm-sequoia-1.2.0.json", - FeatureFlags(), - True, - { - "(crate(anyhow/default) >= 1.0.0 with crate(anyhow/default) < 2.0.0~)", - "(crate(buffered-reader) >= 1.0.0 with crate(buffered-reader) < 2.0.0~)", - "(crate(chrono) >= 0.4.0 with crate(chrono) < 0.5.0~)", - "(crate(chrono/std) >= 0.4.0 with crate(chrono/std) < 0.5.0~)", - "(crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0~)", - "(crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0~)", - "(crate(sequoia-openpgp) >= 1.11.0 with crate(sequoia-openpgp) < 2.0.0~)", - "(crate(sequoia-openpgp/crypto-nettle) >= 1.11.0 with crate(sequoia-openpgp/crypto-nettle) < 2.0.0~)", - "(crate(sequoia-policy-config/default) >= 0.5.0 with crate(sequoia-policy-config/default) < 0.6.0~)", - "(crate(thiserror/default) >= 1.0.0 with crate(thiserror/default) < 2.0.0~)", - "(crate(assert_cmd/default) >= 2.0.0 with crate(assert_cmd/default) < 3.0.0~)", - "(crate(cdylib-link-lines/default) >= 0.1.4 with crate(cdylib-link-lines/default) < 0.2.0~)", - }, - ), - # default features without dev-dependencies - ( - "rpm-sequoia-1.2.0.json", - FeatureFlags(), - False, - { - "(crate(anyhow/default) >= 1.0.0 with crate(anyhow/default) < 2.0.0~)", - "(crate(buffered-reader) >= 1.0.0 with crate(buffered-reader) < 2.0.0~)", - "(crate(chrono) >= 0.4.0 with crate(chrono) < 0.5.0~)", - "(crate(chrono/std) >= 0.4.0 with crate(chrono/std) < 0.5.0~)", - "(crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0~)", - "(crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0~)", - "(crate(sequoia-openpgp) >= 1.11.0 with crate(sequoia-openpgp) < 2.0.0~)", - "(crate(sequoia-openpgp/crypto-nettle) >= 1.11.0 with crate(sequoia-openpgp/crypto-nettle) < 2.0.0~)", - "(crate(sequoia-policy-config/default) >= 0.5.0 with crate(sequoia-policy-config/default) < 0.6.0~)", - "(crate(thiserror/default) >= 1.0.0 with crate(thiserror/default) < 2.0.0~)", - "(crate(cdylib-link-lines/default) >= 0.1.4 with crate(cdylib-link-lines/default) < 0.2.0~)", - }, - ), - # default features with dev-dependencies - ( - "rust_decimal-1.28.0.json", - FeatureFlags(), - True, - { - "(crate(arrayvec) >= 0.7.0 with crate(arrayvec) < 0.8.0~)", - "(crate(arrayvec/std) >= 0.7.0 with crate(arrayvec/std) < 0.8.0~)", - "(crate(num-traits) >= 0.2.0 with crate(num-traits) < 0.3.0~)", - "(crate(num-traits/i128) >= 0.2.0 with crate(num-traits/i128) < 0.3.0~)", - "(crate(serde) >= 1.0.0 with crate(serde) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", - "(crate(serde/std) >= 1.0.0 with crate(serde/std) < 2.0.0~)", - "(crate(bincode) >= 1.0.0 with crate(bincode) < 2.0.0~)", - "(crate(bytes) >= 1.0.0 with crate(bytes) < 2.0.0~)", - "(crate(criterion) >= 0.3.0 with crate(criterion) < 0.4.0~)", - "(crate(csv/default) >= 1.0.0 with crate(csv/default) < 2.0.0~)", - "(crate(futures) >= 0.3.0 with crate(futures) < 0.4.0~)", - "(crate(rand) >= 0.8.0 with crate(rand) < 0.9.0~)", - "(crate(rand/getrandom) >= 0.8.0 with crate(rand/getrandom) < 0.9.0~)", - "(crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0~)", - "(crate(tokio) >= 1.0.0 with crate(tokio) < 2.0.0~)", - "(crate(tokio/macros) >= 1.0.0 with crate(tokio/macros) < 2.0.0~)", - "(crate(tokio/rt-multi-thread) >= 1.0.0 with crate(tokio/rt-multi-thread) < 2.0.0~)", - "(crate(tokio/test-util) >= 1.0.0 with crate(tokio/test-util) < 2.0.0~)", - "(crate(version-sync) >= 0.9.0 with crate(version-sync) < 0.10.0~)", - "(crate(version-sync/html_root_url_updated) >= 0.9.0 with crate(version-sync/html_root_url_updated) < 0.10.0~)", - "(crate(version-sync/markdown_deps_updated) >= 0.9.0 with crate(version-sync/markdown_deps_updated) < 0.10.0~)", - }.union( - { - "(crate(borsh) >= 0.9.0 with crate(borsh) < 0.10.0~)", - "(crate(borsh/std) >= 0.9.0 with crate(borsh/std) < 0.10.0~)", - "(crate(bytecheck) >= 0.6.0 with crate(bytecheck) < 0.7.0~)", - "(crate(bytecheck/std) >= 0.6.0 with crate(bytecheck/std) < 0.7.0~)", - "(crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0~)", - "(crate(byteorder/std) >= 1.0.0 with crate(byteorder/std) < 2.0.0~)", - "(crate(bytes/std) >= 1.0.0 with crate(bytes/std) < 2.0.0~)", - "(crate(rand/std) >= 0.8.0 with crate(rand/std) < 0.9.0~)", - "(crate(rkyv) >= 0.7.0 with crate(rkyv) < 0.8.0~)", - "(crate(rkyv/size_32) >= 0.7.0 with crate(rkyv/size_32) < 0.8.0~)", - "(crate(rkyv/std) >= 0.7.0 with crate(rkyv/std) < 0.8.0~)", - "(crate(serde_json/std) >= 1.0.0 with crate(serde_json/std) < 2.0.0~)", - } - if CARGO_BUGGY_RESOLVER - else set() - ), - ), - # default features without dev-dependencies - ( - "rust_decimal-1.28.0.json", - FeatureFlags(), - False, - { - "(crate(arrayvec) >= 0.7.0 with crate(arrayvec) < 0.8.0~)", - "(crate(arrayvec/std) >= 0.7.0 with crate(arrayvec/std) < 0.8.0~)", - "(crate(num-traits) >= 0.2.0 with crate(num-traits) < 0.3.0~)", - "(crate(num-traits/i128) >= 0.2.0 with crate(num-traits/i128) < 0.3.0~)", - "(crate(serde) >= 1.0.0 with crate(serde) < 2.0.0~)", - "(crate(serde/std) >= 1.0.0 with crate(serde/std) < 2.0.0~)", - }.union( - { - "(crate(borsh) >= 0.9.0 with crate(borsh) < 0.10.0~)", - "(crate(borsh/std) >= 0.9.0 with crate(borsh/std) < 0.10.0~)", - "(crate(bytecheck) >= 0.6.0 with crate(bytecheck) < 0.7.0~)", - "(crate(bytecheck/std) >= 0.6.0 with crate(bytecheck/std) < 0.7.0~)", - "(crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0~)", - "(crate(byteorder/std) >= 1.0.0 with crate(byteorder/std) < 2.0.0~)", - "(crate(bytes) >= 1.0.0 with crate(bytes) < 2.0.0~)", - "(crate(bytes/std) >= 1.0.0 with crate(bytes/std) < 2.0.0~)", - "(crate(rand) >= 0.8.0 with crate(rand) < 0.9.0~)", - "(crate(rand/std) >= 0.8.0 with crate(rand/std) < 0.9.0~)", - "(crate(rkyv) >= 0.7.0 with crate(rkyv) < 0.8.0~)", - "(crate(rkyv/size_32) >= 0.7.0 with crate(rkyv/size_32) < 0.8.0~)", - "(crate(rkyv/std) >= 0.7.0 with crate(rkyv/std) < 0.8.0~)", - "(crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0~)", - "(crate(serde_json/std) >= 1.0.0 with crate(serde_json/std) < 2.0.0~)", - } - if CARGO_BUGGY_RESOLVER - else set() - ), - ), - # default features with dev-dependencies - ( - "rustix-0.36.8.json", - FeatureFlags(), - True, - { - "(crate(bitflags/default) >= 1.2.1 with crate(bitflags/default) < 2.0.0~)", - "(crate(io-lifetimes) >= 1.0.0 with crate(io-lifetimes) < 2.0.0~)", - "(crate(io-lifetimes/close) >= 1.0.0 with crate(io-lifetimes/close) < 2.0.0~)", - "(crate(flate2/default) >= 1.0.0 with crate(flate2/default) < 2.0.0~)", - "(crate(libc/default) >= 0.2.133 with crate(libc/default) < 0.3.0~)", - "(crate(errno) >= 0.2.8 with crate(errno) < 0.3.0~)", - "(crate(memoffset/default) >= 0.7.1 with crate(memoffset/default) < 0.8.0~)", - "(crate(serial_test/default) >= 0.6.0 with crate(serial_test/default) < 0.7.0~)", - "(crate(tempfile/default) >= 3.2.0 with crate(tempfile/default) < 4.0.0~)", - "(crate(linux-raw-sys) >= 0.1.2 with crate(linux-raw-sys) < 0.2.0~)", - "(crate(linux-raw-sys/general) >= 0.1.2 with crate(linux-raw-sys/general) < 0.2.0~)", - "(crate(linux-raw-sys/no_std) >= 0.1.2 with crate(linux-raw-sys/no_std) < 0.2.0~)", - "(crate(criterion/default) >= 0.4.0 with crate(criterion/default) < 0.5.0~)", - "(crate(libc/extra_traits) >= 0.2.133 with crate(libc/extra_traits) < 0.3.0~)", - "(crate(linux-raw-sys/errno) >= 0.1.2 with crate(linux-raw-sys/errno) < 0.2.0~)", - "(crate(linux-raw-sys/ioctl) >= 0.1.2 with crate(linux-raw-sys/ioctl) < 0.2.0~)", - "(crate(windows-sys/default) >= 0.45.0 with crate(windows-sys/default) < 0.46.0~)", - "(crate(windows-sys/Win32_Foundation) >= 0.45.0 with crate(windows-sys/Win32_Foundation) < 0.46.0~)", - "(crate(windows-sys/Win32_Networking_WinSock) >= 0.45.0 with crate(windows-sys/Win32_Networking_WinSock) < 0.46.0~)", - "(crate(windows-sys/Win32_NetworkManagement_IpHelper) >= 0.45.0 with crate(windows-sys/Win32_NetworkManagement_IpHelper) < 0.46.0~)", - "(crate(windows-sys/Win32_System_Threading) >= 0.45.0 with crate(windows-sys/Win32_System_Threading) < 0.46.0~)", - "(crate(ctor/default) >= 0.1.21 with crate(ctor/default) < 0.2.0~)", - }, - ), - # default features + cc with dev-dependencies - ( - "rustix-0.36.8.json", - FeatureFlags(features=["cc"]), - True, - { - "(crate(bitflags/default) >= 1.2.1 with crate(bitflags/default) < 2.0.0~)", - "(crate(io-lifetimes) >= 1.0.0 with crate(io-lifetimes) < 2.0.0~)", - "(crate(io-lifetimes/close) >= 1.0.0 with crate(io-lifetimes/close) < 2.0.0~)", - "(crate(flate2/default) >= 1.0.0 with crate(flate2/default) < 2.0.0~)", - "(crate(libc/default) >= 0.2.133 with crate(libc/default) < 0.3.0~)", - "(crate(errno) >= 0.2.8 with crate(errno) < 0.3.0~)", - "(crate(memoffset/default) >= 0.7.1 with crate(memoffset/default) < 0.8.0~)", - "(crate(serial_test/default) >= 0.6.0 with crate(serial_test/default) < 0.7.0~)", - "(crate(tempfile/default) >= 3.2.0 with crate(tempfile/default) < 4.0.0~)", - "(crate(cc/default) >= 1.0.68 with crate(cc/default) < 2.0.0~)", - "(crate(linux-raw-sys) >= 0.1.2 with crate(linux-raw-sys) < 0.2.0~)", - "(crate(linux-raw-sys/general) >= 0.1.2 with crate(linux-raw-sys/general) < 0.2.0~)", - "(crate(linux-raw-sys/no_std) >= 0.1.2 with crate(linux-raw-sys/no_std) < 0.2.0~)", - "(crate(criterion/default) >= 0.4.0 with crate(criterion/default) < 0.5.0~)", - "(crate(libc/extra_traits) >= 0.2.133 with crate(libc/extra_traits) < 0.3.0~)", - "(crate(linux-raw-sys/errno) >= 0.1.2 with crate(linux-raw-sys/errno) < 0.2.0~)", - "(crate(linux-raw-sys/ioctl) >= 0.1.2 with crate(linux-raw-sys/ioctl) < 0.2.0~)", - "(crate(windows-sys/default) >= 0.45.0 with crate(windows-sys/default) < 0.46.0~)", - "(crate(windows-sys/Win32_Foundation) >= 0.45.0 with crate(windows-sys/Win32_Foundation) < 0.46.0~)", - "(crate(windows-sys/Win32_Networking_WinSock) >= 0.45.0 with crate(windows-sys/Win32_Networking_WinSock) < 0.46.0~)", - "(crate(windows-sys/Win32_NetworkManagement_IpHelper) >= 0.45.0 with crate(windows-sys/Win32_NetworkManagement_IpHelper) < 0.46.0~)", - "(crate(windows-sys/Win32_System_Threading) >= 0.45.0 with crate(windows-sys/Win32_System_Threading) < 0.46.0~)", - "(crate(ctor/default) >= 0.1.21 with crate(ctor/default) < 0.2.0~)", - }, - ), - # default features without dev-dependencies - ( - "rustix-0.36.8.json", - FeatureFlags(), - False, - { - "(crate(bitflags/default) >= 1.2.1 with crate(bitflags/default) < 2.0.0~)", - "(crate(io-lifetimes) >= 1.0.0 with crate(io-lifetimes) < 2.0.0~)", - "(crate(io-lifetimes/close) >= 1.0.0 with crate(io-lifetimes/close) < 2.0.0~)", - "(crate(libc/default) >= 0.2.133 with crate(libc/default) < 0.3.0~)", - "(crate(errno) >= 0.2.8 with crate(errno) < 0.3.0~)", - "(crate(linux-raw-sys) >= 0.1.2 with crate(linux-raw-sys) < 0.2.0~)", - "(crate(linux-raw-sys/general) >= 0.1.2 with crate(linux-raw-sys/general) < 0.2.0~)", - "(crate(linux-raw-sys/no_std) >= 0.1.2 with crate(linux-raw-sys/no_std) < 0.2.0~)", - "(crate(libc/extra_traits) >= 0.2.133 with crate(libc/extra_traits) < 0.3.0~)", - "(crate(linux-raw-sys/errno) >= 0.1.2 with crate(linux-raw-sys/errno) < 0.2.0~)", - "(crate(linux-raw-sys/ioctl) >= 0.1.2 with crate(linux-raw-sys/ioctl) < 0.2.0~)", - "(crate(windows-sys/default) >= 0.45.0 with crate(windows-sys/default) < 0.46.0~)", - "(crate(windows-sys/Win32_Foundation) >= 0.45.0 with crate(windows-sys/Win32_Foundation) < 0.46.0~)", - "(crate(windows-sys/Win32_Networking_WinSock) >= 0.45.0 with crate(windows-sys/Win32_Networking_WinSock) < 0.46.0~)", - "(crate(windows-sys/Win32_NetworkManagement_IpHelper) >= 0.45.0 with crate(windows-sys/Win32_NetworkManagement_IpHelper) < 0.46.0~)", - "(crate(windows-sys/Win32_System_Threading) >= 0.45.0 with crate(windows-sys/Win32_System_Threading) < 0.46.0~)", - }, - ), - # default features + cc without dev-dependencies - ( - "rustix-0.36.8.json", - FeatureFlags(features=["cc"]), - False, - { - "(crate(bitflags/default) >= 1.2.1 with crate(bitflags/default) < 2.0.0~)", - "(crate(io-lifetimes) >= 1.0.0 with crate(io-lifetimes) < 2.0.0~)", - "(crate(io-lifetimes/close) >= 1.0.0 with crate(io-lifetimes/close) < 2.0.0~)", - "(crate(libc/default) >= 0.2.133 with crate(libc/default) < 0.3.0~)", - "(crate(errno) >= 0.2.8 with crate(errno) < 0.3.0~)", - "(crate(cc/default) >= 1.0.68 with crate(cc/default) < 2.0.0~)", - "(crate(linux-raw-sys) >= 0.1.2 with crate(linux-raw-sys) < 0.2.0~)", - "(crate(linux-raw-sys/general) >= 0.1.2 with crate(linux-raw-sys/general) < 0.2.0~)", - "(crate(linux-raw-sys/no_std) >= 0.1.2 with crate(linux-raw-sys/no_std) < 0.2.0~)", - "(crate(libc/extra_traits) >= 0.2.133 with crate(libc/extra_traits) < 0.3.0~)", - "(crate(linux-raw-sys/errno) >= 0.1.2 with crate(linux-raw-sys/errno) < 0.2.0~)", - "(crate(linux-raw-sys/ioctl) >= 0.1.2 with crate(linux-raw-sys/ioctl) < 0.2.0~)", - "(crate(windows-sys/default) >= 0.45.0 with crate(windows-sys/default) < 0.46.0~)", - "(crate(windows-sys/Win32_Foundation) >= 0.45.0 with crate(windows-sys/Win32_Foundation) < 0.46.0~)", - "(crate(windows-sys/Win32_Networking_WinSock) >= 0.45.0 with crate(windows-sys/Win32_Networking_WinSock) < 0.46.0~)", - "(crate(windows-sys/Win32_NetworkManagement_IpHelper) >= 0.45.0 with crate(windows-sys/Win32_NetworkManagement_IpHelper) < 0.46.0~)", - "(crate(windows-sys/Win32_System_Threading) >= 0.45.0 with crate(windows-sys/Win32_System_Threading) < 0.46.0~)", - }, - ), - # default features with dev-dependencies - ( - "serde-1.0.152.json", - FeatureFlags(), - True, - { - "(crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default) < 2.0.0~)", - }, - ), - # default features without dev-dependencies - ( - "serde-1.0.152.json", - FeatureFlags(), - False, - set(), - ), - # default features with dev-dependencies - ( - "serde_derive-1.0.152.json", - FeatureFlags(), - True, - { - "(crate(proc-macro2/default) >= 1.0.0 with crate(proc-macro2/default) < 2.0.0~)", - "(crate(quote/default) >= 1.0.0 with crate(quote/default) < 2.0.0~)", - "(crate(syn/default) >= 1.0.104 with crate(syn/default) < 2.0.0~)", - "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", - }, - ), - # default features without dev-dependencies - ( - "serde_derive-1.0.152.json", - FeatureFlags(), - False, - { - "(crate(proc-macro2/default) >= 1.0.0 with crate(proc-macro2/default) < 2.0.0~)", - "(crate(quote/default) >= 1.0.0 with crate(quote/default) < 2.0.0~)", - "(crate(syn/default) >= 1.0.104 with crate(syn/default) < 2.0.0~)", - }, - ), - # default features with dev-dependencies - ( - "syn-1.0.107.json", - FeatureFlags(), - True, - { - "(crate(proc-macro2) >= 1.0.46 with crate(proc-macro2) < 2.0.0~)", - "(crate(proc-macro2/proc-macro) >= 1.0.46 with crate(proc-macro2/proc-macro) < 2.0.0~)", - "(crate(quote) >= 1.0.0 with crate(quote) < 2.0.0~)", - "(crate(quote/proc-macro) >= 1.0.0 with crate(quote/proc-macro) < 2.0.0~)", - "(crate(unicode-ident/default) >= 1.0.0 with crate(unicode-ident/default) < 2.0.0~)", - "(crate(anyhow/default) >= 1.0.0 with crate(anyhow/default) < 2.0.0~)", - "(crate(automod/default) >= 1.0.0 with crate(automod/default) < 2.0.0~)", - "(crate(flate2/default) >= 1.0.0 with crate(flate2/default) < 2.0.0~)", - "(crate(insta/default) >= 1.0.0 with crate(insta/default) < 2.0.0~)", - "(crate(rayon/default) >= 1.0.0 with crate(rayon/default) < 2.0.0~)", - "(crate(ref-cast/default) >= 1.0.0 with crate(ref-cast/default) < 2.0.0~)", - "(crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0~)", - "(crate(reqwest/default) >= 0.11.0 with crate(reqwest/default) < 0.12.0~)", - "(crate(reqwest/blocking) >= 0.11.0 with crate(reqwest/blocking) < 0.12.0~)", - "(crate(syn-test-suite/default) >= 0.0.0 with crate(syn-test-suite/default) < 1.0.0~)", - "(crate(tar/default) >= 0.4.16 with crate(tar/default) < 0.5.0~)", - "(crate(termcolor/default) >= 1.0.0 with crate(termcolor/default) < 2.0.0~)", - "(crate(walkdir/default) >= 2.1.0 with crate(walkdir/default) < 3.0.0~)", - }, - ), - # default features without dev-dependencies - ( - "syn-1.0.107.json", - FeatureFlags(), - False, - { - "(crate(proc-macro2) >= 1.0.46 with crate(proc-macro2) < 2.0.0~)", - "(crate(proc-macro2/proc-macro) >= 1.0.46 with crate(proc-macro2/proc-macro) < 2.0.0~)", - "(crate(quote) >= 1.0.0 with crate(quote) < 2.0.0~)", - "(crate(quote/proc-macro) >= 1.0.0 with crate(quote/proc-macro) < 2.0.0~)", - "(crate(unicode-ident/default) >= 1.0.0 with crate(unicode-ident/default) < 2.0.0~)", - }, - ), - # default features with dev-dependencies - ( - "time-0.3.17.json", - FeatureFlags(), - True, - { - "crate(time-core/default) = 0.1.0", - "(crate(quickcheck_macros/default) >= 1.0.0 with crate(quickcheck_macros/default) < 2.0.0~)", - "(crate(rand) >= 0.8.4 with crate(rand) < 0.9.0~)", - "(crate(serde) >= 1.0.126 with crate(serde) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.126 with crate(serde/derive) < 2.0.0~)", - "(crate(serde_json/default) >= 1.0.68 with crate(serde_json/default) < 2.0.0~)", - "(crate(serde_test/default) >= 1.0.126 with crate(serde_test/default) < 2.0.0~)", - "crate(time-macros/default) = 0.2.6", - "(crate(trybuild/default) >= 1.0.68 with crate(trybuild/default) < 2.0.0~)", - "(crate(criterion) >= 0.4.0 with crate(criterion) < 0.5.0~)", - }.union({"(crate(serde/alloc) >= 1.0.126 with crate(serde/alloc) < 2.0.0~)"} if CARGO_BUGGY_RESOLVER else set()), - ), - # default features without dev-dependencies - ( - "time-0.3.17.json", - FeatureFlags(), - False, - {"crate(time-core/default) = 0.1.0",}.union( - { - "(crate(serde) >= 1.0.126 with crate(serde) < 2.0.0~)", - "(crate(serde/alloc) >= 1.0.126 with crate(serde/alloc) < 2.0.0~)", - } - if CARGO_BUGGY_RESOLVER - else set() - ), - ), - # default features with dev-dependencies - ( - "tokio-1.25.0.json", - FeatureFlags(), - True, - { - "(crate(pin-project-lite/default) >= 0.2.0 with crate(pin-project-lite/default) < 0.3.0~)", - "(crate(async-stream/default) >= 0.3.0 with crate(async-stream/default) < 0.4.0~)", - "(crate(futures/default) >= 0.3.0 with crate(futures/default) < 0.4.0~)", - "(crate(futures/async-await) >= 0.3.0 with crate(futures/async-await) < 0.4.0~)", - "(crate(mockall/default) >= 0.11.1 with crate(mockall/default) < 0.12.0~)", - "(crate(tempfile/default) >= 3.1.0 with crate(tempfile/default) < 4.0.0~)", - "(crate(tokio-stream/default) >= 0.1.0 with crate(tokio-stream/default) < 0.2.0~)", - "(crate(tokio-test/default) >= 0.4.0 with crate(tokio-test/default) < 0.5.0~)", - "(crate(autocfg/default) >= 1.1.0 with crate(autocfg/default) < 2.0.0~)", - "(crate(wasm-bindgen-test/default) >= 0.3.0 with crate(wasm-bindgen-test/default) < 0.4.0~)", - "(crate(windows-sys/default) >= 0.42.0 with crate(windows-sys/default) < 0.43.0~)", - "(crate(windows-sys/Win32_Foundation) >= 0.42.0 with crate(windows-sys/Win32_Foundation) < 0.43.0~)", - "(crate(windows-sys/Win32_Security_Authorization) >= 0.42.0 with crate(windows-sys/Win32_Security_Authorization) < 0.43.0~)", - "(crate(loom/default) >= 0.5.2 with crate(loom/default) < 0.6.0~)", - "(crate(loom/futures) >= 0.5.2 with crate(loom/futures) < 0.6.0~)", - "(crate(loom/checkpoint) >= 0.5.2 with crate(loom/checkpoint) < 0.6.0~)", - "(crate(rand/default) >= 0.8.0 with crate(rand/default) < 0.9.0~)", - "(crate(proptest/default) >= 1.0.0 with crate(proptest/default) < 2.0.0~)", - "(crate(socket2/default) >= 0.4.0 with crate(socket2/default) < 0.5.0~)", - "(crate(mio-aio/default) >= 0.7.0 with crate(mio-aio/default) < 0.8.0~)", - "(crate(mio-aio/tokio) >= 0.7.0 with crate(mio-aio/tokio) < 0.8.0~)", - "(crate(libc/default) >= 0.2.42 with crate(libc/default) < 0.3.0~)", - "(crate(nix) >= 0.26.0 with crate(nix) < 0.27.0~)", - "(crate(nix/fs) >= 0.26.0 with crate(nix/fs) < 0.27.0~)", - "(crate(nix/socket) >= 0.26.0 with crate(nix/socket) < 0.27.0~)", - "(crate(ntapi/default) >= 0.3.6 with crate(ntapi/default) < 0.4.0~)", - }, - ), - # default features without dev-dependencies - ( - "tokio-1.25.0.json", - FeatureFlags(), - False, - { - "(crate(pin-project-lite/default) >= 0.2.0 with crate(pin-project-lite/default) < 0.3.0~)", - "(crate(autocfg/default) >= 1.1.0 with crate(autocfg/default) < 2.0.0~)", - "(crate(windows-sys/default) >= 0.42.0 with crate(windows-sys/default) < 0.43.0~)", - "(crate(windows-sys/Win32_Foundation) >= 0.42.0 with crate(windows-sys/Win32_Foundation) < 0.43.0~)", - "(crate(windows-sys/Win32_Security_Authorization) >= 0.42.0 with crate(windows-sys/Win32_Security_Authorization) < 0.43.0~)", - }, - ), - # default features with dev-dependencies - ("unicode-xid-0.2.4.json", FeatureFlags(), True, {"(crate(criterion/default) >= 0.3.0 with crate(criterion/default) < 0.4.0~)"}), - # default features without dev-dependencies - ("unicode-xid-0.2.4.json", FeatureFlags(), False, set()), - # default features with dev-dependencies - ( - "zbus-3.8.0.json", - FeatureFlags(), - True, - { - "(crate(async-broadcast/default) >= 0.5.0 with crate(async-broadcast/default) < 0.6.0~)", - "(crate(async-executor/default) >= 1.5.0 with crate(async-executor/default) < 2.0.0~)", - "(crate(async-io/default) >= 1.12.0 with crate(async-io/default) < 2.0.0~)", - "(crate(async-lock/default) >= 2.6.0 with crate(async-lock/default) < 3.0.0~)", - "(crate(async-recursion/default) >= 1.0.0 with crate(async-recursion/default) < 2.0.0~)", - "(crate(async-task/default) >= 4.3.0 with crate(async-task/default) < 5.0.0~)", - "(crate(async-trait/default) >= 0.1.58 with crate(async-trait/default) < 0.2.0~)", - "(crate(byteorder/default) >= 1.4.3 with crate(byteorder/default) < 2.0.0~)", - "(crate(derivative/default) >= 2.2.0 with crate(derivative/default) < 3.0.0~)", - "(crate(dirs/default) >= 4.0.0 with crate(dirs/default) < 5.0.0~)", - "(crate(enumflags2/default) >= 0.7.5 with crate(enumflags2/default) < 0.8.0~)", - "(crate(enumflags2/serde) >= 0.7.5 with crate(enumflags2/serde) < 0.8.0~)", - "(crate(event-listener/default) >= 2.5.3 with crate(event-listener/default) < 3.0.0~)", - "(crate(futures-core/default) >= 0.3.25 with crate(futures-core/default) < 0.4.0~)", - "(crate(futures-sink/default) >= 0.3.25 with crate(futures-sink/default) < 0.4.0~)", - "(crate(futures-util/sink) >= 0.3.25 with crate(futures-util/sink) < 0.4.0~)", - "(crate(futures-util/std) >= 0.3.25 with crate(futures-util/std) < 0.4.0~)", - "(crate(hex/default) >= 0.4.3 with crate(hex/default) < 0.5.0~)", - "(crate(nix/default) >= 0.25.0 with crate(nix/default) < 0.26.0~)", - "(crate(once_cell/default) >= 1.4.0 with crate(once_cell/default) < 2.0.0~)", - "(crate(ordered-stream/default) >= 0.1.4 with crate(ordered-stream/default) < 0.2.0~)", - "(crate(rand/default) >= 0.8.5 with crate(rand/default) < 0.9.0~)", - "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", - "(crate(serde_repr/default) >= 0.1.9 with crate(serde_repr/default) < 0.2.0~)", - "(crate(sha1/default) >= 0.10.5 with crate(sha1/default) < 0.11.0~)", - "(crate(sha1/std) >= 0.10.5 with crate(sha1/std) < 0.11.0~)", - "(crate(static_assertions/default) >= 1.1.0 with crate(static_assertions/default) < 2.0.0~)", - "(crate(tracing/default) >= 0.1.37 with crate(tracing/default) < 0.2.0~)", - "crate(zbus_macros/default) = 3.8.0", - "(crate(zbus_names/default) >= 2.5.0 with crate(zbus_names/default) < 3.0.0~)", - "(crate(zvariant) >= 3.10.0 with crate(zvariant) < 4.0.0~)", - "(crate(zvariant/enumflags2) >= 3.10.0 with crate(zvariant/enumflags2) < 4.0.0~)", - "(crate(async-std/default) >= 1.12.0 with crate(async-std/default) < 2.0.0~)", - "(crate(async-std/attributes) >= 1.12.0 with crate(async-std/attributes) < 2.0.0~)", - "(crate(doc-comment/default) >= 0.3.3 with crate(doc-comment/default) < 0.4.0~)", - "(crate(futures-util/default) >= 0.3.25 with crate(futures-util/default) < 0.4.0~)", - "(crate(ntest/default) >= 0.9.0 with crate(ntest/default) < 0.10.0~)", - "(crate(tempfile/default) >= 3.3.0 with crate(tempfile/default) < 4.0.0~)", - "(crate(test-log) >= 0.2.11 with crate(test-log) < 0.3.0~)", - "(crate(test-log/trace) >= 0.2.11 with crate(test-log/trace) < 0.3.0~)", - "(crate(tokio/default) >= 1.0.0 with crate(tokio/default) < 2.0.0~)", - "(crate(tokio/macros) >= 1.0.0 with crate(tokio/macros) < 2.0.0~)", - "(crate(tokio/rt-multi-thread) >= 1.0.0 with crate(tokio/rt-multi-thread) < 2.0.0~)", - "(crate(tokio/fs) >= 1.0.0 with crate(tokio/fs) < 2.0.0~)", - "(crate(tokio/io-util) >= 1.0.0 with crate(tokio/io-util) < 2.0.0~)", - "(crate(tokio/net) >= 1.0.0 with crate(tokio/net) < 2.0.0~)", - "(crate(tokio/sync) >= 1.0.0 with crate(tokio/sync) < 2.0.0~)", - "(crate(tracing-subscriber) >= 0.3.16 with crate(tracing-subscriber) < 0.4.0~)", - "(crate(tracing-subscriber/env-filter) >= 0.3.16 with crate(tracing-subscriber/env-filter) < 0.4.0~)", - "(crate(tracing-subscriber/fmt) >= 0.3.16 with crate(tracing-subscriber/fmt) < 0.4.0~)", - "(crate(uds_windows/default) >= 1.0.2 with crate(uds_windows/default) < 2.0.0~)", - "(crate(winapi/default) >= 0.3.0 with crate(winapi/default) < 0.4.0~)", - "(crate(winapi/handleapi) >= 0.3.0 with crate(winapi/handleapi) < 0.4.0~)", - "(crate(winapi/iphlpapi) >= 0.3.0 with crate(winapi/iphlpapi) < 0.4.0~)", - "(crate(winapi/memoryapi) >= 0.3.0 with crate(winapi/memoryapi) < 0.4.0~)", - "(crate(winapi/processthreadsapi) >= 0.3.0 with crate(winapi/processthreadsapi) < 0.4.0~)", - "(crate(winapi/sddl) >= 0.3.0 with crate(winapi/sddl) < 0.4.0~)", - "(crate(winapi/securitybaseapi) >= 0.3.0 with crate(winapi/securitybaseapi) < 0.4.0~)", - "(crate(winapi/synchapi) >= 0.3.0 with crate(winapi/synchapi) < 0.4.0~)", - "(crate(winapi/tcpmib) >= 0.3.0 with crate(winapi/tcpmib) < 0.4.0~)", - "(crate(winapi/winbase) >= 0.3.0 with crate(winapi/winbase) < 0.4.0~)", - "(crate(winapi/winerror) >= 0.3.0 with crate(winapi/winerror) < 0.4.0~)", - "(crate(winapi/winsock2) >= 0.3.0 with crate(winapi/winsock2) < 0.4.0~)", - }, - ), - # default features without dev-dependencies - ( - "zbus-3.8.0.json", - FeatureFlags(), - False, - { - "(crate(async-broadcast/default) >= 0.5.0 with crate(async-broadcast/default) < 0.6.0~)", - "(crate(async-executor/default) >= 1.5.0 with crate(async-executor/default) < 2.0.0~)", - "(crate(async-io/default) >= 1.12.0 with crate(async-io/default) < 2.0.0~)", - "(crate(async-lock/default) >= 2.6.0 with crate(async-lock/default) < 3.0.0~)", - "(crate(async-recursion/default) >= 1.0.0 with crate(async-recursion/default) < 2.0.0~)", - "(crate(async-task/default) >= 4.3.0 with crate(async-task/default) < 5.0.0~)", - "(crate(async-trait/default) >= 0.1.58 with crate(async-trait/default) < 0.2.0~)", - "(crate(byteorder/default) >= 1.4.3 with crate(byteorder/default) < 2.0.0~)", - "(crate(derivative/default) >= 2.2.0 with crate(derivative/default) < 3.0.0~)", - "(crate(dirs/default) >= 4.0.0 with crate(dirs/default) < 5.0.0~)", - "(crate(enumflags2/default) >= 0.7.5 with crate(enumflags2/default) < 0.8.0~)", - "(crate(enumflags2/serde) >= 0.7.5 with crate(enumflags2/serde) < 0.8.0~)", - "(crate(event-listener/default) >= 2.5.3 with crate(event-listener/default) < 3.0.0~)", - "(crate(futures-core/default) >= 0.3.25 with crate(futures-core/default) < 0.4.0~)", - "(crate(futures-sink/default) >= 0.3.25 with crate(futures-sink/default) < 0.4.0~)", - "(crate(futures-util) >= 0.3.25 with crate(futures-util) < 0.4.0~)", - "(crate(futures-util/sink) >= 0.3.25 with crate(futures-util/sink) < 0.4.0~)", - "(crate(futures-util/std) >= 0.3.25 with crate(futures-util/std) < 0.4.0~)", - "(crate(hex/default) >= 0.4.3 with crate(hex/default) < 0.5.0~)", - "(crate(nix/default) >= 0.25.0 with crate(nix/default) < 0.26.0~)", - "(crate(once_cell/default) >= 1.4.0 with crate(once_cell/default) < 2.0.0~)", - "(crate(ordered-stream/default) >= 0.1.4 with crate(ordered-stream/default) < 0.2.0~)", - "(crate(rand/default) >= 0.8.5 with crate(rand/default) < 0.9.0~)", - "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", - "(crate(serde_repr/default) >= 0.1.9 with crate(serde_repr/default) < 0.2.0~)", - "(crate(sha1/default) >= 0.10.5 with crate(sha1/default) < 0.11.0~)", - "(crate(sha1/std) >= 0.10.5 with crate(sha1/std) < 0.11.0~)", - "(crate(static_assertions/default) >= 1.1.0 with crate(static_assertions/default) < 2.0.0~)", - "(crate(tracing/default) >= 0.1.37 with crate(tracing/default) < 0.2.0~)", - "crate(zbus_macros/default) = 3.8.0", - "(crate(zbus_names/default) >= 2.5.0 with crate(zbus_names/default) < 3.0.0~)", - "(crate(zvariant) >= 3.10.0 with crate(zvariant) < 4.0.0~)", - "(crate(zvariant/enumflags2) >= 3.10.0 with crate(zvariant/enumflags2) < 4.0.0~)", - "(crate(uds_windows/default) >= 1.0.2 with crate(uds_windows/default) < 2.0.0~)", - "(crate(winapi/default) >= 0.3.0 with crate(winapi/default) < 0.4.0~)", - "(crate(winapi/handleapi) >= 0.3.0 with crate(winapi/handleapi) < 0.4.0~)", - "(crate(winapi/iphlpapi) >= 0.3.0 with crate(winapi/iphlpapi) < 0.4.0~)", - "(crate(winapi/memoryapi) >= 0.3.0 with crate(winapi/memoryapi) < 0.4.0~)", - "(crate(winapi/processthreadsapi) >= 0.3.0 with crate(winapi/processthreadsapi) < 0.4.0~)", - "(crate(winapi/sddl) >= 0.3.0 with crate(winapi/sddl) < 0.4.0~)", - "(crate(winapi/securitybaseapi) >= 0.3.0 with crate(winapi/securitybaseapi) < 0.4.0~)", - "(crate(winapi/synchapi) >= 0.3.0 with crate(winapi/synchapi) < 0.4.0~)", - "(crate(winapi/tcpmib) >= 0.3.0 with crate(winapi/tcpmib) < 0.4.0~)", - "(crate(winapi/winbase) >= 0.3.0 with crate(winapi/winbase) < 0.4.0~)", - "(crate(winapi/winerror) >= 0.3.0 with crate(winapi/winerror) < 0.4.0~)", - "(crate(winapi/winsock2) >= 0.3.0 with crate(winapi/winsock2) < 0.4.0~)", - }, - ), - ], - ids=short_repr, -) -def test_rpm_buildrequires(filename: str, flags: FeatureFlags, with_dev_deps: bool, expected: set[str]): - metadata = load_metadata_from_resource(filename) - assert buildrequires(metadata.packages[0], flags, with_dev_deps) == expected - - -@pytest.mark.parametrize( - "filename,flags,with_dev_deps,expected", - [ - # default features with dev-dependencies - ( - "fapolicy-analyzer-0.6.8.json", - FeatureFlags(), - True, - { - "(crate(chrono/default) >= 0.4.22 with crate(chrono/default) < 0.5.0~)", - "(crate(nom/default) >= 7.1.0 with crate(nom/default) < 8.0.0~)", - "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", - "(crate(thiserror/default) >= 1.0.0 with crate(thiserror/default) < 2.0.0~)", - "(crate(dbus/default) >= 0.9.0 with crate(dbus/default) < 0.10.0~)", - "(crate(lmdb/default) >= 0.8.0 with crate(lmdb/default) < 0.9.0~)", - "(crate(rayon/default) >= 1.5.0 with crate(rayon/default) < 2.0.0~)", - "(crate(data-encoding/default) >= 2.3.1 with crate(data-encoding/default) < 3.0.0~)", - "(crate(ring/default) >= 0.16.19 with crate(ring/default) < 0.17.0~)", - "(crate(tempfile/default) >= 3.3.0 with crate(tempfile/default) < 4.0.0~)", - "(crate(confy/default) >= 0.4.0 with crate(confy/default) < 0.5.0~)", - "(crate(directories/default) >= 4.0.0 with crate(directories/default) < 5.0.0~)", - "(crate(pyo3/default) >= 0.15.0 with crate(pyo3/default) < 0.16.0~)", - "(crate(pyo3/abi3-py36) >= 0.15.0 with crate(pyo3/abi3-py36) < 0.16.0~)", - "(crate(similar/default) >= 2.1.0 with crate(similar/default) < 3.0.0~)", - "(crate(ariadne/default) >= 0.1.0 with crate(ariadne/default) < 0.2.0~)", - "(crate(clap/default) >= 3.2.20 with crate(clap/default) < 4.0.0~)", - "(crate(clap/derive) >= 3.2.20 with crate(clap/derive) < 4.0.0~)", - }, - ), - # default features without dev-dependencies - ( - "fapolicy-analyzer-0.6.8.json", - FeatureFlags(), - False, - { - "(crate(chrono/default) >= 0.4.22 with crate(chrono/default) < 0.5.0~)", - "(crate(nom/default) >= 7.1.0 with crate(nom/default) < 8.0.0~)", - "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", - "(crate(thiserror/default) >= 1.0.0 with crate(thiserror/default) < 2.0.0~)", - "(crate(dbus/default) >= 0.9.0 with crate(dbus/default) < 0.10.0~)", - "(crate(lmdb/default) >= 0.8.0 with crate(lmdb/default) < 0.9.0~)", - "(crate(rayon/default) >= 1.5.0 with crate(rayon/default) < 2.0.0~)", - "(crate(data-encoding/default) >= 2.3.1 with crate(data-encoding/default) < 3.0.0~)", - "(crate(ring/default) >= 0.16.19 with crate(ring/default) < 0.17.0~)", - "(crate(confy/default) >= 0.4.0 with crate(confy/default) < 0.5.0~)", - "(crate(directories/default) >= 4.0.0 with crate(directories/default) < 5.0.0~)", - "(crate(pyo3/default) >= 0.15.0 with crate(pyo3/default) < 0.16.0~)", - "(crate(pyo3/abi3-py36) >= 0.15.0 with crate(pyo3/abi3-py36) < 0.16.0~)", - "(crate(similar/default) >= 2.1.0 with crate(similar/default) < 3.0.0~)", - "(crate(ariadne/default) >= 0.1.0 with crate(ariadne/default) < 0.2.0~)", - "(crate(clap/default) >= 3.2.20 with crate(clap/default) < 4.0.0~)", - "(crate(clap/derive) >= 3.2.20 with crate(clap/derive) < 4.0.0~)", - }, - ), - # default features with dev-dependencies - ( - "libblkio-1.2.2.json", - FeatureFlags(), - True, - { - "(crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0~)", - "(crate(cc/default) >= 1.0.0 with crate(cc/default) < 2.0.0~)", - "(crate(bitflags/default) >= 1.2.0 with crate(bitflags/default) < 2.0.0~)", - "(crate(concat-idents/default) >= 1.1.0 with crate(concat-idents/default) < 2.0.0~)", - "(crate(const-cstr/default) >= 0.3.0 with crate(const-cstr/default) < 0.4.0~)", - "(crate(io-uring/default) >= 0.5.10 with crate(io-uring/default) < 0.6.0~)", - "(crate(lazy_static/default) >= 1.1.0 with crate(lazy_static/default) < 2.0.0~)", - "(crate(nix) >= 0.24.0 with crate(nix) < 0.25.0~)", - "(crate(nix/event) >= 0.24.0 with crate(nix/event) < 0.25.0~)", - "(crate(nix/feature) >= 0.24.0 with crate(nix/feature) < 0.25.0~)", - "(crate(nix/fs) >= 0.24.0 with crate(nix/fs) < 0.25.0~)", - "(crate(nix/mman) >= 0.24.0 with crate(nix/mman) < 0.25.0~)", - "(crate(pci-driver) >= 0.1.2 with crate(pci-driver) < 0.2.0~)", - "(crate(pci-driver/vfio) >= 0.1.2 with crate(pci-driver/vfio) < 0.2.0~)", - "(crate(memmap2/default) >= 0.1.0 with crate(memmap2/default) < 0.6.0~)", - "(crate(virtio-bindings/default) >= 0.1.0 with crate(virtio-bindings/default) < 0.2.0~)", - "(crate(virtio-bindings/virtio-v5_0_0) >= 0.1.0 with crate(virtio-bindings/virtio-v5_0_0) < 0.2.0~)", - }, - ), - # default features without dev-dependencies - ( - "libblkio-1.2.2.json", - FeatureFlags(), - False, - { - "(crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0~)", - "(crate(cc/default) >= 1.0.0 with crate(cc/default) < 2.0.0~)", - "(crate(bitflags/default) >= 1.2.0 with crate(bitflags/default) < 2.0.0~)", - "(crate(concat-idents/default) >= 1.1.0 with crate(concat-idents/default) < 2.0.0~)", - "(crate(const-cstr/default) >= 0.3.0 with crate(const-cstr/default) < 0.4.0~)", - "(crate(io-uring/default) >= 0.5.10 with crate(io-uring/default) < 0.6.0~)", - "(crate(lazy_static/default) >= 1.1.0 with crate(lazy_static/default) < 2.0.0~)", - "(crate(nix) >= 0.24.0 with crate(nix) < 0.25.0~)", - "(crate(nix/event) >= 0.24.0 with crate(nix/event) < 0.25.0~)", - "(crate(nix/feature) >= 0.24.0 with crate(nix/feature) < 0.25.0~)", - "(crate(nix/fs) >= 0.24.0 with crate(nix/fs) < 0.25.0~)", - "(crate(nix/mman) >= 0.24.0 with crate(nix/mman) < 0.25.0~)", - "(crate(pci-driver) >= 0.1.2 with crate(pci-driver) < 0.2.0~)", - "(crate(pci-driver/vfio) >= 0.1.2 with crate(pci-driver/vfio) < 0.2.0~)", - "(crate(memmap2/default) >= 0.1.0 with crate(memmap2/default) < 0.6.0~)", - "(crate(virtio-bindings/default) >= 0.1.0 with crate(virtio-bindings/default) < 0.2.0~)", - "(crate(virtio-bindings/virtio-v5_0_0) >= 0.1.0 with crate(virtio-bindings/virtio-v5_0_0) < 0.2.0~)", - }, - ), - # default features with dev-dependencies - ( - "zola-0.16.1.json", - FeatureFlags(), - True, - { - "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", - "(crate(anyhow/default) >= 1.0.56 with crate(anyhow/default) < 2.0.0~)", - "(crate(ahash/default) >= 0.8.0 with crate(ahash/default) < 0.9.0~)", - "(crate(ammonia/default) >= 3.0.0 with crate(ammonia/default) < 4.0.0~)", - "(crate(atty/default) >= 0.2.11 with crate(atty/default) < 0.3.0~)", - "(crate(base64/default) >= 0.13.0 with crate(base64/default) < 0.14.0~)", - "(crate(csv/default) >= 1.0.0 with crate(csv/default) < 2.0.0~)", - "(crate(elasticlunr-rs/default) >= 3.0.0 with crate(elasticlunr-rs/default) < 4.0.0~)", - "(crate(elasticlunr-rs/da) >= 3.0.0 with crate(elasticlunr-rs/da) < 4.0.0~)", - "(crate(elasticlunr-rs/no) >= 3.0.0 with crate(elasticlunr-rs/no) < 4.0.0~)", - "(crate(elasticlunr-rs/de) >= 3.0.0 with crate(elasticlunr-rs/de) < 4.0.0~)", - "(crate(elasticlunr-rs/du) >= 3.0.0 with crate(elasticlunr-rs/du) < 4.0.0~)", - "(crate(elasticlunr-rs/es) >= 3.0.0 with crate(elasticlunr-rs/es) < 4.0.0~)", - "(crate(elasticlunr-rs/fi) >= 3.0.0 with crate(elasticlunr-rs/fi) < 4.0.0~)", - "(crate(elasticlunr-rs/fr) >= 3.0.0 with crate(elasticlunr-rs/fr) < 4.0.0~)", - "(crate(elasticlunr-rs/it) >= 3.0.0 with crate(elasticlunr-rs/it) < 4.0.0~)", - "(crate(elasticlunr-rs/pt) >= 3.0.0 with crate(elasticlunr-rs/pt) < 4.0.0~)", - "(crate(elasticlunr-rs/ro) >= 3.0.0 with crate(elasticlunr-rs/ro) < 4.0.0~)", - "(crate(elasticlunr-rs/ru) >= 3.0.0 with crate(elasticlunr-rs/ru) < 4.0.0~)", - "(crate(elasticlunr-rs/sv) >= 3.0.0 with crate(elasticlunr-rs/sv) < 4.0.0~)", - "(crate(elasticlunr-rs/tr) >= 3.0.0 with crate(elasticlunr-rs/tr) < 4.0.0~)", - "(crate(filetime/default) >= 0.2.0 with crate(filetime/default) < 0.3.0~)", - "(crate(gh-emoji/default) >= 1.0.0 with crate(gh-emoji/default) < 2.0.0~)", - "(crate(glob/default) >= 0.3.0 with crate(glob/default) < 0.4.0~)", - "(crate(globset/default) >= 0.4.0 with crate(globset/default) < 0.5.0~)", - "(crate(image/default) >= 0.24.0 with crate(image/default) < 0.25.0~)", - "(crate(lexical-sort/default) >= 0.3.0 with crate(lexical-sort/default) < 0.4.0~)", - "(crate(minify-html/default) >= 0.9.0 with crate(minify-html/default) < 0.10.0~)", - "(crate(nom-bibtex/default) >= 0.3.0 with crate(nom-bibtex/default) < 0.4.0~)", - "(crate(num-format/default) >= 0.4.0 with crate(num-format/default) < 0.5.0~)", - "(crate(once_cell/default) >= 1.0.0 with crate(once_cell/default) < 2.0.0~)", - "(crate(percent-encoding/default) >= 2.0.0 with crate(percent-encoding/default) < 3.0.0~)", - "(crate(pulldown-cmark) >= 0.9.0 with crate(pulldown-cmark) < 0.10.0~)", - "(crate(pulldown-cmark/simd) >= 0.9.0 with crate(pulldown-cmark/simd) < 0.10.0~)", - "(crate(quickxml_to_serde/default) >= 0.5.0 with crate(quickxml_to_serde/default) < 0.6.0~)", - "(crate(rayon/default) >= 1.0.0 with crate(rayon/default) < 2.0.0~)", - "(crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0~)", - "(crate(relative-path/default) >= 1.0.0 with crate(relative-path/default) < 2.0.0~)", - "(crate(reqwest) >= 0.11.0 with crate(reqwest) < 0.12.0~)", - "(crate(reqwest/blocking) >= 0.11.0 with crate(reqwest/blocking) < 0.12.0~)", - "(crate(reqwest/rustls-tls) >= 0.11.0 with crate(reqwest/rustls-tls) < 0.12.0~)", - "(crate(sass-rs/default) >= 0.2.0 with crate(sass-rs/default) < 0.3.0~)", - "(crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0~)", - "(crate(serde_yaml/default) >= 0.9.0 with crate(serde_yaml/default) < 0.10.0~)", - "(crate(sha2/default) >= 0.10.0 with crate(sha2/default) < 0.11.0~)", - "(crate(slug/default) >= 0.1.0 with crate(slug/default) < 0.2.0~)", - "(crate(svg_metadata/default) >= 0.4.0 with crate(svg_metadata/default) < 0.5.0~)", - "(crate(syntect/default) >= 5.0.0 with crate(syntect/default) < 6.0.0~)", - "(crate(tera/default) >= 1.0.0 with crate(tera/default) < 2.0.0~)", - "(crate(tera/preserve_order) >= 1.0.0 with crate(tera/preserve_order) < 2.0.0~)", - "(crate(termcolor/default) >= 1.0.4 with crate(termcolor/default) < 2.0.0~)", - "(crate(time/default) >= 0.3.0 with crate(time/default) < 0.4.0~)", - "(crate(time/macros) >= 0.3.0 with crate(time/macros) < 0.4.0~)", - "(crate(toml/default) >= 0.5.0 with crate(toml/default) < 0.6.0~)", - "(crate(unic-langid/default) >= 0.9.0 with crate(unic-langid/default) < 0.10.0~)", - "(crate(unicode-segmentation/default) >= 1.2.0 with crate(unicode-segmentation/default) < 2.0.0~)", - "(crate(url/default) >= 2.0.0 with crate(url/default) < 3.0.0~)", - "(crate(walkdir/default) >= 2.0.0 with crate(walkdir/default) < 3.0.0~)", - "(crate(webp/default) >= 0.2.0 with crate(webp/default) < 0.3.0~)", - "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", - "(crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0~)", - "(crate(tempfile/default) >= 3.3.0 with crate(tempfile/default) < 4.0.0~)", - "(crate(test-case/default) >= 2.0.0 with crate(test-case/default) < 3.0.0~)", - "(crate(pest/default) >= 2.0.0 with crate(pest/default) < 3.0.0~)", - "(crate(pest_derive/default) >= 2.0.0 with crate(pest_derive/default) < 3.0.0~)", - "(crate(insta/default) >= 1.12.0 with crate(insta/default) < 2.0.0~)", - "(crate(mockito/default) >= 0.31.0 with crate(mockito/default) < 0.32.0~)", - "(crate(kamadak-exif/default) >= 0.5.4 with crate(kamadak-exif/default) < 0.6.0~)", - "(crate(path-slash/default) >= 0.2.0 with crate(path-slash/default) < 0.3.0~)", - "(crate(clap/default) >= 3.0.0 with crate(clap/default) < 4.0.0~)", - "(crate(clap/derive) >= 3.0.0 with crate(clap/derive) < 4.0.0~)", - "(crate(ctrlc/default) >= 3.0.0 with crate(ctrlc/default) < 4.0.0~)", - "(crate(hyper) >= 0.14.1 with crate(hyper) < 0.15.0~)", - "(crate(hyper/runtime) >= 0.14.1 with crate(hyper/runtime) < 0.15.0~)", - "(crate(hyper/server) >= 0.14.1 with crate(hyper/server) < 0.15.0~)", - "(crate(hyper/http2) >= 0.14.1 with crate(hyper/http2) < 0.15.0~)", - "(crate(hyper/http1) >= 0.14.1 with crate(hyper/http1) < 0.15.0~)", - "(crate(mime/default) >= 0.3.16 with crate(mime/default) < 0.4.0~)", - "(crate(mime_guess/default) >= 2.0.0 with crate(mime_guess/default) < 3.0.0~)", - "(crate(notify/default) >= 4.0.0 with crate(notify/default) < 5.0.0~)", - "(crate(open/default) >= 3.0.0 with crate(open/default) < 4.0.0~)", - "(crate(pathdiff/default) >= 0.2.0 with crate(pathdiff/default) < 0.3.0~)", - "(crate(time/formatting) >= 0.3.0 with crate(time/formatting) < 0.4.0~)", - "(crate(time/local-offset) >= 0.3.0 with crate(time/local-offset) < 0.4.0~)", - "(crate(tokio) >= 1.0.1 with crate(tokio) < 2.0.0~)", - "(crate(tokio/rt) >= 1.0.1 with crate(tokio/rt) < 2.0.0~)", - "(crate(tokio/fs) >= 1.0.1 with crate(tokio/fs) < 2.0.0~)", - "(crate(tokio/time) >= 1.0.1 with crate(tokio/time) < 2.0.0~)", - "(crate(ws/default) >= 0.9.0 with crate(ws/default) < 0.10.0~)", - "(crate(same-file/default) >= 1.0.0 with crate(same-file/default) < 2.0.0~)", - "(crate(clap_complete/default) >= 3.0.0 with crate(clap_complete/default) < 4.0.0~)", - "(crate(winres/default) >= 0.1.0 with crate(winres/default) < 0.2.0~)", - }, - ), - # default features without dev-dependencies - ( - "zola-0.16.1.json", - FeatureFlags(), - False, - { - "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", - "(crate(anyhow/default) >= 1.0.56 with crate(anyhow/default) < 2.0.0~)", - "(crate(ahash/default) >= 0.8.0 with crate(ahash/default) < 0.9.0~)", - "(crate(ammonia/default) >= 3.0.0 with crate(ammonia/default) < 4.0.0~)", - "(crate(atty/default) >= 0.2.11 with crate(atty/default) < 0.3.0~)", - "(crate(base64/default) >= 0.13.0 with crate(base64/default) < 0.14.0~)", - "(crate(csv/default) >= 1.0.0 with crate(csv/default) < 2.0.0~)", - "(crate(elasticlunr-rs/default) >= 3.0.0 with crate(elasticlunr-rs/default) < 4.0.0~)", - "(crate(elasticlunr-rs/da) >= 3.0.0 with crate(elasticlunr-rs/da) < 4.0.0~)", - "(crate(elasticlunr-rs/no) >= 3.0.0 with crate(elasticlunr-rs/no) < 4.0.0~)", - "(crate(elasticlunr-rs/de) >= 3.0.0 with crate(elasticlunr-rs/de) < 4.0.0~)", - "(crate(elasticlunr-rs/du) >= 3.0.0 with crate(elasticlunr-rs/du) < 4.0.0~)", - "(crate(elasticlunr-rs/es) >= 3.0.0 with crate(elasticlunr-rs/es) < 4.0.0~)", - "(crate(elasticlunr-rs/fi) >= 3.0.0 with crate(elasticlunr-rs/fi) < 4.0.0~)", - "(crate(elasticlunr-rs/fr) >= 3.0.0 with crate(elasticlunr-rs/fr) < 4.0.0~)", - "(crate(elasticlunr-rs/it) >= 3.0.0 with crate(elasticlunr-rs/it) < 4.0.0~)", - "(crate(elasticlunr-rs/pt) >= 3.0.0 with crate(elasticlunr-rs/pt) < 4.0.0~)", - "(crate(elasticlunr-rs/ro) >= 3.0.0 with crate(elasticlunr-rs/ro) < 4.0.0~)", - "(crate(elasticlunr-rs/ru) >= 3.0.0 with crate(elasticlunr-rs/ru) < 4.0.0~)", - "(crate(elasticlunr-rs/sv) >= 3.0.0 with crate(elasticlunr-rs/sv) < 4.0.0~)", - "(crate(elasticlunr-rs/tr) >= 3.0.0 with crate(elasticlunr-rs/tr) < 4.0.0~)", - "(crate(filetime/default) >= 0.2.0 with crate(filetime/default) < 0.3.0~)", - "(crate(gh-emoji/default) >= 1.0.0 with crate(gh-emoji/default) < 2.0.0~)", - "(crate(glob/default) >= 0.3.0 with crate(glob/default) < 0.4.0~)", - "(crate(globset/default) >= 0.4.0 with crate(globset/default) < 0.5.0~)", - "(crate(image/default) >= 0.24.0 with crate(image/default) < 0.25.0~)", - "(crate(lexical-sort/default) >= 0.3.0 with crate(lexical-sort/default) < 0.4.0~)", - "(crate(minify-html/default) >= 0.9.0 with crate(minify-html/default) < 0.10.0~)", - "(crate(nom-bibtex/default) >= 0.3.0 with crate(nom-bibtex/default) < 0.4.0~)", - "(crate(num-format/default) >= 0.4.0 with crate(num-format/default) < 0.5.0~)", - "(crate(once_cell/default) >= 1.0.0 with crate(once_cell/default) < 2.0.0~)", - "(crate(percent-encoding/default) >= 2.0.0 with crate(percent-encoding/default) < 3.0.0~)", - "(crate(pulldown-cmark) >= 0.9.0 with crate(pulldown-cmark) < 0.10.0~)", - "(crate(pulldown-cmark/simd) >= 0.9.0 with crate(pulldown-cmark/simd) < 0.10.0~)", - "(crate(quickxml_to_serde/default) >= 0.5.0 with crate(quickxml_to_serde/default) < 0.6.0~)", - "(crate(rayon/default) >= 1.0.0 with crate(rayon/default) < 2.0.0~)", - "(crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0~)", - "(crate(relative-path/default) >= 1.0.0 with crate(relative-path/default) < 2.0.0~)", - "(crate(reqwest) >= 0.11.0 with crate(reqwest) < 0.12.0~)", - "(crate(reqwest/blocking) >= 0.11.0 with crate(reqwest/blocking) < 0.12.0~)", - "(crate(reqwest/rustls-tls) >= 0.11.0 with crate(reqwest/rustls-tls) < 0.12.0~)", - "(crate(sass-rs/default) >= 0.2.0 with crate(sass-rs/default) < 0.3.0~)", - "(crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0~)", - "(crate(serde_yaml/default) >= 0.9.0 with crate(serde_yaml/default) < 0.10.0~)", - "(crate(sha2/default) >= 0.10.0 with crate(sha2/default) < 0.11.0~)", - "(crate(slug/default) >= 0.1.0 with crate(slug/default) < 0.2.0~)", - "(crate(svg_metadata/default) >= 0.4.0 with crate(svg_metadata/default) < 0.5.0~)", - "(crate(syntect/default) >= 5.0.0 with crate(syntect/default) < 6.0.0~)", - "(crate(tera/default) >= 1.0.0 with crate(tera/default) < 2.0.0~)", - "(crate(tera/preserve_order) >= 1.0.0 with crate(tera/preserve_order) < 2.0.0~)", - "(crate(termcolor/default) >= 1.0.4 with crate(termcolor/default) < 2.0.0~)", - "(crate(time/default) >= 0.3.0 with crate(time/default) < 0.4.0~)", - "(crate(time/macros) >= 0.3.0 with crate(time/macros) < 0.4.0~)", - "(crate(toml/default) >= 0.5.0 with crate(toml/default) < 0.6.0~)", - "(crate(unic-langid/default) >= 0.9.0 with crate(unic-langid/default) < 0.10.0~)", - "(crate(unicode-segmentation/default) >= 1.2.0 with crate(unicode-segmentation/default) < 2.0.0~)", - "(crate(url/default) >= 2.0.0 with crate(url/default) < 3.0.0~)", - "(crate(walkdir/default) >= 2.0.0 with crate(walkdir/default) < 3.0.0~)", - "(crate(webp/default) >= 0.2.0 with crate(webp/default) < 0.3.0~)", - "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", - "(crate(pest/default) >= 2.0.0 with crate(pest/default) < 3.0.0~)", - "(crate(pest_derive/default) >= 2.0.0 with crate(pest_derive/default) < 3.0.0~)", - "(crate(kamadak-exif/default) >= 0.5.4 with crate(kamadak-exif/default) < 0.6.0~)", - "(crate(clap/default) >= 3.0.0 with crate(clap/default) < 4.0.0~)", - "(crate(clap/derive) >= 3.0.0 with crate(clap/derive) < 4.0.0~)", - "(crate(ctrlc/default) >= 3.0.0 with crate(ctrlc/default) < 4.0.0~)", - "(crate(hyper) >= 0.14.1 with crate(hyper) < 0.15.0~)", - "(crate(hyper/runtime) >= 0.14.1 with crate(hyper/runtime) < 0.15.0~)", - "(crate(hyper/server) >= 0.14.1 with crate(hyper/server) < 0.15.0~)", - "(crate(hyper/http2) >= 0.14.1 with crate(hyper/http2) < 0.15.0~)", - "(crate(hyper/http1) >= 0.14.1 with crate(hyper/http1) < 0.15.0~)", - "(crate(mime/default) >= 0.3.16 with crate(mime/default) < 0.4.0~)", - "(crate(mime_guess/default) >= 2.0.0 with crate(mime_guess/default) < 3.0.0~)", - "(crate(notify/default) >= 4.0.0 with crate(notify/default) < 5.0.0~)", - "(crate(open/default) >= 3.0.0 with crate(open/default) < 4.0.0~)", - "(crate(pathdiff/default) >= 0.2.0 with crate(pathdiff/default) < 0.3.0~)", - "(crate(time/formatting) >= 0.3.0 with crate(time/formatting) < 0.4.0~)", - "(crate(time/local-offset) >= 0.3.0 with crate(time/local-offset) < 0.4.0~)", - "(crate(tokio) >= 1.0.1 with crate(tokio) < 2.0.0~)", - "(crate(tokio/rt) >= 1.0.1 with crate(tokio/rt) < 2.0.0~)", - "(crate(tokio/fs) >= 1.0.1 with crate(tokio/fs) < 2.0.0~)", - "(crate(tokio/time) >= 1.0.1 with crate(tokio/time) < 2.0.0~)", - "(crate(ws/default) >= 0.9.0 with crate(ws/default) < 0.10.0~)", - "(crate(clap_complete/default) >= 3.0.0 with crate(clap_complete/default) < 4.0.0~)", - "(crate(winres/default) >= 0.1.0 with crate(winres/default) < 0.2.0~)", - }, - ), - ], - ids=short_repr, -) -def test_rpm_workspace_buildrequires(filename: str, flags: FeatureFlags, with_dev_deps: bool, expected: set[str]): - metadata = load_metadata_from_resource(filename) - assert workspace_buildrequires(metadata, flags, with_dev_deps) == expected - - -@pytest.mark.parametrize( - "filename,expected", - [ - ( - "ahash-0.8.3.json", - {"default", "atomic-polyfill", "compile-time-rng", "const-random", "getrandom", "no-rng", "runtime-rng", "serde", "std"}, - ), - ( - "assert_cmd-2.0.8.json", - {"default", "color", "color-auto"}, - ), - ( - "assert_fs-1.0.10.json", - {"default", "color", "color-auto"}, - ), - ( - "autocfg-1.1.0.json", - {"default"}, - ), - ( - "bstr-1.2.0.json", - {"default", "alloc", "serde", "std", "unicode"}, - ), - ( - "cfg-if-1.0.0.json", - {"default", "compiler_builtins", "core", "rustc-dep-of-std"}, - ), - ( - "clap-4.1.4.json", - { - "default", - "cargo", - "color", - "debug", - "deprecated", - "derive", - "env", - "error-context", - "help", - "std", - "string", - "suggestions", - "unicode", - "unstable-doc", - "unstable-grouped", - "unstable-replace", - "unstable-v5", - "usage", - "wrap_help", - }, - ), - ( - "gstreamer-0.19.7.json", - {"default", "dox", "serde", "serde_bytes", "v1_16", "v1_18", "v1_20", "v1_22"}, - ), - ( - "human-panic-1.1.0.json", - {"default", "color", "nightly"}, - ), - ( - "hyperfine-1.15.0.json", - set(), - ), - ( - "libc-0.2.139.json", - {"default", "align", "const-extern-fn", "extra_traits", "rustc-dep-of-std", "rustc-std-workspace-core", "std", "use_std"}, - ), - ( - "predicates-2.1.5.json", - {"default", "color", "color-auto", "diff", "float-cmp", "normalize-line-endings", "regex", "unstable"}, - ), - ( - "proc-macro2-1.0.50.json", - {"default", "nightly", "proc-macro", "span-locations"}, - ), - ( - "quote-1.0.23.json", - {"default", "proc-macro"}, - ), - ( - "rand-0.8.5.json", - { - "default", - "alloc", - "getrandom", - "libc", - "log", - "min_const_gen", - "nightly", - "packed_simd", - "rand_chacha", - "serde", - "serde1", - "simd_support", - "small_rng", - "std", - "std_rng", - }, - ), - ( - "rand_core-0.6.4.json", - {"default", "alloc", "getrandom", "serde", "serde1", "std"}, - ), - ( - "rpm-sequoia-1.2.0.json", - set(), - ), - ( - "rust_decimal-1.28.0.json", - { - "default", - "arbitrary", - "borsh", - "bytecheck", - "byteorder", - "bytes", - "c-repr", - "db-diesel-mysql", - "db-diesel-postgres", - "db-diesel1-mysql", - "db-diesel1-postgres", - "db-diesel2-mysql", - "db-diesel2-postgres", - "db-postgres", - "db-tokio-postgres", - "diesel1", - "diesel2", - "legacy-ops", - "maths", - "maths-nopanic", - "postgres", - "rand", - "rkyv", - "rkyv-safe", - "rocket", - "rocket-traits", - "rust-fuzz", - "serde", - "serde-arbitrary-precision", - "serde-bincode", - "serde-float", - "serde-str", - "serde-with-arbitrary-precision", - "serde-with-float", - "serde-with-str", - "serde_json", - "std", - "tokio-pg", - "tokio-postgres", - }, - ), - ( - "rustix-0.36.8.json", - { - "default", - "all-apis", - "all-impls", - "alloc", - "cc", - "compiler_builtins", - "core", - "fs", - "fs-err", - "io-lifetimes", - "io_uring", - "itoa", - "libc", - "libc_errno", - "mm", - "net", - "once_cell", - "os_pipe", - "param", - "process", - "procfs", - "rand", - "runtime", - "rustc-dep-of-std", - "std", - "termios", - "thread", - "time", - "use-libc", - "use-libc-auxv", - }, - ), - ( - "serde-1.0.152.json", - {"default", "alloc", "derive", "rc", "serde_derive", "std", "unstable"}, - ), - ( - "serde_derive-1.0.152.json", - {"default", "deserialize_in_place"}, - ), - ( - "syn-1.0.107.json", - { - "default", - "clone-impls", - "derive", - "extra-traits", - "fold", - "full", - "parsing", - "printing", - "proc-macro", - "quote", - "test", - "visit", - "visit-mut", - }, - ), - ( - "time-0.3.17.json", - { - "default", - "alloc", - "formatting", - "large-dates", - "local-offset", - "macros", - "parsing", - "quickcheck", - "rand", - "serde", - "serde-human-readable", - "serde-well-known", - "std", - "wasm-bindgen", - }, - ), - ( - "tokio-1.25.0.json", - { - "default", - "bytes", - "fs", - "full", - "io-std", - "io-util", - "libc", - "macros", - "memchr", - "mio", - "net", - "num_cpus", - "parking_lot", - "process", - "rt", - "rt-multi-thread", - "signal", - "signal-hook-registry", - "socket2", - "stats", - "sync", - "test-util", - "time", - "tokio-macros", - "tracing", - "windows-sys", - }, - ), - ( - "unicode-xid-0.2.4.json", - {"default", "bench", "no_std"}, - ), - ( - "zbus-3.8.0.json", - { - "default", - "async-executor", - "async-io", - "async-lock", - "async-task", - "chrono", - "gvariant", - "lazy_static", - "quick-xml", - "serde-xml-rs", - "time", - "tokio", - "tokio-vsock", - "url", - "uuid", - "vsock", - "windows-gdbus", - "xml", - }, - ), - ( - "zoxide-0.9.0.json", - set(), - ), - ], - ids=short_repr, -) -def test_devel_subpackage_names(filename: str, expected: set[str]): - metadata = load_metadata_from_resource(filename) - assert devel_subpackage_names(metadata.packages[0]) == expected - - -@pytest.mark.parametrize( - "filename,expected", - [ - ( - "ahash-0.8.3.json", - { - "cargo", - "(crate(cfg-if/default) >= 1.0.0 with crate(cfg-if/default) < 2.0.0~)", - "(crate(once_cell) >= 1.13.1 with crate(once_cell) < 2.0.0~)", - "(crate(once_cell/unstable) >= 1.13.1 with crate(once_cell/unstable) < 2.0.0~)", - "(crate(once_cell/alloc) >= 1.13.1 with crate(once_cell/alloc) < 2.0.0~)", - "(crate(version_check/default) >= 0.9.4 with crate(version_check/default) < 0.10.0~)", - }, - ), - ( - "assert_cmd-2.0.8.json", - { - "cargo", - "(crate(bstr/default) >= 1.0.1 with crate(bstr/default) < 2.0.0~)", - "(crate(doc-comment/default) >= 0.3.0 with crate(doc-comment/default) < 0.4.0~)", - "(crate(predicates) >= 2.1.0 with crate(predicates) < 3.0.0~)", - "(crate(predicates/diff) >= 2.1.0 with crate(predicates/diff) < 3.0.0~)", - "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", - "(crate(predicates-tree/default) >= 1.0.0 with crate(predicates-tree/default) < 2.0.0~)", - "(crate(wait-timeout/default) >= 0.2.0 with crate(wait-timeout/default) < 0.3.0~)", - }, - ), - ( - "assert_fs-1.0.10.json", - { - "cargo", - "(crate(doc-comment/default) >= 0.3.0 with crate(doc-comment/default) < 0.4.0~)", - "(crate(globwalk/default) >= 0.8.0 with crate(globwalk/default) < 0.9.0~)", - "(crate(predicates) >= 2.0.3 with crate(predicates) < 3.0.0~)", - "(crate(predicates/diff) >= 2.0.3 with crate(predicates/diff) < 3.0.0~)", - "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", - "(crate(predicates-tree/default) >= 1.0.0 with crate(predicates-tree/default) < 2.0.0~)", - "(crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0~)", - }, - ), - ( - "autocfg-1.1.0.json", - { - "cargo", - }, - ), - ( - "bstr-1.2.0.json", - {"cargo", "(crate(memchr) >= 2.4.0 with crate(memchr) < 3.0.0~)"}, - ), - ( - "cfg-if-1.0.0.json", - { - "cargo", - }, - ), - ( - "clap-4.1.4.json", - { - "cargo", - "(crate(bitflags/default) >= 1.2.0 with crate(bitflags/default) < 2.0.0~)", - "(crate(clap_lex/default) >= 0.3.0 with crate(clap_lex/default) < 0.4.0~)", - }, - ), - ( - "gstreamer-0.19.7.json", - { - "cargo", - "(crate(bitflags/default) >= 1.0.0 with crate(bitflags/default) < 2.0.0~)", - "(crate(cfg-if/default) >= 1.0.0 with crate(cfg-if/default) < 2.0.0~)", - "(crate(gstreamer-sys/default) >= 0.19.0 with crate(gstreamer-sys/default) < 0.20.0~)", - "(crate(futures-channel/default) >= 0.3.0 with crate(futures-channel/default) < 0.4.0~)", - "(crate(futures-core/default) >= 0.3.0 with crate(futures-core/default) < 0.4.0~)", - "(crate(futures-util) >= 0.3.0 with crate(futures-util) < 0.4.0~)", - "(crate(glib/default) >= 0.16.2 with crate(glib/default) < 0.17.0~)", - "(crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0~)", - "(crate(muldiv/default) >= 1.0.0 with crate(muldiv/default) < 2.0.0~)", - "(crate(num-integer) >= 0.1.0 with crate(num-integer) < 0.2.0~)", - "(crate(num-rational) >= 0.4.0 with crate(num-rational) < 0.5.0~)", - "(crate(once_cell/default) >= 1.0.0 with crate(once_cell/default) < 2.0.0~)", - "(crate(option-operations/default) >= 0.5.0 with crate(option-operations/default) < 0.6.0~)", - "(crate(paste/default) >= 1.0.0 with crate(paste/default) < 2.0.0~)", - "(crate(pretty-hex/default) >= 0.3.0 with crate(pretty-hex/default) < 0.4.0~)", - "(crate(thiserror/default) >= 1.0.0 with crate(thiserror/default) < 2.0.0~)", - }, - ), - ( - "human-panic-1.1.0.json", - { - "cargo", - "(crate(backtrace/default) >= 0.3.9 with crate(backtrace/default) < 0.4.0~)", - "(crate(os_info/default) >= 2.0.6 with crate(os_info/default) < 3.0.0~)", - "(crate(serde/default) >= 1.0.79 with crate(serde/default) < 2.0.0~)", - "(crate(serde_derive/default) >= 1.0.79 with crate(serde_derive/default) < 2.0.0~)", - "(crate(toml/default) >= 0.5.0 with crate(toml/default) < 0.6.0~)", - "(crate(uuid) >= 0.8.0 with crate(uuid) < 0.9.0~)", - "(crate(uuid/v4) >= 0.8.0 with crate(uuid/v4) < 0.9.0~)", - }, - ), - ( - "libc-0.2.139.json", - { - "cargo", - }, - ), - ( - "predicates-2.1.5.json", - { - "cargo", - "(crate(itertools/default) >= 0.10.0 with crate(itertools/default) < 0.11.0~)", - "(crate(predicates-core/default) >= 1.0.0 with crate(predicates-core/default) < 2.0.0~)", - }, - ), - ( - "proc-macro2-1.0.50.json", - { - "cargo", - "(crate(unicode-ident/default) >= 1.0.0 with crate(unicode-ident/default) < 2.0.0~)", - }, - ), - ( - "quote-1.0.23.json", - { - "cargo", - "(crate(proc-macro2) >= 1.0.40 with crate(proc-macro2) < 2.0.0~)", - }, - ), - ( - "rand-0.8.5.json", - { - "cargo", - "(crate(rand_core/default) >= 0.6.0 with crate(rand_core/default) < 0.7.0~)", - }, - ), - ( - "rand_core-0.6.4.json", - { - "cargo", - }, - ), - ( - "rust_decimal-1.28.0.json", - { - "cargo", - "(crate(arrayvec) >= 0.7.0 with crate(arrayvec) < 0.8.0~)", - "(crate(num-traits) >= 0.2.0 with crate(num-traits) < 0.3.0~)", - "(crate(num-traits/i128) >= 0.2.0 with crate(num-traits/i128) < 0.3.0~)", - }, - ), - ( - "rustix-0.36.8.json", - { - "cargo", - "(crate(bitflags/default) >= 1.2.1 with crate(bitflags/default) < 2.0.0~)", - "(crate(linux-raw-sys) >= 0.1.2 with crate(linux-raw-sys) < 0.2.0~)", - "(crate(linux-raw-sys/errno) >= 0.1.2 with crate(linux-raw-sys/errno) < 0.2.0~)", - "(crate(linux-raw-sys/general) >= 0.1.2 with crate(linux-raw-sys/general) < 0.2.0~)", - "(crate(linux-raw-sys/ioctl) >= 0.1.2 with crate(linux-raw-sys/ioctl) < 0.2.0~)", - "(crate(linux-raw-sys/no_std) >= 0.1.2 with crate(linux-raw-sys/no_std) < 0.2.0~)", - "(crate(libc/default) >= 0.2.133 with crate(libc/default) < 0.3.0~)", - "(crate(libc/extra_traits) >= 0.2.133 with crate(libc/extra_traits) < 0.3.0~)", - "(crate(errno) >= 0.2.8 with crate(errno) < 0.3.0~)", - "(crate(windows-sys/default) >= 0.45.0 with crate(windows-sys/default) < 0.46.0~)", - "(crate(windows-sys/Win32_Foundation) >= 0.45.0 with crate(windows-sys/Win32_Foundation) < 0.46.0~)", - "(crate(windows-sys/Win32_Networking_WinSock) >= 0.45.0 with crate(windows-sys/Win32_Networking_WinSock) < 0.46.0~)", - "(crate(windows-sys/Win32_NetworkManagement_IpHelper) >= 0.45.0 with crate(windows-sys/Win32_NetworkManagement_IpHelper) < 0.46.0~)", - "(crate(windows-sys/Win32_System_Threading) >= 0.45.0 with crate(windows-sys/Win32_System_Threading) < 0.46.0~)", - }, - ), - ( - "serde-1.0.152.json", - { - "cargo", - }, - ), - ( - "serde_derive-1.0.152.json", - { - "cargo", - "(crate(proc-macro2/default) >= 1.0.0 with crate(proc-macro2/default) < 2.0.0~)", - "(crate(quote/default) >= 1.0.0 with crate(quote/default) < 2.0.0~)", - "(crate(syn/default) >= 1.0.104 with crate(syn/default) < 2.0.0~)", - }, - ), - ( - "syn-1.0.107.json", - { - "cargo", - "(crate(proc-macro2) >= 1.0.46 with crate(proc-macro2) < 2.0.0~)", - "(crate(unicode-ident/default) >= 1.0.0 with crate(unicode-ident/default) < 2.0.0~)", - }, - ), - ( - "time-0.3.17.json", - { - "cargo", - "crate(time-core/default) = 0.1.0", - }, - ), - ( - "tokio-1.25.0.json", - { - "cargo", - "(crate(pin-project-lite/default) >= 0.2.0 with crate(pin-project-lite/default) < 0.3.0~)", - "(crate(autocfg/default) >= 1.1.0 with crate(autocfg/default) < 2.0.0~)", - "(crate(windows-sys/default) >= 0.42.0 with crate(windows-sys/default) < 0.43.0~)", - "(crate(windows-sys/Win32_Foundation) >= 0.42.0 with crate(windows-sys/Win32_Foundation) < 0.43.0~)", - "(crate(windows-sys/Win32_Security_Authorization) >= 0.42.0 with crate(windows-sys/Win32_Security_Authorization) < 0.43.0~)", - }, - ), - ( - "unicode-xid-0.2.4.json", - { - "cargo", - }, - ), - ( - "zbus-3.8.0.json", - { - "cargo", - "(crate(async-broadcast/default) >= 0.5.0 with crate(async-broadcast/default) < 0.6.0~)", - "(crate(async-recursion/default) >= 1.0.0 with crate(async-recursion/default) < 2.0.0~)", - "(crate(async-trait/default) >= 0.1.58 with crate(async-trait/default) < 0.2.0~)", - "(crate(byteorder/default) >= 1.4.3 with crate(byteorder/default) < 2.0.0~)", - "(crate(derivative/default) >= 2.2.0 with crate(derivative/default) < 3.0.0~)", - "(crate(dirs/default) >= 4.0.0 with crate(dirs/default) < 5.0.0~)", - "(crate(enumflags2/default) >= 0.7.5 with crate(enumflags2/default) < 0.8.0~)", - "(crate(enumflags2/serde) >= 0.7.5 with crate(enumflags2/serde) < 0.8.0~)", - "(crate(event-listener/default) >= 2.5.3 with crate(event-listener/default) < 3.0.0~)", - "(crate(futures-core/default) >= 0.3.25 with crate(futures-core/default) < 0.4.0~)", - "(crate(futures-sink/default) >= 0.3.25 with crate(futures-sink/default) < 0.4.0~)", - "(crate(futures-util) >= 0.3.25 with crate(futures-util) < 0.4.0~)", - "(crate(futures-util/sink) >= 0.3.25 with crate(futures-util/sink) < 0.4.0~)", - "(crate(futures-util/std) >= 0.3.25 with crate(futures-util/std) < 0.4.0~)", - "(crate(hex/default) >= 0.4.3 with crate(hex/default) < 0.5.0~)", - "(crate(nix/default) >= 0.25.0 with crate(nix/default) < 0.26.0~)", - "(crate(once_cell/default) >= 1.4.0 with crate(once_cell/default) < 2.0.0~)", - "(crate(ordered-stream/default) >= 0.1.4 with crate(ordered-stream/default) < 0.2.0~)", - "(crate(rand/default) >= 0.8.5 with crate(rand/default) < 0.9.0~)", - "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", - "(crate(serde_repr/default) >= 0.1.9 with crate(serde_repr/default) < 0.2.0~)", - "(crate(sha1/default) >= 0.10.5 with crate(sha1/default) < 0.11.0~)", - "(crate(sha1/std) >= 0.10.5 with crate(sha1/std) < 0.11.0~)", - "(crate(static_assertions/default) >= 1.1.0 with crate(static_assertions/default) < 2.0.0~)", - "(crate(tracing/default) >= 0.1.37 with crate(tracing/default) < 0.2.0~)", - "crate(zbus_macros/default) = 3.8.0", - "(crate(zbus_names/default) >= 2.5.0 with crate(zbus_names/default) < 3.0.0~)", - "(crate(zvariant) >= 3.10.0 with crate(zvariant) < 4.0.0~)", - "(crate(zvariant/enumflags2) >= 3.10.0 with crate(zvariant/enumflags2) < 4.0.0~)", - "(crate(uds_windows/default) >= 1.0.2 with crate(uds_windows/default) < 2.0.0~)", - "(crate(winapi/default) >= 0.3.0 with crate(winapi/default) < 0.4.0~)", - "(crate(winapi/handleapi) >= 0.3.0 with crate(winapi/handleapi) < 0.4.0~)", - "(crate(winapi/iphlpapi) >= 0.3.0 with crate(winapi/iphlpapi) < 0.4.0~)", - "(crate(winapi/memoryapi) >= 0.3.0 with crate(winapi/memoryapi) < 0.4.0~)", - "(crate(winapi/processthreadsapi) >= 0.3.0 with crate(winapi/processthreadsapi) < 0.4.0~)", - "(crate(winapi/sddl) >= 0.3.0 with crate(winapi/sddl) < 0.4.0~)", - "(crate(winapi/securitybaseapi) >= 0.3.0 with crate(winapi/securitybaseapi) < 0.4.0~)", - "(crate(winapi/synchapi) >= 0.3.0 with crate(winapi/synchapi) < 0.4.0~)", - "(crate(winapi/tcpmib) >= 0.3.0 with crate(winapi/tcpmib) < 0.4.0~)", - "(crate(winapi/winbase) >= 0.3.0 with crate(winapi/winbase) < 0.4.0~)", - "(crate(winapi/winerror) >= 0.3.0 with crate(winapi/winerror) < 0.4.0~)", - "(crate(winapi/winsock2) >= 0.3.0 with crate(winapi/winsock2) < 0.4.0~)", - }, - ), - ], - ids=short_repr, -) -def test_requires_crate(filename: str, expected: set[str]): - metadata = load_metadata_from_resource(filename) - assert _requires_crate(metadata.packages[0]) == expected - - -@pytest.mark.parametrize( - "filename,feature,expected", - [ - ( - "ahash-0.8.3.json", - "default", - { - "cargo", - "crate(ahash) = 0.8.3", - "crate(ahash/std) = 0.8.3", - "crate(ahash/runtime-rng) = 0.8.3", - }, - ), - ( - "ahash-0.8.3.json", - "atomic-polyfill", - { - "cargo", - "crate(ahash) = 0.8.3", - "(crate(atomic-polyfill/default) >= 1.0.1 with crate(atomic-polyfill/default) < 2.0.0~)", - "(crate(once_cell/atomic-polyfill) >= 1.13.1 with crate(once_cell/atomic-polyfill) < 2.0.0~)", - }, - ), - ( - "ahash-0.8.3.json", - "compile-time-rng", - { - "cargo", - "crate(ahash) = 0.8.3", - "crate(ahash/const-random) = 0.8.3", - }, - ), - ( - "ahash-0.8.3.json", - "const-random", - { - "cargo", - "crate(ahash) = 0.8.3", - "(crate(const-random/default) >= 0.1.12 with crate(const-random/default) < 0.2.0~)", - }, - ), - ( - "ahash-0.8.3.json", - "getrandom", - { - "cargo", - "crate(ahash) = 0.8.3", - "(crate(getrandom/default) >= 0.2.7 with crate(getrandom/default) < 0.3.0~)", - }, - ), - ( - "ahash-0.8.3.json", - "no-rng", - { - "cargo", - "crate(ahash) = 0.8.3", - }, - ), - ( - "ahash-0.8.3.json", - "runtime-rng", - { - "cargo", - "crate(ahash) = 0.8.3", - "crate(ahash/getrandom) = 0.8.3", - }, - ), - ( - "ahash-0.8.3.json", - "serde", - { - "cargo", - "crate(ahash) = 0.8.3", - "(crate(serde/default) >= 1.0.117 with crate(serde/default) < 2.0.0~)", - }, - ), - ( - "ahash-0.8.3.json", - "std", - { - "cargo", - "crate(ahash) = 0.8.3", - }, - ), - ( - "assert_cmd-2.0.8.json", - "default", - { - "cargo", - "crate(assert_cmd) = 2.0.8", - }, - ), - ( - "assert_cmd-2.0.8.json", - "color", - { - "cargo", - "crate(assert_cmd) = 2.0.8", - "crate(concolor/default) = 0.0.11", - "(crate(yansi/default) >= 0.5.1 with crate(yansi/default) < 0.6.0~)", - "crate(concolor/std) = 0.0.11" if CARGO_BUGGY_RESOLVER else "(crate(concolor/std) = 0.0.11 if crate(concolor) = 0.0.11)", - "(crate(predicates/color) >= 2.1.0 with crate(predicates/color) < 3.0.0~)", - }, - ), - ( - "assert_cmd-2.0.8.json", - "color-auto", - { - "cargo", - "crate(assert_cmd) = 2.0.8", - "crate(assert_cmd/color) = 2.0.8", - "crate(concolor/auto) = 0.0.11" if CARGO_BUGGY_RESOLVER else "(crate(concolor/auto) = 0.0.11 if crate(concolor) = 0.0.11)", - }, - ), - ( - "assert_fs-1.0.10.json", - "default", - { - "cargo", - "crate(assert_fs) = 1.0.10", - }, - ), - ( - "assert_fs-1.0.10.json", - "color", - { - "cargo", - "crate(assert_fs) = 1.0.10", - "crate(concolor/default) = 0.0.11", - "(crate(yansi/default) >= 0.5.0 with crate(yansi/default) < 0.6.0~)", - "(crate(predicates/color) >= 2.0.3 with crate(predicates/color) < 3.0.0~)", - }, - ), - ( - "assert_fs-1.0.10.json", - "color-auto", - { - "cargo", - "crate(assert_fs) = 1.0.10", - "crate(assert_fs/color) = 1.0.10", - "crate(concolor/auto) = 0.0.11" if CARGO_BUGGY_RESOLVER else "(crate(concolor/auto) = 0.0.11 if crate(concolor) = 0.0.11)", - }, - ), - ( - "autocfg-1.1.0.json", - "default", - { - "cargo", - "crate(autocfg) = 1.1.0", - }, - ), - ( - "bstr-1.2.0.json", - "default", - { - "cargo", - "crate(bstr) = 1.2.0", - "crate(bstr/std) = 1.2.0", - "crate(bstr/unicode) = 1.2.0", - }, - ), - ( - "bstr-1.2.0.json", - "alloc", - { - "cargo", - "crate(bstr) = 1.2.0", - "(crate(serde/alloc) >= 1.0.85 with crate(serde/alloc) < 2.0.0~)" - if CARGO_BUGGY_RESOLVER - else "((crate(serde/alloc) >= 1.0.85 with crate(serde/alloc) < 2.0.0~) if (crate(serde) >= 1.0.85 with crate(serde) < 2.0.0~))", - }, - ), - ( - "bstr-1.2.0.json", - "serde", - { - "cargo", - "crate(bstr) = 1.2.0", - "(crate(serde) >= 1.0.85 with crate(serde) < 2.0.0~)", - }, - ), - ( - "bstr-1.2.0.json", - "std", - { - "cargo", - "crate(bstr) = 1.2.0", - "crate(bstr/alloc) = 1.2.0", - "(crate(memchr/std) >= 2.4.0 with crate(memchr/std) < 3.0.0~)", - "(crate(serde/std) >= 1.0.85 with crate(serde/std) < 2.0.0~)" - if CARGO_BUGGY_RESOLVER - else "((crate(serde/std) >= 1.0.85 with crate(serde/std) < 2.0.0~) if (crate(serde) >= 1.0.85 with crate(serde) < 2.0.0~))", - }, - ), - ( - "bstr-1.2.0.json", - "unicode", - { - "cargo", - "crate(bstr) = 1.2.0", - "(crate(once_cell/default) >= 1.14.0 with crate(once_cell/default) < 2.0.0~)", - "(crate(regex-automata) >= 0.1.5 with crate(regex-automata) < 0.2.0~)", - }, - ), - ( - "cfg-if-1.0.0.json", - "default", - { - "cargo", - "crate(cfg-if) = 1.0.0", - }, - ), - ( - "cfg-if-1.0.0.json", - "compiler_builtins", - { - "cargo", - "crate(cfg-if) = 1.0.0", - "(crate(compiler_builtins/default) >= 0.1.2 with crate(compiler_builtins/default) < 0.2.0~)", - }, - ), - ( - "cfg-if-1.0.0.json", - "core", - { - "cargo", - "crate(cfg-if) = 1.0.0", - "(crate(rustc-std-workspace-core/default) >= 1.0.0 with crate(rustc-std-workspace-core/default) < 2.0.0~)", - }, - ), - ( - "cfg-if-1.0.0.json", - "rustc-dep-of-std", - { - "cargo", - "crate(cfg-if) = 1.0.0", - "crate(cfg-if/core) = 1.0.0", - "crate(cfg-if/compiler_builtins) = 1.0.0", - }, - ), - ( - "clap-4.1.4.json", - "default", - { - "cargo", - "crate(clap) = 4.1.4", - "crate(clap/std) = 4.1.4", - "crate(clap/color) = 4.1.4", - "crate(clap/help) = 4.1.4", - "crate(clap/usage) = 4.1.4", - "crate(clap/error-context) = 4.1.4", - "crate(clap/suggestions) = 4.1.4", - }, - ), - ( - "clap-4.1.4.json", - "cargo", - { - "cargo", - "crate(clap) = 4.1.4", - "(crate(once_cell/default) >= 1.12.0 with crate(once_cell/default) < 2.0.0~)", - }, - ), - ( - "clap-4.1.4.json", - "color", - { - "cargo", - "crate(clap) = 4.1.4", - "(crate(is-terminal/default) >= 0.4.1 with crate(is-terminal/default) < 0.5.0~)", - "(crate(termcolor/default) >= 1.1.1 with crate(termcolor/default) < 2.0.0~)", - }, - ), - ( - "clap-4.1.4.json", - "debug", - { - "cargo", - "crate(clap) = 4.1.4", - "(crate(backtrace/default) >= 0.3.0 with crate(backtrace/default) < 0.4.0~)", - "crate(clap_derive/debug) = 4.1.0" - if CARGO_BUGGY_RESOLVER - else "(crate(clap_derive/debug) = 4.1.0 if crate(clap_derive) = 4.1.0)", - }, - ), - ( - "clap-4.1.4.json", - "deprecated", - { - "cargo", - "crate(clap) = 4.1.4", - "crate(clap_derive/deprecated) = 4.1.0" - if CARGO_BUGGY_RESOLVER - else "(crate(clap_derive/deprecated) = 4.1.0 if crate(clap_derive) = 4.1.0)", - }, - ), - ( - "clap-4.1.4.json", - "derive", - { - "cargo", - "crate(clap) = 4.1.4", - "crate(clap_derive/default) = 4.1.0", - "(crate(once_cell/default) >= 1.12.0 with crate(once_cell/default) < 2.0.0~)", - }, - ), - ( - "clap-4.1.4.json", - "env", - { - "cargo", - "crate(clap) = 4.1.4", - }, - ), - ( - "clap-4.1.4.json", - "error-context", - { - "cargo", - "crate(clap) = 4.1.4", - }, - ), - ( - "clap-4.1.4.json", - "help", - { - "cargo", - "crate(clap) = 4.1.4", - }, - ), - ( - "clap-4.1.4.json", - "std", - { - "cargo", - "crate(clap) = 4.1.4", - }, - ), - ( - "clap-4.1.4.json", - "string", - { - "cargo", - "crate(clap) = 4.1.4", - }, - ), - ( - "clap-4.1.4.json", - "suggestions", - { - "cargo", - "crate(clap) = 4.1.4", - "crate(clap/error-context) = 4.1.4", - "(crate(strsim/default) >= 0.10.0 with crate(strsim/default) < 0.11.0~)", - }, - ), - ( - "clap-4.1.4.json", - "unicode", - { - "cargo", - "crate(clap) = 4.1.4", - "(crate(unicode-width/default) >= 0.1.9 with crate(unicode-width/default) < 0.2.0~)", - "(crate(unicase/default) >= 2.6.0 with crate(unicase/default) < 3.0.0~)", - }, - ), - ( - "clap-4.1.4.json", - "unstable-doc", - { - "cargo", - "crate(clap) = 4.1.4", - "crate(clap/derive) = 4.1.4", - "crate(clap/cargo) = 4.1.4", - "crate(clap/wrap_help) = 4.1.4", - "crate(clap/env) = 4.1.4", - "crate(clap/unicode) = 4.1.4", - "crate(clap/string) = 4.1.4", - "crate(clap/unstable-replace) = 4.1.4", - }, - ), - ( - "clap-4.1.4.json", - "unstable-grouped", - { - "cargo", - "crate(clap) = 4.1.4", - }, - ), - ( - "clap-4.1.4.json", - "unstable-replace", - { - "cargo", - "crate(clap) = 4.1.4", - }, - ), - ( - "clap-4.1.4.json", - "unstable-v5", - { - "cargo", - "crate(clap) = 4.1.4", - "crate(clap/deprecated) = 4.1.4", - "crate(clap_derive/unstable-v5) = 4.1.0" - if CARGO_BUGGY_RESOLVER - else "(crate(clap_derive/unstable-v5) = 4.1.0 if crate(clap_derive) = 4.1.0)", - }, - ), - ( - "clap-4.1.4.json", - "usage", - { - "cargo", - "crate(clap) = 4.1.4", - }, - ), - ( - "clap-4.1.4.json", - "wrap_help", - { - "cargo", - "crate(clap) = 4.1.4", - "crate(clap/help) = 4.1.4", - "(crate(terminal_size/default) >= 0.2.1 with crate(terminal_size/default) < 0.3.0~)", - }, - ), - ( - "gstreamer-0.19.7.json", - "default", - { - "cargo", - "crate(gstreamer) = 0.19.7", - }, - ), - ( - "gstreamer-0.19.7.json", - "dox", - { - "cargo", - "crate(gstreamer) = 0.19.7", - "crate(gstreamer/serde) = 0.19.7", - "(crate(glib/dox) >= 0.16.2 with crate(glib/dox) < 0.17.0~)", - "(crate(gstreamer-sys/dox) >= 0.19.0 with crate(gstreamer-sys/dox) < 0.20.0~)", - }, - ), - ( - "gstreamer-0.19.7.json", - "serde", - { - "cargo", - "crate(gstreamer) = 0.19.7", - "crate(gstreamer/serde_bytes) = 0.19.7", - "(crate(num-rational/serde) >= 0.4.0 with crate(num-rational/serde) < 0.5.0~)", - "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", - }, - ), - ( - "gstreamer-0.19.7.json", - "serde_bytes", - { - "cargo", - "crate(gstreamer) = 0.19.7", - "(crate(serde_bytes/default) >= 0.11.0 with crate(serde_bytes/default) < 0.12.0~)", - }, - ), - ( - "gstreamer-0.19.7.json", - "v1_16", - { - "cargo", - "crate(gstreamer) = 0.19.7", - "(crate(gstreamer-sys/v1_16) >= 0.19.0 with crate(gstreamer-sys/v1_16) < 0.20.0~)", - }, - ), - ( - "gstreamer-0.19.7.json", - "v1_18", - { - "cargo", - "crate(gstreamer) = 0.19.7", - "crate(gstreamer/v1_16) = 0.19.7", - "(crate(gstreamer-sys/v1_18) >= 0.19.0 with crate(gstreamer-sys/v1_18) < 0.20.0~)", - }, - ), - ( - "gstreamer-0.19.7.json", - "v1_20", - { - "cargo", - "crate(gstreamer) = 0.19.7", - "crate(gstreamer/v1_18) = 0.19.7", - "(crate(gstreamer-sys/v1_20) >= 0.19.0 with crate(gstreamer-sys/v1_20) < 0.20.0~)", - }, - ), - ( - "gstreamer-0.19.7.json", - "v1_22", - { - "cargo", - "crate(gstreamer) = 0.19.7", - "crate(gstreamer/v1_20) = 0.19.7", - "(crate(gstreamer-sys/v1_22) >= 0.19.0 with crate(gstreamer-sys/v1_22) < 0.20.0~)", - }, - ), - ( - "human-panic-1.1.0.json", - "default", - { - "cargo", - "crate(human-panic) = 1.1.0", - "crate(human-panic/color) = 1.1.0", - }, - ), - ( - "human-panic-1.1.0.json", - "color", - { - "cargo", - "crate(human-panic) = 1.1.0", - "crate(concolor/default) = 0.0.11", - "crate(concolor/auto) = 0.0.11", - "(crate(termcolor/default) >= 1.0.4 with crate(termcolor/default) < 2.0.0~)", - }, - ), - ( - "human-panic-1.1.0.json", - "nightly", - { - "cargo", - "crate(human-panic) = 1.1.0", - }, - ), - ( - "libc-0.2.139.json", - "default", - { - "cargo", - "crate(libc) = 0.2.139", - "crate(libc/std) = 0.2.139", - }, - ), - ( - "libc-0.2.139.json", - "align", - { - "cargo", - "crate(libc) = 0.2.139", - }, - ), - ( - "libc-0.2.139.json", - "const-extern-fn", - { - "cargo", - "crate(libc) = 0.2.139", - }, - ), - ( - "libc-0.2.139.json", - "extra_traits", - { - "cargo", - "crate(libc) = 0.2.139", - }, - ), - ( - "libc-0.2.139.json", - "rustc-dep-of-std", - { - "cargo", - "crate(libc) = 0.2.139", - "crate(libc/align) = 0.2.139", - "crate(libc/rustc-std-workspace-core) = 0.2.139", - }, - ), - ( - "libc-0.2.139.json", - "rustc-std-workspace-core", - { - "cargo", - "crate(libc) = 0.2.139", - "(crate(rustc-std-workspace-core/default) >= 1.0.0 with crate(rustc-std-workspace-core/default) < 2.0.0~)", - }, - ), - ( - "libc-0.2.139.json", - "std", - { - "cargo", - "crate(libc) = 0.2.139", - }, - ), - ( - "libc-0.2.139.json", - "use_std", - { - "cargo", - "crate(libc) = 0.2.139", - "crate(libc/std) = 0.2.139", - }, - ), - ( - "predicates-2.1.5.json", - "default", - { - "cargo", - "crate(predicates) = 2.1.5", - "crate(predicates/diff) = 2.1.5", - "crate(predicates/regex) = 2.1.5", - "crate(predicates/float-cmp) = 2.1.5", - "crate(predicates/normalize-line-endings) = 2.1.5", - }, - ), - ( - "predicates-2.1.5.json", - "color", - { - "cargo", - "crate(predicates) = 2.1.5", - "crate(concolor/default) = 0.0.11", - "crate(concolor/std) = 0.0.11" if CARGO_BUGGY_RESOLVER else "(crate(concolor/std) = 0.0.11 if crate(concolor) = 0.0.11)", - "(crate(yansi/default) >= 0.5.1 with crate(yansi/default) < 0.6.0~)", - }, - ), - ( - "predicates-2.1.5.json", - "color-auto", - { - "cargo", - "crate(predicates) = 2.1.5", - "crate(predicates/color) = 2.1.5", - "crate(concolor/auto) = 0.0.11" if CARGO_BUGGY_RESOLVER else "(crate(concolor/auto) = 0.0.11 if crate(concolor) = 0.0.11)", - }, - ), - ( - "predicates-2.1.5.json", - "diff", - { - "cargo", - "crate(predicates) = 2.1.5", - "(crate(difflib/default) >= 0.4.0 with crate(difflib/default) < 0.5.0~)", - }, - ), - ( - "predicates-2.1.5.json", - "float-cmp", - { - "cargo", - "crate(predicates) = 2.1.5", - "(crate(float-cmp/default) >= 0.9.0 with crate(float-cmp/default) < 0.10.0~)", - }, - ), - ( - "predicates-2.1.5.json", - "normalize-line-endings", - { - "cargo", - "crate(predicates) = 2.1.5", - "(crate(normalize-line-endings/default) >= 0.3.0 with crate(normalize-line-endings/default) < 0.4.0~)", - }, - ), - ( - "predicates-2.1.5.json", - "regex", - { - "cargo", - "crate(predicates) = 2.1.5", - "(crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0~)", - }, - ), - ( - "predicates-2.1.5.json", - "unstable", - { - "cargo", - "crate(predicates) = 2.1.5", - }, - ), - ( - "proc-macro2-1.0.50.json", - "default", - { - "cargo", - "crate(proc-macro2) = 1.0.50", - "crate(proc-macro2/proc-macro) = 1.0.50", - }, - ), - ( - "proc-macro2-1.0.50.json", - "nightly", - { - "cargo", - "crate(proc-macro2) = 1.0.50", - }, - ), - ( - "proc-macro2-1.0.50.json", - "proc-macro", - { - "cargo", - "crate(proc-macro2) = 1.0.50", - }, - ), - ( - "proc-macro2-1.0.50.json", - "span-locations", - { - "cargo", - "crate(proc-macro2) = 1.0.50", - }, - ), - ( - "quote-1.0.23.json", - "default", - { - "cargo", - "crate(quote) = 1.0.23", - "crate(quote/proc-macro) = 1.0.23", - }, - ), - ( - "quote-1.0.23.json", - "proc-macro", - { - "cargo", - "crate(quote) = 1.0.23", - "(crate(proc-macro2/proc-macro) >= 1.0.40 with crate(proc-macro2/proc-macro) < 2.0.0~)", - }, - ), - ( - "rand-0.8.5.json", - "default", - { - "cargo", - "crate(rand) = 0.8.5", - "crate(rand/std) = 0.8.5", - "crate(rand/std_rng) = 0.8.5", - }, - ), - ( - "rand-0.8.5.json", - "alloc", - { - "cargo", - "crate(rand) = 0.8.5", - "(crate(rand_core/alloc) >= 0.6.0 with crate(rand_core/alloc) < 0.7.0~)", - }, - ), - ( - "rand-0.8.5.json", - "getrandom", - { - "cargo", - "crate(rand) = 0.8.5", - "(crate(rand_core/getrandom) >= 0.6.0 with crate(rand_core/getrandom) < 0.7.0~)", - }, - ), - ( - "rand-0.8.5.json", - "libc", - { - "cargo", - "crate(rand) = 0.8.5", - "(crate(libc) >= 0.2.22 with crate(libc) < 0.3.0~)", - }, - ), - ( - "rand-0.8.5.json", - "log", - { - "cargo", - "crate(rand) = 0.8.5", - "(crate(log/default) >= 0.4.4 with crate(log/default) < 0.5.0~)", - }, - ), - ( - "rand-0.8.5.json", - "min_const_gen", - { - "cargo", - "crate(rand) = 0.8.5", - }, - ), - ( - "rand-0.8.5.json", - "nightly", - { - "cargo", - "crate(rand) = 0.8.5", - }, - ), - ( - "rand-0.8.5.json", - "packed_simd", - { - "cargo", - "crate(rand) = 0.8.5", - "(crate(packed_simd_2/default) >= 0.3.7 with crate(packed_simd_2/default) < 0.4.0~)", - "(crate(packed_simd_2/into_bits) >= 0.3.7 with crate(packed_simd_2/into_bits) < 0.4.0~)", - }, - ), - ( - "rand-0.8.5.json", - "rand_chacha", - { - "cargo", - "crate(rand) = 0.8.5", - "(crate(rand_chacha) >= 0.3.0 with crate(rand_chacha) < 0.4.0~)", - }, - ), - ( - "rand-0.8.5.json", - "serde", - { - "cargo", - "crate(rand) = 0.8.5", - "(crate(serde/default) >= 1.0.103 with crate(serde/default) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.103 with crate(serde/derive) < 2.0.0~)", - }, - ), - ( - "rand-0.8.5.json", - "serde1", - { - "cargo", - "crate(rand) = 0.8.5", - "crate(rand/serde) = 0.8.5", - "(crate(rand_core/serde1) >= 0.6.0 with crate(rand_core/serde1) < 0.7.0~)", - }, - ), - ( - "rand-0.8.5.json", - "simd_support", - { - "cargo", - "crate(rand) = 0.8.5", - "crate(rand/packed_simd) = 0.8.5", - }, - ), - ( - "rand-0.8.5.json", - "small_rng", - { - "cargo", - "crate(rand) = 0.8.5", - }, - ), - ( - "rand-0.8.5.json", - "std", - { - "cargo", - "crate(rand) = 0.8.5", - "crate(rand/alloc) = 0.8.5", - "crate(rand/getrandom) = 0.8.5", - "crate(rand/libc) = 0.8.5", - "(crate(rand_core/std) >= 0.6.0 with crate(rand_core/std) < 0.7.0~)", - "(crate(rand_chacha/std) >= 0.3.0 with crate(rand_chacha/std) < 0.4.0~)", - }, - ), - ( - "rand-0.8.5.json", - "std_rng", - { - "cargo", - "crate(rand) = 0.8.5", - "crate(rand/rand_chacha) = 0.8.5", - }, - ), - ( - "rand_core-0.6.4.json", - "default", - { - "cargo", - "crate(rand_core) = 0.6.4", - }, - ), - ( - "rand_core-0.6.4.json", - "alloc", - { - "cargo", - "crate(rand_core) = 0.6.4", - }, - ), - ( - "rand_core-0.6.4.json", - "getrandom", - { - "cargo", - "crate(rand_core) = 0.6.4", - "(crate(getrandom/default) >= 0.2.0 with crate(getrandom/default) < 0.3.0~)", - }, - ), - ( - "rand_core-0.6.4.json", - "serde", - { - "cargo", - "crate(rand_core) = 0.6.4", - "(crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)", - "(crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)", - }, - ), - ( - "rand_core-0.6.4.json", - "serde1", - { - "cargo", - "crate(rand_core) = 0.6.4", - "crate(rand_core/serde) = 0.6.4", - }, - ), - ( - "rand_core-0.6.4.json", - "std", - { - "cargo", - "crate(rand_core) = 0.6.4", - "crate(rand_core/alloc) = 0.6.4", - "crate(rand_core/getrandom) = 0.6.4", - "(crate(getrandom/std) >= 0.2.0 with crate(getrandom/std) < 0.3.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "default", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/serde) = 1.28.0", - "crate(rust_decimal/std) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "arbitrary", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "(crate(arbitrary) >= 1.0.0 with crate(arbitrary) < 2.0.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "borsh", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "(crate(borsh) >= 0.9.0 with crate(borsh) < 0.10.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "bytecheck", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "(crate(bytecheck) >= 0.6.0 with crate(bytecheck) < 0.7.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "byteorder", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "(crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "bytes", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "(crate(bytes) >= 1.0.0 with crate(bytes) < 2.0.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "c-repr", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "db-diesel-mysql", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/db-diesel1-mysql) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "db-diesel-postgres", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/db-diesel1-postgres) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "db-diesel1-mysql", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/std) = 1.28.0", - "(crate(diesel/mysql) >= 1.0.0 with crate(diesel/mysql) < 2.0.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "db-diesel1-postgres", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/std) = 1.28.0", - "(crate(diesel/postgres) >= 1.0.0 with crate(diesel/postgres) < 2.0.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "db-diesel2-mysql", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/std) = 1.28.0", - "(crate(diesel/mysql) >= 2.0.0 with crate(diesel/mysql) < 3.0.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "db-diesel2-postgres", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/std) = 1.28.0", - "(crate(diesel/postgres) >= 2.0.0 with crate(diesel/postgres) < 3.0.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "db-postgres", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/byteorder) = 1.28.0", - "crate(rust_decimal/bytes) = 1.28.0", - "crate(rust_decimal/postgres) = 1.28.0", - "crate(rust_decimal/std) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "db-tokio-postgres", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/byteorder) = 1.28.0", - "crate(rust_decimal/bytes) = 1.28.0", - "crate(rust_decimal/postgres) = 1.28.0", - "crate(rust_decimal/std) = 1.28.0", - "crate(rust_decimal/tokio-postgres) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "diesel1", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "(crate(diesel) >= 1.0.0 with crate(diesel) < 2.0.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "diesel2", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "(crate(diesel) >= 2.0.0 with crate(diesel) < 3.0.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "legacy-ops", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "maths", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "maths-nopanic", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/maths) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "postgres", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "(crate(postgres) >= 0.19.0 with crate(postgres) < 0.20.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "rand", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "(crate(rand) >= 0.8.0 with crate(rand) < 0.9.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "rkyv", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "(crate(rkyv) >= 0.7.0 with crate(rkyv) < 0.8.0~)", - "(crate(rkyv/size_32) >= 0.7.0 with crate(rkyv/size_32) < 0.8.0~)", - "(crate(rkyv/std) >= 0.7.0 with crate(rkyv/std) < 0.8.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "rkyv-safe", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/bytecheck) = 1.28.0", - "(crate(rkyv/validation) >= 0.7.0 with crate(rkyv/validation) < 0.8.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "rocket", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "(crate(rocket) >= 0.5.0~rc.1 with crate(rocket) < 0.6.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "rocket-traits", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/rocket) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "rust-fuzz", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/arbitrary) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "serde-arbitrary-precision", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/serde-with-arbitrary-precision) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "serde-bincode", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/serde-str) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "serde-float", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/serde-with-float) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "serde-str", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/serde-with-str) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "serde-with-arbitrary-precision", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/serde) = 1.28.0", - "(crate(serde_json/arbitrary_precision) >= 1.0.0 with crate(serde_json/arbitrary_precision) < 2.0.0~)", - "(crate(serde_json/std) >= 1.0.0 with crate(serde_json/std) < 2.0.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "serde-with-float", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/serde) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "serde-with-str", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/serde) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "serde_json", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "(crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0~)", - }, - ), - ( - "rust_decimal-1.28.0.json", - "std", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "(crate(arrayvec/std) >= 0.7.0 with crate(arrayvec/std) < 0.8.0~)", - "(crate(borsh/std) >= 0.9.0 with crate(borsh/std) < 0.10.0~)" - if CARGO_BUGGY_RESOLVER - else "((crate(borsh/std) >= 0.9.0 with crate(borsh/std) < 0.10.0~) if (crate(borsh) >= 0.9.0 with crate(borsh) < 0.10.0~))", - "(crate(bytecheck/std) >= 0.6.0 with crate(bytecheck/std) < 0.7.0~)" - if CARGO_BUGGY_RESOLVER - else "((crate(bytecheck/std) >= 0.6.0 with crate(bytecheck/std) < 0.7.0~) if (crate(bytecheck) >= 0.6.0 with crate(bytecheck) < 0.7.0~))", - "(crate(byteorder/std) >= 1.0.0 with crate(byteorder/std) < 2.0.0~)" - if CARGO_BUGGY_RESOLVER - else "((crate(byteorder/std) >= 1.0.0 with crate(byteorder/std) < 2.0.0~) if (crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0~))", - "(crate(bytes/std) >= 1.0.0 with crate(bytes/std) < 2.0.0~)" - if CARGO_BUGGY_RESOLVER - else "((crate(bytes/std) >= 1.0.0 with crate(bytes/std) < 2.0.0~) if (crate(bytes) >= 1.0.0 with crate(bytes) < 2.0.0~))", - "(crate(rand/std) >= 0.8.0 with crate(rand/std) < 0.9.0~)" - if CARGO_BUGGY_RESOLVER - else "((crate(rand/std) >= 0.8.0 with crate(rand/std) < 0.9.0~) if (crate(rand) >= 0.8.0 with crate(rand) < 0.9.0~))", - "(crate(rkyv/std) >= 0.7.0 with crate(rkyv/std) < 0.8.0~)" - if CARGO_BUGGY_RESOLVER - else "((crate(rkyv/std) >= 0.7.0 with crate(rkyv/std) < 0.8.0~) if (crate(rkyv) >= 0.7.0 with crate(rkyv) < 0.8.0~))", - "(crate(serde/std) >= 1.0.0 with crate(serde/std) < 2.0.0~)" - if CARGO_BUGGY_RESOLVER - else "((crate(serde/std) >= 1.0.0 with crate(serde/std) < 2.0.0~) if (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0~))", - "(crate(serde_json/std) >= 1.0.0 with crate(serde_json/std) < 2.0.0~)" - if CARGO_BUGGY_RESOLVER - else "((crate(serde_json/std) >= 1.0.0 with crate(serde_json/std) < 2.0.0~) if (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0~))", - }, - ), - ( - "rust_decimal-1.28.0.json", - "tokio-pg", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "crate(rust_decimal/db-tokio-postgres) = 1.28.0", - }, - ), - ( - "rust_decimal-1.28.0.json", - "tokio-postgres", - { - "cargo", - "crate(rust_decimal) = 1.28.0", - "(crate(tokio-postgres) >= 0.7.0 with crate(tokio-postgres) < 0.8.0~)", - }, - ), - ( - "rustix-0.36.8.json", - "default", - { - "cargo", - "crate(rustix) = 0.36.8", - "crate(rustix/std) = 0.36.8", - "crate(rustix/use-libc-auxv) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "all-apis", - { - "cargo", - "crate(rustix) = 0.36.8", - "crate(rustix/fs) = 0.36.8", - "crate(rustix/io_uring) = 0.36.8", - "crate(rustix/mm) = 0.36.8", - "crate(rustix/net) = 0.36.8", - "crate(rustix/param) = 0.36.8", - "crate(rustix/process) = 0.36.8", - "crate(rustix/procfs) = 0.36.8", - "crate(rustix/rand) = 0.36.8", - "crate(rustix/runtime) = 0.36.8", - "crate(rustix/termios) = 0.36.8", - "crate(rustix/thread) = 0.36.8", - "crate(rustix/time) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "all-impls", - { - "cargo", - "crate(rustix) = 0.36.8", - "crate(rustix/fs-err) = 0.36.8", - "crate(rustix/os_pipe) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "alloc", - { - "cargo", - "crate(rustix) = 0.36.8", - "(crate(rustc-std-workspace-alloc/default) >= 1.0.0 with crate(rustc-std-workspace-alloc/default) < 2.0.0~)", - }, - ), - ( - "rustix-0.36.8.json", - "cc", - { - "cargo", - "crate(rustix) = 0.36.8", - "(crate(cc/default) >= 1.0.68 with crate(cc/default) < 2.0.0~)", - }, - ), - ( - "rustix-0.36.8.json", - "compiler_builtins", - { - "cargo", - "crate(rustix) = 0.36.8", - "(crate(compiler_builtins/default) >= 0.1.49 with crate(compiler_builtins/default) < 0.2.0~)", - }, - ), - ( - "rustix-0.36.8.json", - "core", - { - "cargo", - "crate(rustix) = 0.36.8", - "(crate(rustc-std-workspace-core/default) >= 1.0.0 with crate(rustc-std-workspace-core/default) < 2.0.0~)", - }, - ), - ( - "rustix-0.36.8.json", - "fs", - { - "cargo", - "crate(rustix) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "fs-err", - { - "cargo", - "crate(rustix) = 0.36.8", - "(crate(io-lifetimes/fs-err) >= 1.0.0 with crate(io-lifetimes/fs-err) < 2.0.0~)", - }, - ), - ( - "rustix-0.36.8.json", - "io-lifetimes", - { - "cargo", - "crate(rustix) = 0.36.8", - "(crate(io-lifetimes) >= 1.0.0 with crate(io-lifetimes) < 2.0.0~)", - "(crate(io-lifetimes/close) >= 1.0.0 with crate(io-lifetimes/close) < 2.0.0~)", - }, - ), - ( - "rustix-0.36.8.json", - "io_uring", - { - "cargo", - "crate(rustix) = 0.36.8", - "crate(rustix/fs) = 0.36.8", - "crate(rustix/net) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "itoa", - { - "cargo", - "crate(rustix) = 0.36.8", - "(crate(itoa) >= 1.0.1 with crate(itoa) < 2.0.0~)", - }, - ), - ( - "rustix-0.36.8.json", - "libc", - { - "cargo", - "crate(rustix) = 0.36.8", - "(crate(libc/default) >= 0.2.133 with crate(libc/default) < 0.3.0~)", - "(crate(libc/extra_traits) >= 0.2.133 with crate(libc/extra_traits) < 0.3.0~)", - }, - ), - ( - "rustix-0.36.8.json", - "libc_errno", - { - "cargo", - "crate(rustix) = 0.36.8", - "(crate(errno) >= 0.2.8 with crate(errno) < 0.3.0~)", - }, - ), - ( - "rustix-0.36.8.json", - "mm", - { - "cargo", - "crate(rustix) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "net", - { - "cargo", - "crate(rustix) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "once_cell", - { - "cargo", - "crate(rustix) = 0.36.8", - "(crate(once_cell/default) >= 1.5.2 with crate(once_cell/default) < 2.0.0~)", - }, - ), - ( - "rustix-0.36.8.json", - "os_pipe", - { - "cargo", - "crate(rustix) = 0.36.8", - "(crate(io-lifetimes/os_pipe) >= 1.0.0 with crate(io-lifetimes/os_pipe) < 2.0.0~)", - }, - ), - ( - "rustix-0.36.8.json", - "param", - { - "cargo", - "crate(rustix) = 0.36.8", - "crate(rustix/fs) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "process", - { - "cargo", - "crate(rustix) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "procfs", - { - "cargo", - "crate(rustix) = 0.36.8", - "crate(rustix/once_cell) = 0.36.8", - "crate(rustix/itoa) = 0.36.8", - "crate(rustix/fs) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "rand", - { - "cargo", - "crate(rustix) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "runtime", - { - "cargo", - "crate(rustix) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "rustc-dep-of-std", - { - "cargo", - "crate(rustix) = 0.36.8", - "crate(rustix/core) = 0.36.8", - "crate(rustix/alloc) = 0.36.8", - "crate(rustix/compiler_builtins) = 0.36.8", - "(crate(linux-raw-sys/rustc-dep-of-std) >= 0.1.2 with crate(linux-raw-sys/rustc-dep-of-std) < 0.2.0~)", - "(crate(bitflags/rustc-dep-of-std) >= 1.2.1 with crate(bitflags/rustc-dep-of-std) < 2.0.0~)", - }, - ), - ( - "rustix-0.36.8.json", - "std", - { - "cargo", - "crate(rustix) = 0.36.8", - "crate(rustix/io-lifetimes) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "termios", - { - "cargo", - "crate(rustix) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "thread", - { - "cargo", - "crate(rustix) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "time", - { - "cargo", - "crate(rustix) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "use-libc", - { - "cargo", - "crate(rustix) = 0.36.8", - "crate(rustix/libc) = 0.36.8", - "crate(rustix/libc_errno) = 0.36.8", - }, - ), - ( - "rustix-0.36.8.json", - "use-libc-auxv", - { - "cargo", - "crate(rustix) = 0.36.8", - "crate(rustix/libc) = 0.36.8", - }, - ), - ( - "serde-1.0.152.json", - "default", - { - "cargo", - "crate(serde) = 1.0.152", - "crate(serde/std) = 1.0.152", - }, - ), - ( - "serde-1.0.152.json", - "alloc", - { - "cargo", - "crate(serde) = 1.0.152", - }, - ), - ( - "serde-1.0.152.json", - "derive", - { - "cargo", - "crate(serde) = 1.0.152", - "crate(serde/serde_derive) = 1.0.152", - }, - ), - ( - "serde-1.0.152.json", - "rc", - { - "cargo", - "crate(serde) = 1.0.152", - }, - ), - ( - "serde-1.0.152.json", - "serde_derive", - { - "cargo", - "crate(serde) = 1.0.152", - "crate(serde_derive/default) = 1.0.152", - }, - ), - ( - "serde-1.0.152.json", - "std", - { - "cargo", - "crate(serde) = 1.0.152", - }, - ), - ( - "serde-1.0.152.json", - "unstable", - { - "cargo", - "crate(serde) = 1.0.152", - }, - ), - ( - "serde_derive-1.0.152.json", - "default", - { - "cargo", - "crate(serde_derive) = 1.0.152", - }, - ), - ( - "serde_derive-1.0.152.json", - "deserialize_in_place", - { - "cargo", - "crate(serde_derive) = 1.0.152", - }, - ), - ( - "syn-1.0.107.json", - "default", - { - "cargo", - "crate(syn) = 1.0.107", - "crate(syn/derive) = 1.0.107", - "crate(syn/parsing) = 1.0.107", - "crate(syn/printing) = 1.0.107", - "crate(syn/clone-impls) = 1.0.107", - "crate(syn/proc-macro) = 1.0.107", - }, - ), - ( - "syn-1.0.107.json", - "clone-impls", - { - "cargo", - "crate(syn) = 1.0.107", - }, - ), - ( - "syn-1.0.107.json", - "derive", - { - "cargo", - "crate(syn) = 1.0.107", - }, - ), - ( - "syn-1.0.107.json", - "extra-traits", - { - "cargo", - "crate(syn) = 1.0.107", - }, - ), - ( - "syn-1.0.107.json", - "fold", - { - "cargo", - "crate(syn) = 1.0.107", - }, - ), - ( - "syn-1.0.107.json", - "full", - { - "cargo", - "crate(syn) = 1.0.107", - }, - ), - ( - "syn-1.0.107.json", - "parsing", - { - "cargo", - "crate(syn) = 1.0.107", - }, - ), - ( - "syn-1.0.107.json", - "printing", - { - "cargo", - "crate(syn) = 1.0.107", - "crate(syn/quote) = 1.0.107", - }, - ), - ( - "syn-1.0.107.json", - "proc-macro", - { - "cargo", - "crate(syn) = 1.0.107", - "(crate(proc-macro2/proc-macro) >= 1.0.46 with crate(proc-macro2/proc-macro) < 2.0.0~)", - "(crate(quote/proc-macro) >= 1.0.0 with crate(quote/proc-macro) < 2.0.0~)", - }, - ), - ( - "syn-1.0.107.json", - "quote", - { - "cargo", - "crate(syn) = 1.0.107", - "(crate(quote) >= 1.0.0 with crate(quote) < 2.0.0~)", - }, - ), - ( - "syn-1.0.107.json", - "test", - { - "cargo", - "crate(syn) = 1.0.107", - }, - ), - ( - "syn-1.0.107.json", - "visit", - { - "cargo", - "crate(syn) = 1.0.107", - }, - ), - ( - "syn-1.0.107.json", - "visit-mut", - { - "cargo", - "crate(syn) = 1.0.107", - }, - ), - ( - "time-0.3.17.json", - "default", - { - "cargo", - "crate(time) = 0.3.17", - "crate(time/std) = 0.3.17", - }, - ), - ( - "time-0.3.17.json", - "default", - { - "cargo", - "crate(time) = 0.3.17", - "crate(time/std) = 0.3.17", - }, - ), - ( - "time-0.3.17.json", - "alloc", - { - "cargo", - "crate(time) = 0.3.17", - "(crate(serde/alloc) >= 1.0.126 with crate(serde/alloc) < 2.0.0~)" - if CARGO_BUGGY_RESOLVER - else "((crate(serde/alloc) >= 1.0.126 with crate(serde/alloc) < 2.0.0~) if (crate(serde) >= 1.0.126 with crate(serde) < 2.0.0~))", - }, - ), - ( - "time-0.3.17.json", - "formatting", - { - "cargo", - "crate(time) = 0.3.17", - "crate(time/std) = 0.3.17", - "(crate(itoa/default) >= 1.0.1 with crate(itoa/default) < 2.0.0~)", - "crate(time-macros/formatting) = 0.2.6" - if CARGO_BUGGY_RESOLVER - else "(crate(time-macros/formatting) = 0.2.6 if crate(time-macros) = 0.2.6)", - }, - ), - ( - "time-0.3.17.json", - "large-dates", - { - "cargo", - "crate(time) = 0.3.17", - "crate(time-macros/large-dates) = 0.2.6" - if CARGO_BUGGY_RESOLVER - else "(crate(time-macros/large-dates) = 0.2.6 if crate(time-macros) = 0.2.6)", - }, - ), - ( - "time-0.3.17.json", - "local-offset", - { - "cargo", - "crate(time) = 0.3.17", - "crate(time/std) = 0.3.17", - "(crate(libc/default) >= 0.2.98 with crate(libc/default) < 0.3.0~)", - "(crate(num_threads/default) >= 0.1.2 with crate(num_threads/default) < 0.2.0~)", - }, - ), - ( - "time-0.3.17.json", - "macros", - { - "cargo", - "crate(time) = 0.3.17", - "crate(time-macros/default) = 0.2.6", - }, - ), - ( - "time-0.3.17.json", - "parsing", - { - "cargo", - "crate(time) = 0.3.17", - "crate(time-macros/parsing) = 0.2.6" - if CARGO_BUGGY_RESOLVER - else "(crate(time-macros/parsing) = 0.2.6 if crate(time-macros) = 0.2.6)", - }, - ), - ( - "time-0.3.17.json", - "rand", - { - "cargo", - "crate(time) = 0.3.17", - "(crate(rand) >= 0.8.4 with crate(rand) < 0.9.0~)", - }, - ), - ( - "time-0.3.17.json", - "serde", - { - "cargo", - "crate(time) = 0.3.17", - "(crate(serde) >= 1.0.126 with crate(serde) < 2.0.0~)", - "crate(time-macros/serde) = 0.2.6" - if CARGO_BUGGY_RESOLVER - else "(crate(time-macros/serde) = 0.2.6 if crate(time-macros) = 0.2.6)", - }, - ), - ( - "time-0.3.17.json", - "serde-human-readable", - { - "cargo", - "crate(time) = 0.3.17", - "crate(time/serde) = 0.3.17", - "crate(time/formatting) = 0.3.17", - "crate(time/parsing) = 0.3.17", - }, - ), - ( - "time-0.3.17.json", - "serde-well-known", - { - "cargo", - "crate(time) = 0.3.17", - "crate(time/serde) = 0.3.17", - "crate(time/formatting) = 0.3.17", - "crate(time/parsing) = 0.3.17", - }, - ), - ( - "time-0.3.17.json", - "std", - { - "cargo", - "crate(time) = 0.3.17", - "crate(time/alloc) = 0.3.17", - }, - ), - ( - "time-0.3.17.json", - "wasm-bindgen", - { - "cargo", - "crate(time) = 0.3.17", - "(crate(js-sys/default) >= 0.3.58 with crate(js-sys/default) < 0.4.0~)", - }, - ), - ( - "tokio-1.25.0.json", - "default", - { - "cargo", - "crate(tokio) = 1.25.0", - }, - ), - ( - "tokio-1.25.0.json", - "bytes", - { - "cargo", - "crate(tokio) = 1.25.0", - "(crate(bytes/default) >= 1.0.0 with crate(bytes/default) < 2.0.0~)", - }, - ), - ( - "tokio-1.25.0.json", - "fs", - { - "cargo", - "crate(tokio) = 1.25.0", - }, - ), - ( - "tokio-1.25.0.json", - "full", - { - "cargo", - "crate(tokio) = 1.25.0", - "crate(tokio/fs) = 1.25.0", - "crate(tokio/io-util) = 1.25.0", - "crate(tokio/io-std) = 1.25.0", - "crate(tokio/macros) = 1.25.0", - "crate(tokio/net) = 1.25.0", - "crate(tokio/parking_lot) = 1.25.0", - "crate(tokio/process) = 1.25.0", - "crate(tokio/rt) = 1.25.0", - "crate(tokio/rt-multi-thread) = 1.25.0", - "crate(tokio/signal) = 1.25.0", - "crate(tokio/sync) = 1.25.0", - "crate(tokio/time) = 1.25.0", - }, - ), - ( - "tokio-1.25.0.json", - "io-std", - { - "cargo", - "crate(tokio) = 1.25.0", - }, - ), - ( - "tokio-1.25.0.json", - "io-util", - { - "cargo", - "crate(tokio) = 1.25.0", - "crate(tokio/memchr) = 1.25.0", - "crate(tokio/bytes) = 1.25.0", - }, - ), - ( - "tokio-1.25.0.json", - "libc", - { - "cargo", - "crate(tokio) = 1.25.0", - "(crate(libc/default) >= 0.2.42 with crate(libc/default) < 0.3.0~)", - }, - ), - ( - "tokio-1.25.0.json", - "macros", - { - "cargo", - "crate(tokio) = 1.25.0", - "crate(tokio/tokio-macros) = 1.25.0", - }, - ), - ( - "tokio-1.25.0.json", - "memchr", - { - "cargo", - "crate(tokio) = 1.25.0", - "(crate(memchr/default) >= 2.2.0 with crate(memchr/default) < 3.0.0~)", - }, - ), - ( - "tokio-1.25.0.json", - "mio", - { - "cargo", - "crate(tokio) = 1.25.0", - "(crate(mio/default) >= 0.8.4 with crate(mio/default) < 0.9.0~)", - }, - ), - ( - "tokio-1.25.0.json", - "net", - { - "cargo", - "crate(tokio) = 1.25.0", - "crate(tokio/libc) = 1.25.0", - "crate(tokio/socket2) = 1.25.0", - "(crate(mio/os-poll) >= 0.8.4 with crate(mio/os-poll) < 0.9.0~)", - "(crate(mio/os-ext) >= 0.8.4 with crate(mio/os-ext) < 0.9.0~)", - "(crate(mio/net) >= 0.8.4 with crate(mio/net) < 0.9.0~)", - "(crate(windows-sys/Win32_Foundation) >= 0.42.0 with crate(windows-sys/Win32_Foundation) < 0.43.0~)", - "(crate(windows-sys/Win32_Security) >= 0.42.0 with crate(windows-sys/Win32_Security) < 0.43.0~)", - "(crate(windows-sys/Win32_Storage_FileSystem) >= 0.42.0 with crate(windows-sys/Win32_Storage_FileSystem) < 0.43.0~)", - "(crate(windows-sys/Win32_System_Pipes) >= 0.42.0 with crate(windows-sys/Win32_System_Pipes) < 0.43.0~)", - "(crate(windows-sys/Win32_System_SystemServices) >= 0.42.0 with crate(windows-sys/Win32_System_SystemServices) < 0.43.0~)", - }, - ), - ( - "tokio-1.25.0.json", - "num_cpus", - { - "cargo", - "crate(tokio) = 1.25.0", - "(crate(num_cpus/default) >= 1.8.0 with crate(num_cpus/default) < 2.0.0~)", - }, - ), - ( - "tokio-1.25.0.json", - "parking_lot", - { - "cargo", - "crate(tokio) = 1.25.0", - "(crate(parking_lot/default) >= 0.12.0 with crate(parking_lot/default) < 0.13.0~)", - }, - ), - ( - "tokio-1.25.0.json", - "process", - { - "cargo", - "crate(tokio) = 1.25.0", - "crate(tokio/bytes) = 1.25.0", - "crate(tokio/libc) = 1.25.0", - "crate(tokio/signal-hook-registry) = 1.25.0", - "(crate(mio/os-poll) >= 0.8.4 with crate(mio/os-poll) < 0.9.0~)", - "(crate(mio/os-ext) >= 0.8.4 with crate(mio/os-ext) < 0.9.0~)", - "(crate(mio/net) >= 0.8.4 with crate(mio/net) < 0.9.0~)", - "(crate(windows-sys/Win32_Foundation) >= 0.42.0 with crate(windows-sys/Win32_Foundation) < 0.43.0~)", - "(crate(windows-sys/Win32_System_Threading) >= 0.42.0 with crate(windows-sys/Win32_System_Threading) < 0.43.0~)", - "(crate(windows-sys/Win32_System_WindowsProgramming) >= 0.42.0 with crate(windows-sys/Win32_System_WindowsProgramming) < 0.43.0~)", - }, - ), - ( - "tokio-1.25.0.json", - "rt", - { - "cargo", - "crate(tokio) = 1.25.0", - }, - ), - ( - "tokio-1.25.0.json", - "rt-multi-thread", - { - "cargo", - "crate(tokio) = 1.25.0", - "crate(tokio/rt) = 1.25.0", - "crate(tokio/num_cpus) = 1.25.0", - }, - ), - ( - "tokio-1.25.0.json", - "signal", - { - "cargo", - "crate(tokio) = 1.25.0", - "crate(tokio/libc) = 1.25.0", - "crate(tokio/signal-hook-registry) = 1.25.0", - "(crate(mio/os-poll) >= 0.8.4 with crate(mio/os-poll) < 0.9.0~)", - "(crate(mio/os-ext) >= 0.8.4 with crate(mio/os-ext) < 0.9.0~)", - "(crate(mio/net) >= 0.8.4 with crate(mio/net) < 0.9.0~)", - "(crate(windows-sys/Win32_Foundation) >= 0.42.0 with crate(windows-sys/Win32_Foundation) < 0.43.0~)", - "(crate(windows-sys/Win32_System_Console) >= 0.42.0 with crate(windows-sys/Win32_System_Console) < 0.43.0~)", - }, - ), - ( - "tokio-1.25.0.json", - "signal-hook-registry", - { - "cargo", - "crate(tokio) = 1.25.0", - "(crate(signal-hook-registry/default) >= 1.1.1 with crate(signal-hook-registry/default) < 2.0.0~)", - }, - ), - ( - "tokio-1.25.0.json", - "socket2", - { - "cargo", - "crate(tokio) = 1.25.0", - "(crate(socket2/default) >= 0.4.4 with crate(socket2/default) < 0.5.0~)", - "(crate(socket2/all) >= 0.4.4 with crate(socket2/all) < 0.5.0~)", - }, - ), - ( - "tokio-1.25.0.json", - "stats", - { - "cargo", - "crate(tokio) = 1.25.0", - }, - ), - ( - "tokio-1.25.0.json", - "sync", - { - "cargo", - "crate(tokio) = 1.25.0", - }, - ), - ( - "tokio-1.25.0.json", - "test-util", - { - "cargo", - "crate(tokio) = 1.25.0", - "crate(tokio/rt) = 1.25.0", - "crate(tokio/sync) = 1.25.0", - "crate(tokio/time) = 1.25.0", - }, - ), - ( - "tokio-1.25.0.json", - "time", - { - "cargo", - "crate(tokio) = 1.25.0", - }, - ), - ( - "tokio-1.25.0.json", - "tokio-macros", - { - "cargo", - "crate(tokio) = 1.25.0", - "(crate(tokio-macros/default) >= 1.7.0 with crate(tokio-macros/default) < 2.0.0~)", - }, - ), - ( - "tokio-1.25.0.json", - "tracing", - { - "cargo", - "crate(tokio) = 1.25.0", - "(crate(tracing) >= 0.1.25 with crate(tracing) < 0.2.0~)", - "(crate(tracing/std) >= 0.1.25 with crate(tracing/std) < 0.2.0~)", - }, - ), - ( - "tokio-1.25.0.json", - "windows-sys", - { - "cargo", - "crate(tokio) = 1.25.0", - "(crate(windows-sys/default) >= 0.42.0 with crate(windows-sys/default) < 0.43.0~)", - }, - ), - ( - "unicode-xid-0.2.4.json", - "default", - { - "cargo", - "crate(unicode-xid) = 0.2.4", - }, - ), - ( - "unicode-xid-0.2.4.json", - "bench", - { - "cargo", - "crate(unicode-xid) = 0.2.4", - }, - ), - ( - "unicode-xid-0.2.4.json", - "no_std", - { - "cargo", - "crate(unicode-xid) = 0.2.4", - }, - ), - ( - "zbus-3.8.0.json", - "default", - { - "cargo", - "crate(zbus) = 3.8.0", - "crate(zbus/async-io) = 3.8.0", - }, - ), - ( - "zbus-3.8.0.json", - "async-executor", - { - "cargo", - "crate(zbus) = 3.8.0", - "(crate(async-executor/default) >= 1.5.0 with crate(async-executor/default) < 2.0.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "async-io", - { - "cargo", - "crate(zbus) = 3.8.0", - "crate(zbus/async-executor) = 3.8.0", - "crate(zbus/async-task) = 3.8.0", - "crate(zbus/async-lock) = 3.8.0", - "(crate(async-io/default) >= 1.12.0 with crate(async-io/default) < 2.0.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "async-lock", - { - "cargo", - "crate(zbus) = 3.8.0", - "(crate(async-lock/default) >= 2.6.0 with crate(async-lock/default) < 3.0.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "async-task", - { - "cargo", - "crate(zbus) = 3.8.0", - "(crate(async-task/default) >= 4.3.0 with crate(async-task/default) < 5.0.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "chrono", - { - "cargo", - "crate(zbus) = 3.8.0", - "(crate(zvariant/chrono) >= 3.10.0 with crate(zvariant/chrono) < 4.0.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "gvariant", - { - "cargo", - "crate(zbus) = 3.8.0", - "(crate(zvariant/gvariant) >= 3.10.0 with crate(zvariant/gvariant) < 4.0.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "lazy_static", - { - "cargo", - "crate(zbus) = 3.8.0", - "(crate(lazy_static/default) >= 1.4.0 with crate(lazy_static/default) < 2.0.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "quick-xml", - { - "cargo", - "crate(zbus) = 3.8.0", - "(crate(quick-xml/default) >= 0.27.1 with crate(quick-xml/default) < 0.28.0~)", - "(crate(quick-xml/serialize) >= 0.27.1 with crate(quick-xml/serialize) < 0.28.0~)", - "(crate(quick-xml/overlapped-lists) >= 0.27.1 with crate(quick-xml/overlapped-lists) < 0.28.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "serde-xml-rs", - { - "cargo", - "crate(zbus) = 3.8.0", - "(crate(serde-xml-rs/default) >= 0.4.1 with crate(serde-xml-rs/default) < 0.5.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "time", - { - "cargo", - "crate(zbus) = 3.8.0", - "(crate(zvariant/time) >= 3.10.0 with crate(zvariant/time) < 4.0.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "tokio", - { - "cargo", - "crate(zbus) = 3.8.0", - "crate(zbus/lazy_static) = 3.8.0", - "(crate(tokio/default) >= 1.21.2 with crate(tokio/default) < 2.0.0~)", - "(crate(tokio/rt) >= 1.21.2 with crate(tokio/rt) < 2.0.0~)", - "(crate(tokio/net) >= 1.21.2 with crate(tokio/net) < 2.0.0~)", - "(crate(tokio/time) >= 1.21.2 with crate(tokio/time) < 2.0.0~)", - "(crate(tokio/fs) >= 1.21.2 with crate(tokio/fs) < 2.0.0~)", - "(crate(tokio/io-util) >= 1.21.2 with crate(tokio/io-util) < 2.0.0~)", - "(crate(tokio/sync) >= 1.21.2 with crate(tokio/sync) < 2.0.0~)", - "(crate(tokio/tracing) >= 1.21.2 with crate(tokio/tracing) < 2.0.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "tokio-vsock", - { - "cargo", - "crate(zbus) = 3.8.0", - "crate(zbus/tokio) = 3.8.0", - "(crate(tokio-vsock/default) >= 0.3.3 with crate(tokio-vsock/default) < 0.4.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "url", - { - "cargo", - "crate(zbus) = 3.8.0", - "(crate(zvariant/url) >= 3.10.0 with crate(zvariant/url) < 4.0.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "uuid", - { - "cargo", - "crate(zbus) = 3.8.0", - "(crate(zvariant/uuid) >= 3.10.0 with crate(zvariant/uuid) < 4.0.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "vsock", - { - "cargo", - "crate(zbus) = 3.8.0", - "(crate(async-io/default) >= 1.12.0 with crate(async-io/default) < 2.0.0~)", - "(crate(vsock/default) >= 0.3.0 with crate(vsock/default) < 0.4.0~)", - }, - ), - ( - "zbus-3.8.0.json", - "windows-gdbus", - { - "cargo", - "crate(zbus) = 3.8.0", - }, - ), - ( - "zbus-3.8.0.json", - "xml", - { - "cargo", - "crate(zbus) = 3.8.0", - "crate(zbus/serde-xml-rs) = 3.8.0", - }, - ), - ], - ids=short_repr, -) -def test_requires_feature(filename: str, feature: str, expected: set[str]): - metadata = load_metadata_from_resource(filename) - assert _requires_feature(metadata.packages[0], feature) == expected - - -@pytest.mark.parametrize( - "filename,expected", - [ - ("ahash-0.8.3.json", "crate(ahash) = 0.8.3"), - ("assert_cmd-2.0.8.json", "crate(assert_cmd) = 2.0.8"), - ("assert_fs-1.0.10.json", "crate(assert_fs) = 1.0.10"), - ("autocfg-1.1.0.json", "crate(autocfg) = 1.1.0"), - ("bstr-1.2.0.json", "crate(bstr) = 1.2.0"), - ("cfg-if-1.0.0.json", "crate(cfg-if) = 1.0.0"), - ("clap-4.1.4.json", "crate(clap) = 4.1.4"), - ("gstreamer-0.19.7.json", "crate(gstreamer) = 0.19.7"), - ("human-panic-1.1.0.json", "crate(human-panic) = 1.1.0"), - ("libc-0.2.139.json", "crate(libc) = 0.2.139"), - ("predicates-2.1.5.json", "crate(predicates) = 2.1.5"), - ("proc-macro2-1.0.50.json", "crate(proc-macro2) = 1.0.50"), - ("quote-1.0.23.json", "crate(quote) = 1.0.23"), - ("rand-0.8.5.json", "crate(rand) = 0.8.5"), - ("rand_core-0.6.4.json", "crate(rand_core) = 0.6.4"), - ("rust_decimal-1.28.0.json", "crate(rust_decimal) = 1.28.0"), - ("rustix-0.36.8.json", "crate(rustix) = 0.36.8"), - ("serde-1.0.152.json", "crate(serde) = 1.0.152"), - ("serde_derive-1.0.152.json", "crate(serde_derive) = 1.0.152"), - ("syn-1.0.107.json", "crate(syn) = 1.0.107"), - ("time-0.3.17.json", "crate(time) = 0.3.17"), - ("tokio-1.25.0.json", "crate(tokio) = 1.25.0"), - ("unicode-xid-0.2.4.json", "crate(unicode-xid) = 0.2.4"), - ("zbus-3.8.0.json", "crate(zbus) = 3.8.0"), - ], - ids=short_repr, -) -def test_provides_crate(filename: str, expected: str): - metadata = load_metadata_from_resource(filename) - assert _provides_crate(metadata.packages[0]) == expected - - -@pytest.mark.parametrize( - "filename,expected", - [ - ("ahash-0.8.3.json", "crate(ahash/default) = 0.8.3"), - ("assert_cmd-2.0.8.json", "crate(assert_cmd/default) = 2.0.8"), - ("assert_fs-1.0.10.json", "crate(assert_fs/default) = 1.0.10"), - ("autocfg-1.1.0.json", "crate(autocfg/default) = 1.1.0"), - ("bstr-1.2.0.json", "crate(bstr/default) = 1.2.0"), - ("cfg-if-1.0.0.json", "crate(cfg-if/default) = 1.0.0"), - ("clap-4.1.4.json", "crate(clap/default) = 4.1.4"), - ("gstreamer-0.19.7.json", "crate(gstreamer/default) = 0.19.7"), - ("human-panic-1.1.0.json", "crate(human-panic/default) = 1.1.0"), - ("libc-0.2.139.json", "crate(libc/default) = 0.2.139"), - ("predicates-2.1.5.json", "crate(predicates/default) = 2.1.5"), - ("proc-macro2-1.0.50.json", "crate(proc-macro2/default) = 1.0.50"), - ("quote-1.0.23.json", "crate(quote/default) = 1.0.23"), - ("rand-0.8.5.json", "crate(rand/default) = 0.8.5"), - ("rand_core-0.6.4.json", "crate(rand_core/default) = 0.6.4"), - ("rust_decimal-1.28.0.json", "crate(rust_decimal/default) = 1.28.0"), - ("rustix-0.36.8.json", "crate(rustix/default) = 0.36.8"), - ("serde-1.0.152.json", "crate(serde/default) = 1.0.152"), - ("serde_derive-1.0.152.json", "crate(serde_derive/default) = 1.0.152"), - ("syn-1.0.107.json", "crate(syn/default) = 1.0.107"), - ("time-0.3.17.json", "crate(time/default) = 0.3.17"), - ("tokio-1.25.0.json", "crate(tokio/default) = 1.25.0"), - ("unicode-xid-0.2.4.json", "crate(unicode-xid/default) = 0.2.4"), - ("zbus-3.8.0.json", "crate(zbus/default) = 3.8.0"), - ], - ids=short_repr, -) -def test_provides_feature(filename: str, expected: str): - metadata = load_metadata_from_resource(filename) - assert _provides_feature(metadata.packages[0], "default") == expected