-
Notifications
You must be signed in to change notification settings - Fork 331
Expand file tree
/
Copy pathtarget.rs
More file actions
36 lines (28 loc) · 1.07 KB
/
target.rs
File metadata and controls
36 lines (28 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is dual-licensed under either the MIT license found in the
* LICENSE-MIT file in the root directory of this source tree or the Apache
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory
* of this source tree. You may select, at your option, one of the
* above-listed licenses.
*/
use std::fmt::Debug;
pub trait CommandExecutionTarget: Send + Sync + Debug {
fn re_action_key(&self) -> String;
fn re_affinity_key(&self) -> String;
fn as_proto_action_key(&self) -> buck2_data::ActionKey;
fn as_proto_action_name(&self) -> buck2_data::ActionName;
/// Optional mnemonic describing the action kind (e.g. `CxxCompile`).
fn action_mnemonic(&self) -> Option<String> {
None
}
/// Optional configured target label this action belongs to.
fn target_label(&self) -> Option<String> {
None
}
/// Optional hash identifying the build configuration of the target.
fn configuration_hash(&self) -> Option<String> {
None
}
}