Skip to content

Releases: bazelbuild/rules_swift

4.0.0-rc6

4.0.0-rc6 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 25 Aug 16:23
Immutable release. Only release title and notes can be modified.
6ad1a3b

What's Changed

New Contributors

Full Changelog: 4.0.0-rc5...4.0.0-rc6

This release is compatible with Bazel 8.x LTS, 9.x LTS, and rolling releases.

MODULE.bazel Snippet

bazel_dep(name = "rules_swift", version = "4.0.0-rc6")

4.0.0-rc5

4.0.0-rc5 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 05 Aug 15:43
Immutable release. Only release title and notes can be modified.
784b625

What's Changed

  • use a perl script for mixed_language_module_map_extender by @alex-ameen in #1624
  • Add swift_binary(linkshared = True) for shared libraries by @AttilaTheFun in #1820
  • Support cross-compiling to Android with a Swift SDK by @AttilaTheFun in #1818
  • Build and test Swift natively on a Windows host by @AttilaTheFun in #1819
  • Support cross-compiling to WebAssembly with a Swift SDK by @AttilaTheFun in #1817
  • Correctly forward external_include_paths to swift compiler by @DoDoENT in #1829
  • Move xcode_swift_toolchain out of local repo by @keith in #1845
  • Move wasm templating to separate BUILD file by @keith in #1835
  • Fix missing runfiles for proto rules by @keith in #1855
  • Fix WMO num-threads detection by @qyang-nj in #1856
  • Remove Xcode rpaths for non macOS binaries by @keith in #1864
  • Improve hermetic toolchain support, add static stdlib support by @keith in #1853
  • Remove toolchain_name from sdk module extensions by @keith in #1833
  • Fix symbolgraph extraction with explicit modules by @keith in #1870
  • fix(mixed_language_library): Include own source files in code coverage file info by @amorde in #1874
  • Fix spaces in defines by @keith in #1877
  • Don't generate macOS target toolchain from hermetic toolchains by @keith in #1876
  • Gate the direct SwiftInfo pass-throughs on the layering features by @mauriciogg in #1879

New Contributors

Full Changelog: 4.0.0-rc4...4.0.0-rc5

This release is compatible with Bazel 8.x LTS, 9.x LTS, and rolling releases.

MODULE.bazel Snippet

bazel_dep(name = "rules_swift", version = "4.0.0-rc5")

4.0.0-rc4

4.0.0-rc4 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 17 Jun 06:26
Immutable release. Only release title and notes can be modified.
4af298a

Changes since rc3

  • Mark explicit modules module extension as reproducible by @keith in #1810
  • Allow suppression aspect hints to override rules by @keith in #1811

Full Changelog: 4.0.0-rc3...4.0.0-rc4

This release is compatible with Bazel 8.x LTS, 9.x LTS, and rolling releases.

MODULE.bazel Snippet

bazel_dep(name = "rules_swift", version = "4.0.0-rc4")

4.0.0-rc3

4.0.0-rc3 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 15 Jun 05:01
Immutable release. Only release title and notes can be modified.
34b6bd6

Changes since rc2

Full Changelog: 4.0.0-rc2...4.0.0-rc3

This release is compatible with Bazel 8.x LTS, 9.x LTS, and rolling releases.

MODULE.bazel Snippet

bazel_dep(name = "rules_swift", version = "4.0.0-rc3")

4.0.0-rc2

4.0.0-rc2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 04 Jun 18:26
Immutable release. Only release title and notes can be modified.
699bd6e

Changes since rc1

Full Changelog: 4.0.0-rc1...4.0.0-rc2

This release is compatible with Bazel 8.x LTS, 9.x LTS, and rolling releases.

MODULE.bazel Snippet

bazel_dep(name = "rules_swift", version = "4.0.0-rc2")

4.0.0-rc1

4.0.0-rc1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Jun 21:30
Immutable release. Only release title and notes can be modified.
4f9cb38

Breaking changes

  • Removed WORKSPACE support
  • Drop bazel 7 support
  • Remove swift.vfs_overlay (use swift.use_explicit_swift_module_map instead) by @keith in #1781

New features

  • Add opt-in support for explicit modules, see the docs for usage.
  • Add opt-in layering check, enable with --features=swift.layering_check_swift
  • Add Hermetic Swift Toolchain Support with Bzlmod Extension by @ma-oli in #1630
  • Add swift.emit_localized_strings feature for compiler string extraction by @jpsim in #1776

Other notable changes

New Contributors

Full Changelog: 3.4.1...4.0.0-rc1

This release is compatible with Bazel 8.x LTS, 9.x LTS, and rolling releases.

MODULE.bazel Snippet

