Skip to content

Commit e3b6bb2

Browse files
committed
library → dynamicLibrary
1 parent 345640f commit e3b6bb2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

proposals/NNNN-environment-constrained-shared-libraries.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ To compile an ECSL, you just need to build an ordinary SwiftPM library product w
5757
You would package an ECSL as an `.artifactbundle` just as you would an executable, with the following differences:
5858

5959
- The `info.json` must have `schemaVersion` set to `1.2` or higher.
60-
- The artifact type must be `library`, a new enum case introduced in this proposal.
60+
- The artifact type must be `dynamicLibrary`, a new enum case introduced in this proposal.
6161
- The artifact must have exactly one variant in the `variants` list, and the `supportedTriples` field is forbidden.
6262
- The artifact payload must include the `.swiftinterface` file corresponding to the actual library object.
6363

@@ -84,12 +84,12 @@ Some organizations might choose to forgo the `@rpath` mechanism entirely and sim
8484

8585
### Schema extensions
8686

87-
We will extend the `ArtifactsArchiveMetadata` schema to include a new `library` case in the `ArtifactType` enum.
87+
We will extend the `ArtifactsArchiveMetadata` schema to include a new `dynamicLibrary` case in the `ArtifactType` enum.
8888

8989
```diff
9090
public enum ArtifactType: String, RawRepresentable, Decodable {
9191
case executable
92-
+ case library
92+
+ case dynamicLibrary
9393
case swiftSDK
9494
}
9595
```
@@ -106,7 +106,7 @@ Below is an example of an `info.json` file for an Artifact Bundle containing a s
106106
"schemaVersion": "1.2",
107107
"artifacts": {
108108
"MyLibrary": {
109-
"type": "library",
109+
"type": "dynamicLibrary",
110110
"version": "1.0.0",
111111
"variants": [{ "path": "MyLibrary" }]
112112
}
@@ -155,6 +155,6 @@ We also don’t see much value in this feature, as you would probably package an
155155

156156
One benefit of merging bundles would be that it reduces the number of checksums you need to keep track of, but we expect that most organizations will have a very small number of supported environments, with new environments continously phasing out old environments.
157157

158-
### Using a different `ArtifactType` name besides `library`
158+
### Using a different `ArtifactType` name besides `dynamicLibrary`
159159

160160
We intentionally preserved the structure of the `variants` list in the `info.json` file, despite imposing the current restriction of one variant per library, in order to allow this format to be extended in the future to support fully general Dynamic Libraries.

0 commit comments

Comments
 (0)