Skip to content

Commit dc20ccb

Browse files
committed
v0.1.9
1 parent 44ce170 commit dc20ccb

10 files changed

Lines changed: 41 additions & 40 deletions

File tree

‎.github/workflows/check.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
run: python3 -m pip install --user clang-format==22.1.5
1818

1919
- name: Check formatting
20-
uses: hypengw/lito-action@v0.1.0
20+
uses: hypengw/lito-action@v0.1.1
2121
with:
2222
command: format-check

‎.github/workflows/publish.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/checkout@v4
2525

2626
- name: Publish packages
27-
uses: hypengw/lito-action@v0.1.0
27+
uses: hypengw/lito-action@v0.1.1
2828
with:
2929
command: publish
3030
token: ${{ secrets.LITO_TOKEN }}

‎CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.28)
22
project(
33
rstd
4-
VERSION 0.1.8
4+
VERSION 0.1.9
55
DESCRIPTION "Rust-like std for C++"
66
LANGUAGES CXX)
77

‎lito.toml‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ members = [
2020
]
2121

2222
[workspace.package]
23-
version = "0.1.8"
23+
version = "0.1.9"
2424
license = "MIT OR Apache-2.0"
2525
authors = ["hypengw <hypengwip@gmail.com>"]
2626

2727
[workspace.dependencies]
28-
rstd-bench = { path = "src/bench", version = "0.1.8" }
29-
rstd-json = { path = "src/json", version = "0.1.8" }
30-
rstd-basic = { path = "src/basic", version = "0.1.8" }
31-
rstd-runtime = { path = "src/runtime", version = "0.1.8" }
32-
rstd-core = { path = "src/core", version = "0.1.8" }
33-
rstd-alloc = { path = "src/alloc", version = "0.1.8" }
34-
rstd-parse = { path = "src/parse", version = "0.1.8" }
35-
rstd-serde = { path = "src/serde", version = "0.1.8" }
36-
rstd-std = { path = "src/std", version = "0.1.8" }
28+
rstd-bench = { path = "src/bench", version = "0.1.9" }
29+
rstd-json = { path = "src/json", version = "0.1.9" }
30+
rstd-basic = { path = "src/basic", version = "0.1.9" }
31+
rstd-runtime = { path = "src/runtime", version = "0.1.9" }
32+
rstd-core = { path = "src/core", version = "0.1.9" }
33+
rstd-alloc = { path = "src/alloc", version = "0.1.9" }
34+
rstd-parse = { path = "src/parse", version = "0.1.9" }
35+
rstd-serde = { path = "src/serde", version = "0.1.9" }
36+
rstd-std = { path = "src/std", version = "0.1.9" }
3737

3838
[profile.base]
3939
exceptions = false

‎release.xml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
<release version="0.1.9" date="2026-10-19">
2+
<description>
3+
<ul>
4+
<li>Add allocator ownership to Box, Arc, Rc, collections and Bytes.</li>
5+
<li>Add Bytes mutable recovery and Vec::into_bytes with alignment preservation.</li>
6+
<li>Add try_reserve to HashMap and HashSet.</li>
7+
<li>Extend MaybeUninit and borrowed I/O buffers.</li>
8+
<li>Add Unicode 18.0.0 classification and Char-based string iteration.</li>
9+
<li>Add Vec bulk operations and optimize iterator consumption.</li>
10+
<li>Split system modules and expose shared resource types.</li>
11+
<li>Extend benchmark reports, JSON output and statistics.</li>
12+
<li>Fix decimal Display padding.</li>
13+
</ul>
14+
</description>
15+
</release>
116
<release version="0.1.8" date="2026-10-13">
217
<description>
318
<ul>

