Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Open-source editions Bazel rules for embedding defaults.
These utilities provide a way to embed a FeatureSetDefaults message into generators or runtimes that need to implement feature resolution. They use protoc to handle the tricky reflection-based algorithm over feature protos, leaving only simple merges to be implemented in other languages. See docs/design/editions/editions-life-of-a-featureset.md for more information. PiperOrigin-RevId: 574554333
- Loading branch information
1 parent
536066e
commit 898d8fa
Showing
21 changed files
with
503 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Protocol Buffers - Google's data interchange format | ||
// Copyright 2008 Google Inc. All rights reserved. | ||
// | ||
// Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file or at | ||
// https://developers.google.com/open-source/licenses/bsd | ||
|
||
#include "google/protobuf/compiler/command_line_interface.h" | ||
|
||
#include "absl/log/initialize.h" | ||
|
||
// Must be included last. | ||
#include "google/protobuf/port_def.inc" | ||
|
||
namespace google { | ||
namespace protobuf { | ||
namespace compiler { | ||
|
||
// This is a version of protoc that has no built-in code generators. | ||
// See go/protobuf-toolchain-protoc | ||
int ProtocMain(int argc, char* argv[]) { | ||
absl::InitializeLog(); | ||
|
||
CommandLineInterface cli; | ||
cli.AllowPlugins("protoc-"); | ||
|
||
return cli.Run(argc, argv); | ||
} | ||
|
||
} // namespace compiler | ||
} // namespace protobuf | ||
} // namespace google | ||
|
||
int main(int argc, char* argv[]) { | ||
return google::protobuf::compiler::ProtocMain(argc, argv); | ||
} |
Oops, something went wrong.