[Accepted with Modifications] SE-0294: Declaring executable targets in Package Manifests

The review of SE-0294 has concluded.

The feedback from the pitch and review was positive and the proposal has been accepted with a minor revision: The proposal should explicitly call out that starting with SwiftPM tools-version 5.4, declaring an executable target by using .target and having it inferred to be an executable by the presence of a top-level source file named main.swift is considered deprecated; That SwiftPM will continue to infer such targets as executable for a transition period but will eventually stop doing so and treat all targets declared using .target as library targets; And that in the transition period, using .target with main.swift will emit a warning or a fix-it based on technical feasibility.

Thank you to everyone who participated in the review!

Tom Doron,
Review Manag

9 Likes
Terms of Service

Privacy Policy

Cookie Policy