Skip to content

Commit db9a23f

Browse files
authored
Merge pull request #402 from Tencent/release/v1.3.1
Release/v1.3.1
2 parents 875c94c + fef154b commit db9a23f

File tree

8 files changed

+37
-30
lines changed

8 files changed

+37
-30
lines changed

.cargo/aarch64-unknown-linux-ohos-clang.sh

-7
This file was deleted.

.cargo/config.toml

-3
This file was deleted.

.github/workflows/rust.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -132,20 +132,20 @@ jobs:
132132
- uses: actions/checkout@v3
133133
with:
134134
submodules: 'recursive'
135-
- name: Install rust toolchain
136-
run: rustup target add ${{ env.TARGET }}
137-
- name: Download OHOS NDK
138-
run: |
139-
wget https://repo.huaweicloud.com/openharmony/os/4.0-Release/ohos-sdk-windows_linux-public.tar.gz
140-
tar -xvzf ohos-sdk-windows_linux-public.tar.gz
141-
cd ohos-sdk/linux/
142-
unzip -q native-linux-x64-4.0.10.13-Release.zip
135+
136+
- name: Setup OpenHarmony SDK
137+
uses: openharmony-rs/[email protected]
138+
with:
139+
version: '4.1'
140+
141+
- name: Setup Rust environment
142+
uses: dtolnay/rust-toolchain@stable
143+
with:
144+
toolchain: stable
145+
target: 'aarch64-unknown-linux-ohos,armv7-unknown-linux-ohos,x86_64-unknown-linux-ohos'
146+
143147
- name: Run cargo build
144-
run: |
145-
OHOS_NDK_HOME=${{ github.workspace }}/ohos-sdk/linux/ \
146-
CC_aarch64_unknown_linux_ohos=${OHOS_NDK_HOME}/native/llvm/bin/clang \
147-
AR_aarch64_unknown_linux_ohos=${OHOS_NDK_HOME}/native/llvm/bin/llvm-ar \
148-
cargo build --target ${{ env.TARGET }} --verbose --features ffi --release
148+
run: cargo install ohrs && ohrs build -- --verbose --features ffi --release
149149

150150
static_analysis:
151151
name: Static analysis

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ Cargo.lock
1818

1919
# Misc
2020
.DS_Store
21+
22+
dist

CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1111
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1212

1313

14+
## [v1.3.1] - 2024-10-11
15+
16+
### Added
17+
- Use ohrs to build tquic for HarmaryOS
18+
- Support building for HarmonyOS on arm/x86_64 architecture
19+
20+
1421
## [v1.3.0] - 2024-10-10
1522

1623
### Added
17-
- Support building for HarmonyOS
24+
- Support building for HarmonyOS on aarch64 architecture
1825
- Support disable_1rtt_encryption transport parameter
1926
- Support sending 1-RTT packets on the server before handshake completion
2027
- Resolve new issues found by cargo clippy
@@ -319,6 +326,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
319326
- Provide example clients and servers.
320327

321328

329+
[v1.3.1]: https://github.com/tencent/tquic/compare/v1.3.0...v1.3.1
322330
[v1.3.0]: https://github.com/tencent/tquic/compare/v1.2.0...v1.3.0
323331
[v1.2.0]: https://github.com/tencent/tquic/compare/v1.1.0...v1.2.0
324332
[v1.1.0]: https://github.com/tencent/tquic/compare/v1.0.0...v1.1.0

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tquic"
3-
version = "1.3.0"
3+
version = "1.3.1"
44
edition = "2021"
55
rust-version = "1.70.0"
66
license = "Apache-2.0"

src/build.rs

+10-3
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,11 @@ const CMAKE_PARAMS_IOS: &[(&str, &[(&str, &str)])] = &[
5858
];
5959

6060
/// Additional parameters for Ohos
61-
const CMAKE_PARAMS_OHOS_NDK: &[(&str, &[(&str, &str)])] =
62-
&[("aarch64", &[("OHOS_ARCH", "arm64-v8a")])];
61+
const CMAKE_PARAMS_OHOS_NDK: &[(&str, &[(&str, &str)])] = &[
62+
("aarch64", &[("OHOS_ARCH", "arm64-v8a")]),
63+
("arm", &[("OHOS_ARCH", "armeabi-v7a")]),
64+
("x86_64", &[("OHOS_ARCH", "x86_64")]),
65+
];
6366

6467
/// Create a cmake::Config for building BoringSSL.
6568
fn new_boringssl_cmake_config() -> cmake::Config {
@@ -112,7 +115,11 @@ fn new_boringssl_cmake_config() -> cmake::Config {
112115
for (name, value) in *params {
113116
boringssl_cmake.define(name, value);
114117
}
115-
break;
118+
// common arguments for ohos help us to ignore some error
119+
boringssl_cmake
120+
.define("CMAKE_C_FLAGS", "-Wno-unused-command-line-argument");
121+
boringssl_cmake
122+
.define("CMAKE_CXX_FLAGS", "-Wno-unused-command-line-argument");
116123
}
117124
}
118125

tools/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tquic_tools"
3-
version = "1.3.0"
3+
version = "1.3.1"
44
edition = "2021"
55
rust-version = "1.70.0"
66
license = "Apache-2.0"
@@ -22,7 +22,7 @@ slab = "0.4"
2222
rand = "0.8.5"
2323
statrs = "0.16"
2424
signal-hook = "0.3.17"
25-
tquic = { path = "..", version = "1.3.0"}
25+
tquic = { path = "..", version = "1.3.1"}
2626

2727
[target."cfg(unix)".dependencies]
2828
jemallocator = { version = "0.5", package = "tikv-jemallocator" }

0 commit comments

Comments
 (0)