Skip to content

1.0.0: SwiftPM Plugin Support

Compare
Choose a tag to compare
@kateinoigakukun kateinoigakukun released this 10 Mar 07:14
· 129 commits to main since this release

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 older carton

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 (use swift package init --type executable instead)
  • Homebrew and Docker installation methods

Additional changes

  • --no-content-hash option is added to carton 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