‎src/alloc/src/rc.cppm‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ using namespace rstd::prelude;
1313
namespace alloc::rc
1414
{
1515

16-
export enum class StoragePolicy : rstd::uint32_t
17-
{
18-
Embed = 0,
19-
Separate,
20-
SeparateWithDeleter
21-
};
16+
export enum class StoragePolicy : rstd::uint32_t { Embed = 0, Separate, SeparateWithDeleter };
2217

2318
export template<typename T>
2419
class Rc;

‎src/core/src/array.cppm‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,18 +148,18 @@ public:
148148
{}
149149

150150
template<typename... Us>
151-
requires(N > 0 && UNINIT && sizeof...(Us) == N && (mtp::init<T, Us&&> && ...))
151+
requires(N > 0 && UNINIT && sizeof...(Us) == N && (mtp::init<T, Us &&> && ...))
152152
array(Us&&... values) noexcept((mtp::noex_init_v<T, Us&&> && ...))
153153
: m_storage(T(rstd::forward<Us>(values))...) {}
154154

155155
template<typename... Us>
156156
requires(N > 0 && ! UNINIT && ! mtp::same_as<T, u8> && sizeof...(Us) == N &&
157-
(mtp::init<T, Us&&> && ...))
157+
(mtp::init<T, Us &&> && ...))
158158
constexpr array(Us&&... values) noexcept((mtp::noex_init_v<T, Us&&> && ...))
159159
: m_storage { { rstd::forward<Us>(values)... } } {}
160160

161161
template<typename... Us>
162-
requires(N > 0 && mtp::same_as<T, u8> && sizeof...(Us) == N && (mtp::init<T, Us&&> && ...))
162+
requires(N > 0 && mtp::same_as<T, u8> && sizeof...(Us) == N && (mtp::init<T, Us &&> && ...))
163163
constexpr array(Us&&... values) noexcept((mtp::noex_init_v<T, Us&&> && ...))
164164
: m_storage { { u8(rstd::forward<Us>(values)).to_byte()... } } {}
165165

‎src/std/src/fs/mod.cppm‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,12 @@ public:
5050
auto keep() -> rstd::path::PathBuf;
5151
};
5252

53-
export enum class FileLockMode
54-
{
53+
export enum class FileLockMode {
5554
Shared,
5655
Exclusive,
5756
};
5857

59-
export enum class WriteOutcome
60-
{
58+
export enum class WriteOutcome {
6159
Created,
6260
Replaced,
6361
Unchanged,

‎src/std/src/sys/fs/contract.cppm‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ export struct DirectoryEntryData {
4747
rstd::fs::FileTypeKind file_type;
4848
};
4949

50-
export enum class LockMode
51-
{
50+
export enum class LockMode {
5251
Exclusive,
5352
Shared,
5453
TryExclusive,

‎src/std/src/sys/pal/poll/types.cppm‎

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ using rstd::mem::MaybeUninit;
1111
namespace rstd::sys::pal::poll
1212
{
1313

14-
export enum class Capability : rstd::uint8_t
15-
{
14+
export enum class Capability : rstd::uint8_t {
1615
Readiness = 1,
1716
SocketCompletion = 2,
1817
FileCompletion = 4,
@@ -70,36 +69,31 @@ export struct Ready {
7069
constexpr auto is_empty() const noexcept -> bool { return bits == 0; }
7170
};
7271

73-
export enum class EventKind
74-
{
72+
export enum class EventKind {
7573
Wake,
7674
Readiness,
7775
Completion,
7876
SourceError,
7977
};
8078

81-
export enum class OperationKind
82-
{
79+
export enum class OperationKind {
8380
Read,
8481
Write,
8582
Connect,
8683
Accept,
8784
};
8885

89-
export enum class SourceKind
90-
{
86+
export enum class SourceKind {
9187
File,
9288
Socket,
9389
};
9490

95-
export enum class WaitMode
96-
{
91+
export enum class WaitMode {
9792
Immediate,
9893
Infinite,
9994
};
10095

101-
export enum class BackendPreference
102-
{
96+
export enum class BackendPreference {
10397
Auto,
10498
NativeCompletionRequired,
10599
ReadinessEmulationRequired,

0 commit comments

Comments
 (0)