Skip to content

Commit

Permalink
Delete the swift_c_module rule.
Browse files Browse the repository at this point in the history
Its functionality has been replaced by `swift_import_hint` and `aspect_hints`.

PiperOrigin-RevId: 387358449
  • Loading branch information
allevato authored and swiple-rules-gardener committed Jul 28, 2021
1 parent 81c3074 commit 553f697
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 140 deletions.
1 change: 0 additions & 1 deletion swift/internal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ bzl_library(
name = "rules",
srcs = [
"swift_binary_test.bzl",
"swift_c_module.bzl",
"swift_feature_allowlist.bzl",
"swift_grpc_library.bzl",
"swift_import.bzl",
Expand Down
3 changes: 1 addition & 2 deletions swift/internal/attrs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ def swift_deps_attr(doc, **kwargs):
Allowed kinds of dependencies are:
* `swift_c_module`, `swift_import` and `swift_library` (or anything
propagating `SwiftInfo`)
* `swift_import` and `swift_library` (or anything propagating `SwiftInfo`)
* `cc_library` (or anything propagating `CcInfo`)
Expand Down
132 changes: 0 additions & 132 deletions swift/internal/swift_c_module.bzl

This file was deleted.

5 changes: 0 additions & 5 deletions swift/swift.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ load(
_swift_binary = "swift_binary",
_swift_test = "swift_test",
)
load(
"@build_bazel_rules_swift//swift/internal:swift_c_module.bzl",
_swift_c_module = "swift_c_module",
)
load(
"@build_bazel_rules_swift//swift/internal:swift_clang_module_aspect.bzl",
_swift_clang_module_aspect = "swift_clang_module_aspect",
Expand Down Expand Up @@ -86,7 +82,6 @@ swift_common = _swift_common

# Re-export rules.
swift_binary = _swift_binary
swift_c_module = _swift_c_module
swift_feature_allowlist = _swift_feature_allowlist
swift_grpc_library = _swift_grpc_library
swift_import = _swift_import
Expand Down

0 comments on commit 553f697

Please sign in to comment.