Skip to content

Commit f60a475

Browse files
committed
features_server
1 parent fdcc924 commit f60a475

File tree

14 files changed

+19
-19
lines changed

14 files changed

+19
-19
lines changed

lib/bencher_adapter/Cargo.toml

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

99
[dependencies]
1010
# Workspace
11-
bencher_json = { workspace = true, features = ["full"] }
11+
bencher_json = { workspace = true, features = ["server"] }
1212
literally.workspace = true
1313
ordered-float.workspace = true
1414
serde.workspace = true

lib/bencher_boundary/Cargo.toml

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

99
[features]
1010
client = ["bencher_json/client"]
11-
full = ["bencher_json/full"]
11+
server = ["bencher_json/server"]
1212
plus = ["bencher_json/plus"]
1313

1414
[dependencies]

lib/bencher_client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ publish = false
99
[features]
1010
default = ["client", "plus", "rustls-tls"]
1111
client = ["bencher_json/client"]
12-
full = ["bencher_json/full"]
12+
server = ["bencher_json/server"]
1313
plus = ["bencher_json/plus"]
1414
# Reqwest TLS
1515
native-tls = ["reqwest/native-tls"]

lib/bencher_json/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ publish = false
88

99
[features]
1010
client = ["bencher_context/client", "bencher_valid/client"]
11-
full = ["bencher_valid/full"]
11+
table = ["dep:tabled"]
12+
server = ["bencher_valid/server"]
13+
schema = ["dep:schemars", "bencher_context/schema", "ordered-float/schemars"]
1214
db = ["diesel", "serde_yaml", "bencher_valid/db"]
1315
plus = ["bencher_valid/plus"]
14-
schema = ["dep:schemars", "bencher_context/schema", "ordered-float/schemars"]
15-
table = ["dep:tabled"]
1616

1717
[dependencies]
1818
# Workspace

lib/bencher_plot/Cargo.toml

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

99
[features]
10-
default = ["full"]
10+
default = ["server"]
1111
client = ["bencher_json/client"]
12-
full = ["bencher_json/full"]
12+
server = ["bencher_json/server"]
1313

1414
[dependencies]
1515
bencher_json.workspace = true

lib/bencher_valid/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["cdylib", "rlib"]
1111

1212
[features]
1313
client = ["dep:regex-lite"]
14-
full = ["dep:rand", "dep:regex"]
14+
server = ["dep:rand", "dep:regex"]
1515
db = ["dep:diesel"]
1616
plus = ["chrono/clock"]
1717
schema = ["dep:schemars", "ordered-float/schemars"]

lib/bencher_valid/src/plus/cvc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::sync::LazyLock;
22

3-
#[cfg(all(feature = "full", not(feature = "client")))]
3+
#[cfg(all(feature = "server", not(feature = "client")))]
44
use regex::Regex;
55
#[cfg(feature = "client")]
66
use regex_lite::Regex;

lib/bencher_valid/src/plus/last_four.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::sync::LazyLock;
22

33
use derive_more::Display;
4-
#[cfg(all(feature = "full", not(feature = "client")))]
4+
#[cfg(all(feature = "server", not(feature = "client")))]
55
use regex::Regex;
66
#[cfg(feature = "client")]
77
use regex_lite::Regex;

lib/bencher_valid/src/plus/number.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::sync::LazyLock;
22

3-
#[cfg(all(feature = "full", not(feature = "client")))]
3+
#[cfg(all(feature = "server", not(feature = "client")))]
44
use regex::Regex;
55
#[cfg(feature = "client")]
66
use regex_lite::Regex;

lib/bencher_valid/src/slug.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub fn new_slug(slug: &str) -> String {
8585

8686
impl Slug {
8787
pub const MAX: usize = MAX_LEN;
88-
#[cfg(feature = "full")]
88+
#[cfg(feature = "server")]
8989
const RAND_LEN: usize = 8;
9090

9191
pub fn new<S>(slug: S) -> Self
@@ -111,7 +111,7 @@ impl Slug {
111111
}
112112
}
113113

114-
#[cfg(feature = "full")]
114+
#[cfg(feature = "server")]
115115
pub fn rand_suffix() -> String {
116116
use rand::Rng;
117117

@@ -130,7 +130,7 @@ impl Slug {
130130
.collect()
131131
}
132132

133-
#[cfg(feature = "full")]
133+
#[cfg(feature = "server")]
134134
#[must_use]
135135
pub fn with_rand_suffix(self) -> Self {
136136
let truncated = if self.as_ref().len() + 1 + Self::RAND_LEN > Self::MAX {

0 commit comments

Comments
 (0)