Skip to content

Commit dda2698

Browse files
committed
bencher_schema
1 parent 305edaf commit dda2698

File tree

212 files changed

+905
-617
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+905
-617
lines changed

Cargo.lock

Lines changed: 52 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ bencher_logger = { path = "lib/bencher_logger" }
3333
bencher_plot = { path = "lib/bencher_plot" }
3434
bencher_rank = { path = "lib/bencher_rank" }
3535
bencher_rbac = { path = "lib/bencher_rbac" }
36+
bencher_schema = { path = "lib/bencher_schema" }
3637
bencher_token = { path = "lib/bencher_token" }
3738
bencher_valid = { path = "lib/bencher_valid" }
3839
# plus
@@ -92,6 +93,7 @@ trivial_casts = "warn"
9293
trivial_numeric_casts = "warn"
9394
unsafe_code = "warn"
9495
unsafe_op_in_unsafe_fn = "warn"
96+
unused_crate_dependencies = "warn"
9597
unused_import_braces = "warn"
9698
unused_lifetimes = "warn"
9799
unused_macro_rules = "warn"

lib/bencher_adapter/benches/adapter.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unused_crate_dependencies)]
2+
13
use criterion::{criterion_group, criterion_main, Criterion};
24

35
use bencher_adapter::{Adaptable, Settings};

lib/bencher_adapter/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ pub mod adapters;
22
pub mod error;
33
pub mod results;
44

5+
#[cfg(test)]
6+
use criterion as _;
7+
58
use adapters::{
69
c_sharp::{dot_net::AdapterCSharpDotNet, AdapterCSharp},
710
cpp::{catch2::AdapterCppCatch2, google::AdapterCppGoogle, AdapterCpp},

lib/bencher_boundary/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ plus = ["bencher_json/plus"]
1313

1414
[dependencies]
1515
bencher_json.workspace = true
16-
ordered-float.workspace = true
1716
slog.workspace = true
1817
thiserror.workspace = true
1918
# Crate
2019
statrs = "0.18"
2120

2221
[dev-dependencies]
2322
bencher_logger.workspace = true
23+
ordered-float.workspace = true
2424
pretty_assertions.workspace = true
2525

2626
[lints]

lib/bencher_context/Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,19 @@ license-file.workspace = true
77
publish = false
88

99
[features]
10-
client = ["dep:windows"]
10+
client = ["dep:gix", "dep:uuid", "dep:windows"]
1111
schema = ["dep:schemars"]
1212

1313
[dependencies]
1414
# Workspace
15-
derive_more.workspace = true
1615
schemars = { workspace = true, optional = true }
1716
serde.workspace = true
1817
typeshare.workspace = true
19-
uuid = { workspace = true, features = ["serde"] }
18+
uuid = { workspace = true, optional = true, features = ["serde"] }
2019
# Crate
21-
gix = { version = "0.70", default-features = false, features = ["revision"] }
20+
gix = { version = "0.70", optional = true, default-features = false, features = [
21+
"revision",
22+
] }
2223

2324
[target.'cfg(target_os = "windows")'.dependencies]
2425
windows = { version = "0.60", optional = true, features = [
Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,36 @@
1-
use derive_more::Display;
1+
use std::fmt;
2+
23
use uuid::Uuid;
34

45
mod target_os;
56

6-
#[derive(Debug, Display, Clone, Copy)]
7+
#[derive(Debug, Clone, Copy)]
78
pub struct Fingerprint(Uuid);
89

10+
impl fmt::Display for Fingerprint {
11+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
12+
write!(f, "{}", self.0)
13+
}
14+
}
15+
916
#[allow(dead_code)]
10-
#[derive(Debug, Display, Clone, Copy)]
17+
#[derive(Debug, Clone, Copy)]
1118
pub enum OperatingSystem {
1219
Linux,
1320
Macos,
1421
Windows,
1522
}
23+
24+
impl fmt::Display for OperatingSystem {
25+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
26+
write!(
27+
f,
28+
"{}",
29+
match self {
30+
OperatingSystem::Linux => "Linux",
31+
OperatingSystem::Macos => "Macos",
32+
OperatingSystem::Windows => "Windows",
33+
}
34+
)
35+
}
36+
}

lib/bencher_github/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ bencher_valid.workspace = true
1111
octocrab.workspace = true
1212
serde.workspace = true
1313
thiserror.workspace = true
14-
url.workspace = true
1514
# Crate
1615
oauth2 = "5.0"
1716

lib/bencher_json/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ plus = ["bencher_valid/plus"]
1818
# Workspace
1919
bencher_context.workspace = true
2020
bencher_valid = { workspace = true, features = ["schema"] }
21-
chrono = { workspace = true, features = ["serde"] }
2221
derive_more.workspace = true
2322
diesel = { workspace = true, optional = true }
2423
ordered-float = { workspace = true, features = ["serde"] }
@@ -27,7 +26,6 @@ serde.workspace = true
2726
serde_json.workspace = true
2827
serde_urlencoded.workspace = true
2928
serde_yaml = { workspace = true, optional = true }
30-
slug.workspace = true
3129
tabled = { workspace = true, optional = true }
3230
thiserror.workspace = true
3331
typeshare.workspace = true

lib/bencher_rank/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ publish = false
88

99
[dependencies]
1010
diesel.workspace = true
11-
thiserror.workspace = true
1211

1312
[lints]
1413
workspace = true

0 commit comments

Comments
 (0)