Skip to content

Commit 6e6215a

Browse files
committed
fix_features
1 parent fee438b commit 6e6215a

File tree

20 files changed

+31
-36
lines changed

20 files changed

+31
-36
lines changed

Cargo.lock

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

lib/api_auth/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ sentry = ["bencher_schema/sentry"]
1616

1717
[dependencies]
1818
bencher_endpoint.workspace = true
19-
bencher_billing = { workspace = true, optional = true }
2019
bencher_json = { workspace = true, features = ["server", "schema", "db"] }
2120
bencher_schema.workspace = true
2221
dropshot.workspace = true

lib/api_checkout/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ plus = [
1212
"bencher_json/plus",
1313
"bencher_schema/plus",
1414
]
15-
sentry = ["bencher_schema/sentry", "dep:sentry"]
15+
sentry = ["dep:sentry", "bencher_schema/sentry"]
1616

1717
[dependencies]
1818
bencher_endpoint.workspace = true
19-
bencher_billing = { workspace = true, optional = true }
2019
bencher_json = { workspace = true, features = ["server", "schema"] }
2120
bencher_rbac.workspace = true
2221
bencher_schema.workspace = true

lib/api_organizations/Cargo.toml

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

99
[features]
1010
plus = [
11+
"dep:bencher_billing",
1112
"bencher_endpoint/plus",
1213
"bencher_json/plus",
1314
"bencher_schema/plus",
14-
"dep:bencher_billing",
1515
]
16-
sentry = ["bencher_schema/sentry", "dep:sentry"]
16+
sentry = ["dep:sentry", "bencher_schema/sentry"]
1717

1818
[dependencies]
1919
bencher_endpoint.workspace = true

lib/api_projects/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plus = [
1212
"bencher_json/plus",
1313
"bencher_schema/plus",
1414
]
15-
sentry = ["bencher_schema/sentry", "dep:sentry"]
15+
sentry = ["dep:sentry", "bencher_schema/sentry"]
1616

1717
[dependencies]
1818
bencher_endpoint.workspace = true

lib/api_projects/src/projects.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ pub async fn project_patch(
251251
let auth_user = AuthUser::from_token(rqctx.context(), bearer_token).await?;
252252
let context = rqctx.context();
253253
let json = patch_inner(
254+
#[cfg(feature = "plus")]
254255
&rqctx.log,
255256
context,
256257
path_params.into_inner(),
@@ -262,7 +263,7 @@ pub async fn project_patch(
262263
}
263264

264265
async fn patch_inner(
265-
log: &Logger,
266+
#[cfg(feature = "plus")] log: &Logger,
266267
context: &ApiContext,
267268
path_params: ProjectParams,
268269
json_project: JsonUpdateProject,
@@ -331,6 +332,7 @@ pub async fn project_delete(
331332
) -> Result<ResponseDeleted, HttpError> {
332333
let auth_user = AuthUser::from_token(rqctx.context(), bearer_token).await?;
333334
delete_inner(
335+
#[cfg(feature = "plus")]
334336
&rqctx.log,
335337
rqctx.context(),
336338
path_params.into_inner(),
@@ -341,7 +343,7 @@ pub async fn project_delete(
341343
}
342344

343345
async fn delete_inner(
344-
log: &Logger,
346+
#[cfg(feature = "plus")] log: &Logger,
345347
context: &ApiContext,
346348
path_params: ProjectParams,
347349
auth_user: &AuthUser,

lib/api_server/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ sentry = ["bencher_config/sentry", "bencher_schema/sentry"]
1818
[dependencies]
1919
async-compression = { workspace = true, features = ["tokio", "gzip"] }
2020
bencher_endpoint.workspace = true
21-
bencher_billing = { workspace = true, optional = true }
2221
bencher_config.workspace = true
2322
bencher_json = { workspace = true, features = ["server", "schema", "db"] }
2423
bencher_schema.workspace = true

lib/api_users/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ sentry = ["bencher_schema/sentry"]
1616

1717
[dependencies]
1818
bencher_endpoint.workspace = true
19-
bencher_billing = { workspace = true, optional = true }
2019
bencher_json = { workspace = true, features = ["server", "schema", "db"] }
2120
bencher_schema.workspace = true
2221
diesel.workspace = true

lib/bencher_config/Cargo.toml

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

99
[features]
1010
plus = [
11-
"bencher_endpoint/plus",
12-
"bencher_json/plus",
13-
"bencher_schema/plus",
1411
"dep:bencher_billing",
1512
"dep:bencher_github",
1613
"dep:bencher_license",
14+
"bencher_endpoint/plus",
15+
"bencher_json/plus",
16+
"bencher_schema/plus",
1717
]
1818
sentry = ["bencher_schema/sentry"]
1919

lib/bencher_config/src/config_tx.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ use bencher_schema::context::{ApiContext, Database, DbConnection};
1515
#[cfg(feature = "plus")]
1616
use bencher_schema::model::server::QueryServer;
1717
use bencher_token::TokenKey;
18-
use diesel::{connection::SimpleConnection, Connection};
18+
#[cfg(feature = "plus")]
19+
use diesel::connection::SimpleConnection;
20+
use diesel::Connection;
1921
use dropshot::{
2022
ApiDescription, ConfigDropshot, ConfigLogging, ConfigLoggingIfExists, ConfigLoggingLevel,
2123
ConfigTls, HttpServer,

0 commit comments

Comments
 (0)