Skip to content

Commit c4d4a4a

Browse files
committed
adapter_features
1 parent ff38e61 commit c4d4a4a

File tree

7 files changed

+11
-60
lines changed

7 files changed

+11
-60
lines changed

lib/bencher_adapter/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ edition.workspace = true
66
license-file.workspace = true
77
publish = false
88

9+
[features]
10+
full = ["bencher_json/full"]
11+
lite = ["bencher_json/lite"]
12+
913
[dependencies]
1014
# Workspace
11-
bencher_json = { workspace = true, features = ["full"] }
15+
bencher_json.workspace = true
1216
literally.workspace = true
1317
ordered-float.workspace = true
1418
serde.workspace = true

lib/bencher_valid/src/fingerprint/target_os/windows.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ impl crate::Fingerprint {
55
windows::System::Profile::SystemManufacturers::SmbiosInformation::SerialNumber()
66
.ok()
77
.as_ref()
8-
.and_then(|hstring| {
9-
let uuid = hstring.to_string();
10-
println!("{uuid}");
11-
println!("{}", uuid.trim());
12-
Uuid::parse_str(&uuid).ok()
13-
})
8+
.and_then(|hstring| Uuid::parse_str(&hstring.to_string().trim()).ok())
149
.map(Self)
1510
}
1611
}

services/api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ sentry = ["dep:sentry"]
2222
[dependencies]
2323
# Workspace
2424
async-trait.workspace = true
25-
bencher_adapter.workspace = true
25+
bencher_adapter = { workspace = true, features = ["full"] }
2626
bencher_billing = { workspace = true, optional = true }
2727
bencher_bing_index = { workspace = true, optional = true }
2828
bencher_boundary.workspace = true

services/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plus = ["bencher_client/plus", "bencher_comment/plus", "bencher_json/plus"]
1212

1313
[dependencies]
1414
# Workspace
15-
bencher_adapter.workspace = true
15+
bencher_adapter = { workspace = true, features = ["lite"] }
1616
bencher_client.workspace = true
1717
bencher_comment.workspace = true
1818
bencher_json = { workspace = true, features = ["lite", "table"] }

services/cli/build.rs

Lines changed: 0 additions & 5 deletions
This file was deleted.

services/cli/src/bencher/sub/run/error.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
#![allow(clippy::absolute_paths)]
2+
13
use super::runner::{command::Command, Runner};
24

3-
#[allow(clippy::absolute_paths)]
45
#[derive(thiserror::Error, Debug)]
56
pub enum RunError {
67
#[error("Failed to check API version: {0}")]
@@ -9,7 +10,7 @@ pub enum RunError {
910
#[error("{0}")]
1011
Branch(#[from] super::branch::BranchError),
1112
#[error("{0}")]
12-
Thresholds(#[from] crate::bencher::sub::project::report::ThresholdsError),
13+
Thresholds(#[from] crate::bencher::sub::ThresholdsError),
1314

1415
#[error("No default shell command path for target family. Try setting a custom shell with the `--shell` argument.")]
1516
Shell,

services/cli/src/bencher/sub/run/fingerprint.rs

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)