module Bootsnap::CompileCache::YAML::Psych3

def input_to_storage(contents, _)

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