Documentation

Lake.Config.TargetConfig

structure Lake.TargetConfig (pkgName name : Lean.Name) :

A custom target's declarative configuration.

Instances For
    instance Lake.instInhabitedTargetConfig {a✝ a✝¹ : Lean.Name} :
    Inhabited (TargetConfig a✝ a✝¹)
    Equations
    @[inline]
    def Lake.mkTargetJobConfig {pkgName : Lean.Name} {α : Type} {name : Lean.Name} (build : NPackage pkgNameFetchM (Job α)) [h : FamilyOut CustomData (pkgName, name) (Job α)] :
    TargetConfig pkgName name

    A smart constructor for target configurations that generate CLI targets.

    Equations
    Instances For

      A dependently typed configuration based on its registered package and name.

      Instances For
        unsafe def Lake.OpaqueTargetConfig.unsafeGet {pkgName name : Lean.Name} :
        OpaqueTargetConfig pkgName nameTargetConfig pkgName name
        Equations
        Instances For
          @[implemented_by Lake.OpaqueTargetConfig.unsafeMk]
          opaque Lake.OpaqueTargetConfig.mk {pkgName name : Lean.Name} :
          TargetConfig pkgName nameOpaqueTargetConfig pkgName name
          unsafe def Lake.OpaqueTargetConfig.unsafeMk {pkgName name : Lean.Name} :
          TargetConfig pkgName nameOpaqueTargetConfig pkgName name
          Equations
          Instances For
            @[implemented_by Lake.OpaqueTargetConfig.unsafeGet]
            opaque Lake.OpaqueTargetConfig.get {pkgName name : Lean.Name} :
            OpaqueTargetConfig pkgName nameTargetConfig pkgName name
            def Lake.Package.findTargetConfig? (name : Lean.Name) (self : Package) :
            Option (TargetConfig self.name name)

            Try to find a target configuration in the package with the given name .

            Equations
            Instances For