module Bootsnap::CompileCache::YAML::Psych4::UnsafeLoad

def input_to_storage(contents, _)

def input_to_storage(contents, _)
  obj = ::YAML.unsafe_load(contents)
  packer = CompileCache::YAML.msgpack_factory.packer
  packer.pack(false) # not safe loaded
  begin
    packer.pack(obj)
  rescue NoMethodError, RangeError
    return UNCOMPILABLE # The object included things that we can't serialize
  end
  packer.to_s
end