Swift.org blog: Library Evolution in Swift

We use the swift-api-digester tool as part of our CI testing to catch source and binary compatibility breaks in the standard library. It's not documented or quite ready for general use, but if you're feeling adventurous you can take a look. Grep around in the test suite for mentions of the tool. The basic idea is that it has two modes: in the first mode, it outputs a JSON file from a Swift module. In the second mode it compares two JSON files. The comparison can look at either source or binary compatibility, which changes some details about how the JSON data is compared.

Terms of Service

Privacy Policy

Cookie Policy