Skip to content

Bump mlugg/setup-zig from 1 to 2 #608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bencher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ jobs:
# Install
- name: Install Rust target
run: rustup target add ${{ matrix.target }}
- uses: mlugg/setup-zig@v1
- uses: mlugg/setup-zig@v2
if: startsWith(matrix.build, 'linux')
with:
version: ${{ env.ZIG_VERSION }}
Expand Down
14 changes: 10 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ members = [
"xtask",
]
exclude = ["services/benchers", "services/cargo-bencher"]
resolver = "2"
resolver = "3"

[workspace.package]
homepage = "https://bencher.dev"
version = "0.5.1"
authors = ["Everett Pompeii <[email protected]>"]
edition = "2021"
edition = "2024"
license-file = "LICENSE.md"

[workspace.dependencies]
Expand Down Expand Up @@ -111,7 +111,6 @@ single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unsafe_code = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_crate_dependencies = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
Expand All @@ -130,15 +129,17 @@ multiple_crate_versions = "allow" # Checks to see if multiple versions o
pedantic = { level = "warn", priority = -1 }
missing_errors_doc = "allow" # Checks the doc comments of publicly visible functions that return a Result type and warns if there is no # Errors section.
missing_panics_doc = "allow" # Checks the doc comments of publicly visible functions that may panic and warns if there is no # Panics section.
module_name_repetitions = "allow" # Detects type names that are prefixed or suffixed by the containing module’s name.
must_use_candidate = "allow" # Checks for public functions that have no #[must_use] attribute, but return something not already marked must-use, have no mutable arg and mutate no statics.
# restriction
absolute_paths = "warn" # Checks for usage of items through absolute paths, like std::env::current_dir.
allow_attributes = "warn" # Checks for usage of the #[allow] attribute and suggests replacing it with the #[expect]
as_pointer_underscore = "warn" # Checks for the usage of as *const _ or as *mut _ conversion using inferred type.
as_underscore = "warn" # Checks for the usage of as _ conversion using inferred type.
big_endian_bytes = "warn" # Checks for the usage of the to_be_bytes method and/or the function from_be_bytes.
cfg_not_test = "warn" # Checks for usage of cfg that excludes code from test builds. (i.e., #[cfg(not(test))])
dbg_macro = "warn" # Checks for usage of the dbg! macro.
decimal_literal_representation = "warn" # Warns if there is a better representation for a numeric literal.
doc_include_without_cfg = "warn" # Checks if included files in doc comments are included only for cfg(doc).
error_impl_error = "warn" # Checks for types named Error that implement Error.
empty_enum_variants_with_brackets = "warn" # Finds enum variants without fields that are declared with empty brackets.
exit = "warn" # Detects calls to the exit() function which terminates the program.
Expand All @@ -162,17 +163,21 @@ large_include_file = "warn" # Checks for the inclusion of large f
little_endian_bytes = "warn" # Checks for the usage of the to_le_bytes method and/or the function from_le_bytes.
lossy_float_literal = "warn" # Checks for whole number float literals that cannot be represented as the underlying type without loss.
map_err_ignore = "warn" # Checks for instances of map_err(|_| Some::Enum)
map_with_unused_argument_over_ranges = "warn" # Checks for Iterator::map over ranges without using the parameter which could be more clearly expressed using std::iter::repeat(...).take(...) or std::iter::repeat_n.
mem_forget = "warn" # Checks for usage of std::mem::forget(t) where t is Drop or has a field that implements Drop.
missing_assert_message = "warn" # Checks assertions without a custom panic message.
missing_asserts_for_indexing = "warn" # Checks for repeated slice indexing without asserting beforehand that the length is greater than the largest index used to index into the slice.
mixed_read_write_in_expression = "warn" # Checks for a read and a write to the same variable where whether the read occurs before or after the write depends on the evaluation order of sub-expressions.
modulo_arithmetic = "warn" # Checks for modulo arithmetic.
multiple_inherent_impl = "warn" # Checks for multiple inherent implementations of a struct
mutex_atomic = "warn" # Checks for usage of Mutex<X> where an atomic will do.
mutex_integer = "warn" # Checks for usage of Mutex<X> where X is an integral type.
needless_raw_strings = "warn" # Checks for raw string literals where a string literal can be used instead.
non_zero_suggestions = "warn" # Checks for conversions from NonZero types to regular integer types, and suggests using NonZero types for the target as well.
panic = "warn" # Checks for usage of panic!.
partial_pub_fields = "warn" # Checks whether partial fields of a struct are public.
pathbuf_init_then_push = "warn" # Checks for calls to push immediately after creating a new PathBuf.
precedence_bits = "warn" # Checks for bit shifting operations combined with bit masking/combining operators and suggest using parentheses.
print_stdout = "warn" # Checks for printing on stdout. The purpose of this lint is to catch debugging remnants.
print_stderr = "warn" # Checks for printing on stderr. The purpose of this lint is to catch debugging remnants.
rc_buffer = "warn" # Checks for Rc<T> and Arc<T> when T is a mutable buffer type such as String or Vec.
Expand Down Expand Up @@ -201,6 +206,7 @@ unnecessary_safety_doc = "warn" # Checks for the doc comments of publ
unnecessary_self_imports = "warn" # Checks for imports ending in ::{self}.
unreachable = "warn" # Checks for usage of unreachable!.
unused_result_ok = "warn" # Checks for calls to Result::ok() without using the returned Option.
unused_trait_names = "warn" # Checks for `use Trait` where the Trait is only used for its methods and not referenced by a path directly.
unwrap_used = "warn" # Checks for .unwrap() or .unwrap_err() calls on Results and .unwrap() call on Options.
use_debug = "warn" # Checks for usage of Debug formatting. The purpose of this lint is to catch debugging remnants.
verbose_file_reads = "warn" # Checks for usage of File::read_to_end and File::read_to_string.
Expand Down
5 changes: 4 additions & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
absolute-paths-allowed-crates = ["diesel"]
absolute-paths-max-segments = 3

