What does the new "public" keyword actually do?

Compat.jl is a rather large dependency for a no-op. Here an alternative solution:

@static if VERSION ≥ v"1.11"
    # therein declare public identifiers
    include("public.jl")
end