bazel_dep(name = "rules_swift", version = "4.0.0-rc1", repo_name = "build_bazel_rules_swift")

3.6.1

Choose a tag to compare

@github-actions github-actions released this 10 Apr 17:20
Immutable release. Only release title and notes can be modified.
4ac8067

What's Changed

  • Explicitly pass .swiftmodule and .swiftinterface files as action inputs by @adincebic in #1677

Full Changelog: 3.6.0...3.6.1

This release is compatible with Bazel 7.x LTS, 8.x LTS, and 9.x LTS.

MODULE.bazel Snippet

bazel_dep(name = "rules_swift", version = "3.6.1", repo_name = "build_bazel_rules_swift")

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "build_bazel_rules_swift",
    sha256 = "9b5303dac0f7e0d06fba1a3c346d50652ae4a2abdb82d3ade3d3805f28031362",
    url = "https://github.com/bazelbuild/rules_swift/releases/download/3.6.1/rules_swift.3.6.1.tar.gz",
)

load(
    "@build_bazel_rules_swift//swift:repositories.bzl",
    "swift_rules_dependencies",
)

swift_rules_dependencies()

load(
    "@build_bazel_rules_swift//swift:extras.bzl",
    "swift_rules_extra_dependencies",
)

swift_rules_extra_dependencies()

3.6.0

Choose a tag to compare

@github-actions github-actions released this 02 Apr 14:53
Immutable release. Only release title and notes can be modified.
c9ae736

What's Changed

  • [cherry pick] Update swift-syntax for bazel 9.x support (#1666) by @aaronsky in #1676
  • [cherry pick] use prebuilt proto toolchain from protobuf@34.0 (#1660) by @aaronsky in #1674
  • [cherry pick] Revert "Use apple constraints over config_setting_group in select" (#1665) by @aaronsky in #1675

Full Changelog: 3.5.0...3.6.0

This release is compatible with Bazel 7.x LTS, 8.x LTS, and 9.x LTS.

MODULE.bazel Snippet

bazel_dep(name = "rules_swift", version = "3.6.0", repo_name = "build_bazel_rules_swift")

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "build_bazel_rules_swift",
    sha256 = "bf444e044f86153d5bfe358cc29f3512d3e90ab6bba624110b723cad62b8c737",
    url = "https://github.com/bazelbuild/rules_swift/releases/download/3.6.0/rules_swift.3.6.0.tar.gz",
)

load(
    "@build_bazel_rules_swift//swift:repositories.bzl",
    "swift_rules_dependencies",
)

swift_rules_dependencies()

load(
    "@build_bazel_rules_swift//swift:extras.bzl",
    "swift_rules_extra_dependencies",
)

swift_rules_extra_dependencies()

3.5.0

Choose a tag to compare

@github-actions github-actions released this 05 Mar 16:00
d23fdf0

What's Changed

Full Changelog: 3.4.2...3.5.0

This release is compatible with Bazel 7.x LTS, 8.x LTS, and 9.x LTS.

MODULE.bazel Snippet

bazel_dep(name = "rules_swift", version = "3.5.0", repo_name = "build_bazel_rules_swift")

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "build_bazel_rules_swift",
    sha256 = "c98f201bc217d2ce28e01afc78b410d05c67b846c04a7095e4e701b37422ecb2",
    url = "https://github.com/bazelbuild/rules_swift/releases/download/3.5.0/rules_swift.3.5.0.tar.gz",
)

load(
    "@build_bazel_rules_swift//swift:repositories.bzl",
    "swift_rules_dependencies",
)

swift_rules_dependencies()

load(
    "@build_bazel_rules_swift//swift:extras.bzl",
    "swift_rules_extra_dependencies",
)

swift_rules_extra_dependencies()

3.4.2

Choose a tag to compare

@github-actions github-actions released this 12 Jan 18:23
719e456

What's Changed

Full Changelog: 3.4.1...3.4.2

This release is compatible with Bazel 7.x LTS, 8.x LTS, and 9.x rolling releases.

MODULE.bazel Snippet

bazel_dep(name = "rules_swift", version = "3.4.2", repo_name = "build_bazel_rules_swift")

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "build_bazel_rules_swift",
    sha256 = "03a5c2a93398f2fc4d6ddfb76cf80cd957483ec286d34f50cc22cda002aab445",
    url = "https://github.com/bazelbuild/rules_swift/releases/download/3.4.2/rules_swift.3.4.2.tar.gz",
)

load(
    "@build_bazel_rules_swift//swift:repositories.bzl",
    "swift_rules_dependencies",
)

swift_rules_dependencies()

load(
    "@build_bazel_rules_swift//swift:extras.bzl",
    "swift_rules_extra_dependencies",
)

swift_rules_extra_dependencies()