Add notes about what the public API is.

This commit is contained in:
Stephen Canon committed 2021-08-27 09:36:56 -04:00
1 parent 832dac1ef8
commit ed66862a2c
1 file changed
+7 -1
+7 -1
View File
@@ -42,7 +42,7 @@ To use Swift Numerics in a SwiftPM project:
1. Add the following line to the dependencies in your `Package.swift` file:
```swift
.package(url: "https://github.com/apple/swift-numerics", from: "0.1.0"),
.package(url: "https://github.com/apple/swift-numerics", from: "1.0.0"),
```
2. Add `Numerics` as a dependency for your target:
@@ -56,6 +56,12 @@ To use Swift Numerics in a SwiftPM project:
3. Add `import Numerics` in your source code.
## Source stability
Swift Numerics uses semantic versioning.
The public API of Swift Numerics is the non-underscored contents of the modules re-exported by the Numerics top-level module.
E.g. the contents of `_NumericsShims` are not considered API, nor is the `_mulAdd` operation defined for `Real` types.
## Contributing to Swift Numerics
Swift Numerics is a standalone library that is separate from the core Swift project, but it will sometimes act as a staging ground for APIs that will later be incorporated into the Swift Standard Library.