• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2016 Google Inc. All Rights Reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//    http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Definitions for dependency reports.
16
17syntax = "proto2";
18
19option java_package = "com.google.turbine.proto";
20option java_outer_classname = "DepsProto";
21
22message Dependency {
23  enum Kind {
24    // Dependency used explicitly in the source.
25    EXPLICIT = 0;
26    // Dependency that is implicitly loaded and used by the compiler.
27    IMPLICIT = 1;
28    // Unused dependency.
29    UNUSED = 2;
30    // Implicit dependency considered by the compiler but not completed.
31    INCOMPLETE = 3;
32  }
33
34  // Path to the artifact representing this dependency.
35  required string path = 1;
36
37  // Dependency kind
38  required Kind kind = 2;
39}
40
41// Top-level message found in .deps artifacts
42message Dependencies {
43  repeated Dependency dependency = 1;
44
45  // Name of the rule being analyzed.
46  optional string rule_label = 2;
47
48  // Whether the action was successful; even when compilation fails, partial
49  // dependency information can be useful.
50  optional bool success = 3;
51
52  // If the Java action was started with a reduced classpath and an error
53  // occurred suggesting that it should be rerun with the full classpath, this
54  // will be true.
55  optional bool requires_reduced_classpath_fallback = 5;
56}
57