Skip to content

Commit

Permalink
Remove native implementation of proto_lang_toolchain rule
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 446995789
  • Loading branch information
kotlaja authored and copybara-github committed May 6, 2022
1 parent 1d6ebeb commit eb251ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 78 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
import com.google.devtools.build.lib.packages.StarlarkProviderIdentifier;
import com.google.devtools.build.lib.packages.Type;

/** Implements {code proto_lang_toolchain}. */
/**
* Implements {code proto_lang_toolchain}.
*
* <p>This rule is implemented in Starlark. This class remains only for doc-gen purposes.
*/
public class ProtoLangToolchainRule implements RuleDefinition {
private static final Label DEFAULT_PROTO_COMPILER =
Label.parseAbsoluteUnchecked(ProtoConstants.DEFAULT_PROTOC_LABEL);
Expand Down Expand Up @@ -126,7 +130,7 @@ public Metadata getMetadata() {
return RuleDefinition.Metadata.builder()
.name("proto_lang_toolchain")
.ancestors(BaseRuleClasses.NativeActionCreatingRule.class)
.factoryClass(ProtoLangToolchain.class)
.factoryClass(BaseRuleClasses.EmptyRuleConfiguredTargetFactory.class)
.build();
}
}
Expand Down

0 comments on commit eb251ca

Please sign in to comment.