Skip to content

Commit 8c6f4c9

Browse files
committed
Merge branch 'master' into non_string_header_key
2 parents 7e10a96 + 9f00576 commit 8c6f4c9

File tree

22 files changed

+100
-88
lines changed

22 files changed

+100
-88
lines changed

.github/actions/utils/docker-buildx/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ runs:
304304
echo "RUST_VERSION=$ver" >> "$GITHUB_ENV"
305305
echo "Using toolchain: $ver"
306306
else
307-
echo "RUST_VERSION=1.92" >> "$GITHUB_ENV"
308-
echo "No rust-toolchain.toml found; labeling as 1.92"
307+
echo "RUST_VERSION=1.93" >> "$GITHUB_ENV"
308+
echo "No rust-toolchain.toml found; labeling as 1.93"
309309
fi
310310
311311
- name: Compose build args

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
ARG RUST_VERSION=1.92
18+
ARG RUST_VERSION=1.93
1919

2020
FROM rust:${RUST_VERSION}-slim-bookworm AS builder
2121

bdd/java/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
ARG RUST_VERSION=1.92
18+
ARG RUST_VERSION=1.93
1919
FROM rust:${RUST_VERSION}
2020

2121
FROM gradle:9.2-jdk17

bdd/python/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717

1818
# syntax=docker/dockerfile:1
19-
ARG RUST_VERSION=1.92
19+
ARG RUST_VERSION=1.93
2020
FROM rust:${RUST_VERSION}-slim-trixie
2121

2222
RUN apt-get update && \

bdd/rust/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
ARG RUST_VERSION=1.92
18+
ARG RUST_VERSION=1.93
1919
FROM rust:${RUST_VERSION}
2020

2121
WORKDIR /app

core/ai/mcp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
ARG RUST_VERSION=1.92
18+
ARG RUST_VERSION=1.93
1919
ARG ALPINE_VERSION=3.22
2020

2121
FROM --platform=$BUILDPLATFORM lukemathwalker/cargo-chef:latest-rust-${RUST_VERSION}-alpine AS chef

core/bench/dashboard/server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
ARG RUST_VERSION=1.92
18+
ARG RUST_VERSION=1.93
1919

2020
# Build stage
2121
FROM rust:${RUST_VERSION}-slim-trixie AS builder

core/common/src/lib.rs

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
// Licensed to the Apache Software Foundation (ASF) under one
2-
// or more contributor license agreements. See the NOTICE file
3-
// distributed with this work for additional information
4-
// regarding copyright ownership. The ASF licenses this file
5-
// to you under the Apache License, Version 2.0 (the
6-
// "License"); you may not use this file except in compliance
7-
// with the License. You may obtain a copy of the License at
8-
//
9-
// http://www.apache.org/licenses/LICENSE-2.0
10-
//
11-
// Unless required by applicable law or agreed to in writing,
12-
// software distributed under the License is distributed on an
13-
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
// KIND, either express or implied. See the License for the
15-
// specific language governing permissions and limitations
16-
// under the License.
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
1719

1820
mod alloc;
1921
mod certificates;
@@ -105,3 +107,4 @@ pub use utils::personal_access_token_expiry::PersonalAccessTokenExpiry;
105107
pub use utils::text;
106108
pub use utils::timestamp::*;
107109
pub use utils::topic_size::MaxTopicSize;
110+
pub use utils::versioning::SemanticVersion;

core/common/src/utils/mod.rs

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
// Licensed to the Apache Software Foundation (ASF) under one
2-
// or more contributor license agreements. See the NOTICE file
3-
// distributed with this work for additional information
4-
// regarding copyright ownership. The ASF licenses this file
5-
// to you under the Apache License, Version 2.0 (the
6-
// "License"); you may not use this file except in compliance
7-
// with the License. You may obtain a copy of the License at
8-
//
9-
// http://www.apache.org/licenses/LICENSE-2.0
10-
//
11-
// Unless required by applicable law or agreed to in writing,
12-
// software distributed under the License is distributed on an
13-
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
// KIND, either express or implied. See the License for the
15-
// specific language governing permissions and limitations
16-
// under the License.
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
1719

1820
pub(crate) mod byte_size;
1921
pub(crate) mod checksum;
@@ -25,3 +27,4 @@ pub(crate) mod personal_access_token_expiry;
2527
pub mod text;
2628
pub(crate) mod timestamp;
2729
pub(crate) mod topic_size;
30+
pub(crate) mod versioning;
Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Licensed to the Apache Software Foundation (ASF) under one
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
23
* or more contributor license agreements. See the NOTICE file
34
* distributed with this work for additional information
45
* regarding copyright ownership. The ASF licenses this file
@@ -16,8 +17,7 @@
1617
* under the License.
1718
*/
1819

19-
use crate::VERSION;
20-
use iggy_common::IggyError;
20+
use crate::IggyError;
2121
use std::borrow::Cow;
2222
use std::fmt::Display;
2323
use std::str::FromStr;
@@ -150,11 +150,7 @@ impl FromStr for SemanticVersion {
150150
}
151151

152152
impl SemanticVersion {
153-
pub const fn current() -> Self {
154-
Self::parse_const(VERSION)
155-
}
156-
157-
const fn parse_const(s: &'static str) -> Self {
153+
pub const fn parse_const(s: &'static str) -> Self {
158154
let bytes = s.as_bytes();
159155

160156
// Split on '+' to ignore build metadata
@@ -327,21 +323,6 @@ mod tests {
327323
assert_eq!(SEMVER_3.prerelease, Some(Cow::Borrowed("alpha.2")));
328324
}
329325

330-
#[test]
331-
fn test_semantic_version_current() {
332-
let version = SemanticVersion::current();
333-
334-
assert!(version.major < 1000);
335-
assert!(version.minor < 1000);
336-
assert!(version.patch < 1000);
337-
}
338-
339-
#[test]
340-
fn should_load_the_expected_version_from_package_definition() {
341-
const CARGO_TOML_VERSION: &str = env!("CARGO_PKG_VERSION");
342-
assert_eq!(crate::VERSION, CARGO_TOML_VERSION);
343-
}
344-
345326
#[test]
346327
fn should_parse_basic_semantic_version() {
347328
let version = "1.2.3".parse::<SemanticVersion>().unwrap();

0 commit comments

Comments
 (0)