Support importFrom: and shared: constraints