allow-unwrap-in-tests = true
allow-dbg-in-tests = true
allow-expect-in-tests = true
allow-indexing-slicing-in-tests = true
allow-print-in-tests = true
allow-unwrap-in-tests = true
2 changes: 1 addition & 1 deletion examples/rust/custom/benches/play_game.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![allow(clippy::unit_arg)]
#![expect(clippy::unit_arg)]

#[global_allocator]
static ALLOC: dhat::Alloc = dhat::Alloc;
Expand Down
2 changes: 1 addition & 1 deletion lib/api_auth/src/accept.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use bencher_schema::{
};
use dropshot::{endpoint, HttpError, RequestContext, TypedBody};

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/auth/accept",
Expand Down
2 changes: 1 addition & 1 deletion lib/api_auth/src/confirm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use dropshot::{endpoint, HttpError, RequestContext, TypedBody};

use super::CLIENT_TOKEN_TTL;

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/auth/confirm",
Expand Down
2 changes: 1 addition & 1 deletion lib/api_auth/src/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use super::CLIENT_TOKEN_TTL;

pub const GITHUB_OAUTH2: &str = "GitHub OAuth2";

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/auth/github",
Expand Down
2 changes: 1 addition & 1 deletion lib/api_auth/src/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use slog::Logger;
use super::AUTH_TOKEN_TTL;
use super::TOKEN_ARG;

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/auth/login",
Expand Down
2 changes: 1 addition & 1 deletion lib/api_auth/src/signup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use slog::Logger;
use super::AUTH_TOKEN_TTL;
use super::TOKEN_ARG;

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/auth/signup",
Expand Down
2 changes: 1 addition & 1 deletion lib/api_checkout/src/checkout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use bencher_schema::{
};
use dropshot::{endpoint, HttpError, RequestContext, TypedBody};

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/checkout",
Expand Down
2 changes: 1 addition & 1 deletion lib/api_organizations/src/allowed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct OrgAllowedParams {
pub permission: OrganizationPermission,
}

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/organizations/{organization}/allowed/{permission}",
Expand Down
2 changes: 1 addition & 1 deletion lib/api_organizations/src/claim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub struct OrgClaimParams {
pub organization: ResourceId,
}

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/organizations/{organization}/claim",
Expand Down
6 changes: 3 additions & 3 deletions lib/api_organizations/src/members.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use bencher_schema::{
schema, INVITE_TOKEN_TTL,
};
use diesel::{
BoolExpressionMethods, ExpressionMethods, QueryDsl, RunQueryDsl, TextExpressionMethods,
BoolExpressionMethods as _, ExpressionMethods as _, QueryDsl as _, RunQueryDsl as _, TextExpressionMethods as _,
};
use dropshot::{endpoint, HttpError, Path, Query, RequestContext, TypedBody};
use schemars::JsonSchema;
Expand Down Expand Up @@ -53,7 +53,7 @@ pub struct OrgMembersQuery {
pub search: Option<Search>,
}

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/organizations/{organization}/members",
Expand Down Expand Up @@ -327,7 +327,7 @@ pub struct OrgMemberParams {
pub user: ResourceId,
}

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/organizations/{organization}/members/{user}",
Expand Down
6 changes: 3 additions & 3 deletions lib/api_organizations/src/organizations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use bencher_schema::{
schema,
};
use diesel::{
BoolExpressionMethods, ExpressionMethods, QueryDsl, RunQueryDsl, TextExpressionMethods,
BoolExpressionMethods as _, ExpressionMethods as _, QueryDsl as _, RunQueryDsl as _, TextExpressionMethods as _,
};
use dropshot::{endpoint, HttpError, Path, Query, RequestContext, TypedBody};
use schemars::JsonSchema;
Expand All @@ -42,7 +42,7 @@ pub struct OrganizationsQuery {
pub search: Option<Search>,
}

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/organizations",
Expand Down Expand Up @@ -192,7 +192,7 @@ pub struct OrganizationParams {
pub organization: ResourceId,
}

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/organizations/{organization}",
Expand Down
4 changes: 2 additions & 2 deletions lib/api_organizations/src/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use bencher_schema::{
},
schema,
};
use diesel::{BelongingToDsl, ExpressionMethods, QueryDsl, RunQueryDsl};
use diesel::{BelongingToDsl as _, ExpressionMethods as _, QueryDsl as _, RunQueryDsl as _};
use dropshot::{endpoint, HttpError, Path, Query, RequestContext, TypedBody};
use schemars::JsonSchema;
use serde::Deserialize;
Expand All @@ -37,7 +37,7 @@ pub struct OrgPlanParams {
pub organization: ResourceId,
}

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/organizations/{organization}/plan",
Expand Down
6 changes: 3 additions & 3 deletions lib/api_organizations/src/projects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ use bencher_schema::{
schema,
};
use diesel::{
BelongingToDsl, BoolExpressionMethods, ExpressionMethods, QueryDsl, RunQueryDsl,
TextExpressionMethods,
BelongingToDsl as _, BoolExpressionMethods as _, ExpressionMethods as _, QueryDsl as _, RunQueryDsl as _,
TextExpressionMethods as _,
};
use dropshot::{endpoint, HttpError, Path, Query, RequestContext, TypedBody};
use schemars::JsonSchema;
Expand Down Expand Up @@ -59,7 +59,7 @@ pub struct OrgProjectsQuery {
pub search: Option<Search>,
}

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/organizations/{organization}/projects",
Expand Down
6 changes: 3 additions & 3 deletions lib/api_organizations/src/usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use bencher_schema::{
user::auth::{AuthUser, BearerToken},
},
};
use diesel::{BelongingToDsl, RunQueryDsl};
use diesel::{BelongingToDsl as _, RunQueryDsl as _};
use dropshot::{endpoint, HttpError, Path, RequestContext};
use schemars::JsonSchema;
use serde::Deserialize;
Expand All @@ -32,7 +32,7 @@ pub struct OrgUsageParams {
pub organization: ResourceId,
}

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/organizations/{organization}/usage",
Expand Down Expand Up @@ -66,7 +66,7 @@ pub async fn org_usage_get(
Ok(Get::auth_response_ok(json))
}

