fontmake uses glyphsLib to turn "bracket" layers into alternate UFO glyphs and accompanying designspace 'rules' specifying the axis range or sub-space within which they are supposed to be substituted, then fontTools.varLib.featureVars turns those into OpenType FeatureVariations tables.
I expect I will continue to need this in every (or nearly every?) serious variable font project I do. Used by Google/Material Symbols as well as Science Gothic.
spun off of #62
Designspace rules are spec'ed here: https://fonttools.readthedocs.io/en/latest/designspaceLib/xml.html#rules-element
fontmake uses glyphsLib to turn "bracket" layers into alternate UFO glyphs and accompanying designspace 'rules' specifying the axis range or sub-space within which they are supposed to be substituted, then fontTools.varLib.featureVars turns those into OpenType FeatureVariations tables.
fonttools feaLib has experimental support for specifying conditional rules in FEA, but the effort to standardise this is somewhat stalled, see https://github.com/adobe-type-tools/afdko/issues/153