(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* string -> t (** We should gradually add some more functions to handle common dirs here such the theories directories or share files. Abstracting it hereere does allow to use system-specific functionalities *) (** [exists file] checks if [file] exists *) val exists : t -> bool (** String representation *) val to_string : t -> string end (** Rocq runtime enviroment, including location of Rocq's Corelib *) type t type maybe_env = | Env of t | Boot (** Returns [None] if the environment has not been initialized. *) val initialized : unit -> maybe_env option (** Init, possibly with a user provided coqlib *) val init_with : coqlib:string option -> t (** Init if boot:false, possibly with a user provided coqlib. Incompatible arguments run [warn_ignored_coqlib] (ie with boot:true and coqlib:Some) *) val maybe_init : warn_ignored_coqlib:(unit -> unit) -> boot:bool -> coqlib:string option -> maybe_env (** Usual messsage used for warn_ignored_coqlib *) val ignored_coqlib_msg : string (** If the query list is empty, behave as [maybe_init]. Otherwise, print the queries. If the [usage] argument is [None], the queries must not be PrintHelp. If a query needs an environment, [boot] must not be [true]. If there are queries and none need an environment, returns [Ok Boot] even if [boot] was [false]. *) val print_queries_maybe_init : warn_ignored_coqlib:(unit -> unit) -> boot:bool -> coqlib:string option -> Usage.specific_usage option -> Usage.query list -> (maybe_env, string) result (** [Corelib directory] *) val corelib : t -> Path.t (** [plugins directory] *) val plugins : t -> Path.t (** [user contrib directory] *) val user_contrib : t -> Path.t (** [tool-specific directory] *) val tool : t -> string -> Path.t (** .cmi files needed for native compilation *) val native_cmi : t -> string -> Path.t (** The location of the revision file *) val revision : t -> Path.t (** rocq-runtime/lib directory, not sure if to keep this *) val runtimelib : t -> Path.t (** coq/lib directory, not sure if to keep this *) val coqlib : t -> Path.t (** [camlfind ()] is the path to the ocamlfind binary. *) val ocamlfind : unit -> string val print_config : ?prefix_var_name:string -> t -> out_channel -> unit val relocate : Coq_config.relocatable_path -> string val rocqbin : string