Build Info #
This module defines the Lake build info type and related utilities. Build info is what is the data passed to a Lake build function to facilitate the build.
Build Info & Keys #
Build Key Helper Constructors #
@[reducible, inline]
Equations
- Lake.Package.targetKey target self = Lake.BuildKey.packageTarget self.keyName target
Instances For
Build Info to Key #
@[reducible]
The key that identifies the build in the Lake build store.
Equations
- (Lake.BuildInfo.target p t).key = Lake.Package.targetKey t p
- (Lake.BuildInfo.facet t kind data f).key = t.facet f
Instances For
@[instance_reducible]
Equations
- Lake.instToStringBuildInfo = { toString := fun (x : Lake.BuildInfo) => toString x.key }
@[instance 100]
instance Lake.instFamilyDefBuildKeyBuildDataCustomTargetKeyNameCustomData {n t : Lean.Name} {p : NPackage n} :
FamilyDef BuildData (BuildKey.customTarget p.keyName t) (CustomData n t)
instance Lake.instFamilyDefBuildKeyBuildDataKeyTargetOfFamilyOutNameCustomData {n t : Lean.Name} {α : Type} {p : NPackage n} [FamilyOut (CustomData n) t α] :
FamilyDef BuildData (BuildInfo.target p.toPackage t).key α
instance Lake.instFamilyDefBuildKeyBuildDataKeyTargetOfFamilyOutPackageTarget {n t : Lean.Name} {α : Type} {p : NPackage n} [FamilyOut BuildData (BuildKey.packageTarget n t) α] :
FamilyDef BuildData (BuildInfo.target p.toPackage t).key α