From 73c8c6606cc287b9bb5608469326390569d679f4 Mon Sep 17 00:00:00 2001 From: tomer doron Date: Tue, 29 Aug 2023 16:27:03 -0700 Subject: [PATCH 1/2] Update 2023-08-29-swift-5.9-released.md --- _posts/2023-08-29-swift-5.9-released.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/_posts/2023-08-29-swift-5.9-released.md b/_posts/2023-08-29-swift-5.9-released.md index b44114ae5..e18d918c1 100644 --- a/_posts/2023-08-29-swift-5.9-released.md +++ b/_posts/2023-08-29-swift-5.9-released.md @@ -42,12 +42,22 @@ Following are some highlights from the changes introduced to the [Swift Package - SwiftPM packages can now use `package` as a new access modifier, allowing accessing symbols in another target / module within the same package without making it public. -- New `swift experimental-sdk` experimental command is now available for managing Swift SDK bundles that follow the format described in [SE-0387](https://github.com/apple/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md). +- Introducing `CompilerPluginSupport` module for defining macro targets. Macro targets allow authoring and distribution of custom Swift macros such as [expression macros](https://github.com/apple/swift-evolution/blob/main/proposals/0382-expression-macros.md). -- SwiftPM can now publish to a registry following the publishing spec as defined in [SE-0391](https://github.com/apple/swift-evolution/blob/main/proposals/0391-package-registry-publish.md). SwiftPM also gains support for signed packages. Trust-on-first-use (TOFU) check which includes only fingerprints (e.g., checksums) previously has been extended to include signing identities, and it is enforced for source archives as well as package manifests. +- Introducing new `.embedInCode` resource rule for embedding the contents of the resource into the executable by generating a byte array, e.g. -- Add a new `CompilerPluginSupport` module which contains the definition for macro targets. Macro targets allow authoring and distribution of custom Swift macros such as [expression macros](https://github.com/apple/swift-evolution/blob/main/proposals/0382-expression-macros.md). +``` +struct PackageResources { + static let my_resource: [UInt8] = [104,101,108,108,111,32,119,111,114,108,100,10] +} +``` +- `allowNetworkConnections(scope:reason:)` setting giving a command plugin permissions to access the network. Permissions can be scoped to Unix domain sockets in general or specifically for Docker, as well as local or remote IP connections which can be limited by port. For non-interactive use cases, there is also a `--allow-network-connections` commandline flag to allow network connections for a particular scope. + +- SwiftPM can now publish to a registry following the publishing spec as defined in [SE-0391](https://github.com/apple/swift-evolution/blob/main/proposals/0391-package-registry-publish.md). SwiftPM also gains support for signed packages. Trust-on-first-use (TOFU) check which includes only fingerprints (e.g., checksums) previously has been extended to include signing identities, and it is enforced for source archives as well as package manifests. + +- New `swift experimental-sdk` experimental command is now available for managing Swift SDK bundles that follow the format described in [SE-0387](https://github.com/apple/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md). + See the [Swift Package Manager changelog](https://github.com/apple/swift-package-manager/blob/main/CHANGELOG.md#swift-59) for the complete list of changes. ### SwiftSyntax From 781aea9f80348bb43a649b05ddbc12832d0f786c Mon Sep 17 00:00:00 2001 From: Alexander Sandberg Date: Wed, 30 Aug 2023 07:30:17 +0200 Subject: [PATCH 2/2] indent code block in list --- _posts/2023-08-29-swift-5.9-released.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/_posts/2023-08-29-swift-5.9-released.md b/_posts/2023-08-29-swift-5.9-released.md index e18d918c1..aac33bd4f 100644 --- a/_posts/2023-08-29-swift-5.9-released.md +++ b/_posts/2023-08-29-swift-5.9-released.md @@ -46,18 +46,18 @@ Following are some highlights from the changes introduced to the [Swift Package - Introducing new `.embedInCode` resource rule for embedding the contents of the resource into the executable by generating a byte array, e.g. -``` -struct PackageResources { - static let my_resource: [UInt8] = [104,101,108,108,111,32,119,111,114,108,100,10] -} -``` + ``` + struct PackageResources { + static let my_resource: [UInt8] = [104,101,108,108,111,32,119,111,114,108,100,10] + } + ``` - `allowNetworkConnections(scope:reason:)` setting giving a command plugin permissions to access the network. Permissions can be scoped to Unix domain sockets in general or specifically for Docker, as well as local or remote IP connections which can be limited by port. For non-interactive use cases, there is also a `--allow-network-connections` commandline flag to allow network connections for a particular scope. - + - SwiftPM can now publish to a registry following the publishing spec as defined in [SE-0391](https://github.com/apple/swift-evolution/blob/main/proposals/0391-package-registry-publish.md). SwiftPM also gains support for signed packages. Trust-on-first-use (TOFU) check which includes only fingerprints (e.g., checksums) previously has been extended to include signing identities, and it is enforced for source archives as well as package manifests. - New `swift experimental-sdk` experimental command is now available for managing Swift SDK bundles that follow the format described in [SE-0387](https://github.com/apple/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md). - + See the [Swift Package Manager changelog](https://github.com/apple/swift-package-manager/blob/main/CHANGELOG.md#swift-59) for the complete list of changes. ### SwiftSyntax