1.0.0: SwiftPM Plugin Support
Breaking changes
carton
CLI is now slimmed down to be a SwiftPM Plugin.
This means that you can now use carton
by just declaring it as a dependency in your Package.swift
file.
dependencies: [
.package(url: "https://github.com/swiftwasm/carton", from: "1.0.0"),
],
Warning
carton
supports only Swift 5.9.2 and later because earlier SwiftPM Plugin didn't work with cross-compilation- Please remove
.build
directory used with oldercarton
Each carton
subcommand is now split into a separate SwiftPM plugin.
Old command | New command |
---|---|
carton dev |
swift run carton dev |
carton test |
swift run carton test |
carton bundle |
swift run carton bundle |
Also carton
no longer supports the following features:
carton init
command (useswift package init --type executable
instead)- Homebrew and Docker installation methods
Additional changes
--no-content-hash
option is added tocarton bundle
command. This option disables the use of content hash in the output file name.
See https://github.com/swiftwasm/carton/blob/main/CHANGELOG.md for more details