mirror of
https://github.com/apple/swift-numerics
synced 2026-11-28 05:14:31 +00:00
Add notes about what the public API is.
This commit is contained in:
1 parent
832dac1ef8
commit
ed66862a2c
1 file changed
+7
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user