cargo-semver-checks 0.2.2

Scan your Rust crate for semver violations.
SemverQuery(
    id: "enum_missing",
    human_readable_name: "pub enum removed or renamed",
    description: "A publicly-visible enum is no longer available under its prior name, which is a major breaking change for code that depends on it.",
    required_update: Major,
    query: r#"
    {
        CrateDiff {
            baseline {
                item {
                    ... on Enum {
                        visibility_limit @filter(op: "=", value: ["$public"]) @output
                        name @output @tag

                        span_: span @optional {
                            filename @output
                            begin_line @output
                        }
                    }
                }
            }
            current @fold @transform(op: "count") @filter(op: "=", value: ["$zero"]) {
                item {
                    ... on Enum {
                        visibility_limit @filter(op: "=", value: ["$public"])
                        name @filter(op: "=", value: ["%name"])
                    }
                }
            }
        }
    }"#,
    arguments: {
        "public": "public",
        "zero": 0,
    },
    error_message: "A publicly-visible enum is no longer available under its prior name. It may have been renamed or removed entirely.",
)