#[allow(clippy::too_many_lines)]
#[expect(clippy::too_many_lines)]
async fn get_inner(
context: &ApiContext,
path_params: OrgUsageParams,
Expand Down
8 changes: 4 additions & 4 deletions lib/api_projects/src/alerts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use bencher_schema::{
},
schema,
};
use diesel::{BoolExpressionMethods, ExpressionMethods, QueryDsl, RunQueryDsl, SelectableHelper};
use diesel::{BoolExpressionMethods as _, ExpressionMethods as _, QueryDsl as _, RunQueryDsl as _, SelectableHelper as _};
use dropshot::{endpoint, HttpError, Path, Query, RequestContext, TypedBody};
use schemars::JsonSchema;
use serde::Deserialize;
Expand Down Expand Up @@ -50,7 +50,7 @@ pub struct ProjAlertsQuery {
pub archived: Option<bool>,
}

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/projects/{project}/alerts",
Expand Down Expand Up @@ -190,7 +190,7 @@ fn get_ls_query<'q>(
.and(schema::testbed::archived.is_null())
.and(schema::measure::archived.is_null()),
);
};
}

match pagination_params.order() {
ProjAlertsSort::Created => match pagination_params.direction {
Expand Down Expand Up @@ -286,7 +286,7 @@ pub struct ProjAlertParams {
pub alert: AlertUuid,
}

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/projects/{project}/alerts/{alert}",
Expand Down
2 changes: 1 addition & 1 deletion lib/api_projects/src/allowed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct ProjAllowedParams {
pub permission: ProjectPermission,
}

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/projects/{project}/allowed/{permission}",
Expand Down
10 changes: 5 additions & 5 deletions lib/api_projects/src/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ use bencher_schema::{
schema,
};
use diesel::{
BelongingToDsl, BoolExpressionMethods, ExpressionMethods, QueryDsl, RunQueryDsl,
TextExpressionMethods,
BelongingToDsl as _, BoolExpressionMethods as _, ExpressionMethods as _, QueryDsl as _, RunQueryDsl as _,
TextExpressionMethods as _,
};
use dropshot::{endpoint, HttpError, Path, Query, RequestContext, TypedBody};
use schemars::JsonSchema;
Expand Down Expand Up @@ -56,7 +56,7 @@ pub struct ProjBenchmarksQuery {
pub archived: Option<bool>,
}

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/projects/{project}/benchmarks",
Expand Down Expand Up @@ -169,7 +169,7 @@ fn get_ls_query<'q>(
query = query.filter(schema::benchmark::archived.is_not_null());
} else {
query = query.filter(schema::benchmark::archived.is_null());
};
}

match pagination_params.order() {
ProjBenchmarksSort::Name => match pagination_params.direction {
Expand Down Expand Up @@ -233,7 +233,7 @@ pub struct ProjBenchmarkParams {
pub benchmark: ResourceId,
}

#[allow(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[expect(clippy::no_effect_underscore_binding, clippy::unused_async)]
#[endpoint {
method = OPTIONS,
path = "/v0/projects/{project}/benchmarks/{benchmark}",
Expand Down
Loading
Loading