(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* let dp = Safe_typing.dirpath_of_library clib in [("name", `String (Names.DirPath.to_string dp))]) (fun () ->import senv opac clib digest) () let unsafe_import senv clib digest = (* Admitted libraries are trusted for their declarations, but their bytecode is recompiled all the same, so that the trusted surface is exactly the same. *) let env = env_of_library senv clib in let vmtab, clib = vm_library_of env clib in let vmtab = Vmlibrary.inject (Vmlibrary.export vmtab) in let (_,senv) = Safe_typing.import clib vmtab digest senv in senv