Skip to content

Commit 1ca06a9

Browse files
author
Denis Yermakou
committed
v0.3.4: fix double trailing newlines in 13 source files
In v0.3.1, a defensive 'ensure EOF newline' bash script had inverted logic that added an extra newline to files already ending with one. This created double trailing newlines that rustfmt --check rejected. Fixed via byte-level Python normalisation: data.rstrip(b'\n') + b'\n' # exactly one trailing LF Affects 13 files: 12 in src/, 1 in benches/. No source-code or API changes. Pure file-byte fix. cargo fmt --check now passes.
1 parent a66f6f5 commit 1ca06a9

15 files changed

Lines changed: 43 additions & 14 deletions

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,48 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
66

77
---
88

9+
## [v0.3.4] — 2026-05-18
10+
11+
Pure CI-fix release. No code or API changes.
12+
13+
### Fixed — double trailing newlines in 13 source files
14+
15+
In v0.3.1, a defensive "ensure EOF newline" script had inverted-logic
16+
that added an additional newline to files that already ended with one,
17+
creating two trailing newlines. `cargo fmt --check` flagged this in CI.
18+
19+
```diff
20+
fn last_test() {
21+
assert_eq!(...);
22+
}
23+
-
24+
25+
```
26+
(rustfmt wants exactly one blank line after the last `}`, not two.)
27+
28+
Affected files (now corrected):
29+
- `src/capability.rs`, `src/error.rs`, `src/ffi.rs`, `src/host.rs`,
30+
`src/intent.rs`, `src/lib.rs`, `src/manifest.rs`, `src/mesh.rs`,
31+
`src/stream.rs`, `src/telemetry.rs`, `src/time.rs`,
32+
`src/zerocopy_ext.rs`, `benches/intent_throughput.rs`
33+
34+
All 13 files now have exactly one trailing newline as rustfmt expects.
35+
36+
### Verified
37+
38+
A byte-level check confirms each file ends with exactly one `\n`:
39+
40+
```python
41+
data.rstrip(b'\n') + b'\n' # idempotent: one and only one trailing LF
42+
```
43+
44+
### Notes
45+
46+
- No source-code changes (only EOF byte normalisation).
47+
- No API surface changes.
48+
- KERNEL_ABI_VERSION unchanged (= 1).
49+
50+
951
## [v0.3.3] — 2026-05-18
1052

1153
Automation release — tag pushes now produce real GitHub Releases.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: Apache-2.0 OR MIT
22
[package]
33
name = "axonos-sdk"
4-
version = "0.3.3"
4+
version = "0.3.4"
55
edition = "2021"
66
rust-version = "1.85"
77
authors = ["Denis Yermakou <denis@axonos.org>"]

benches/intent_throughput.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,3 @@ criterion_group!(
7373
bench_monotonic_timestamp_ops,
7474
);
7575
criterion_main!(benches);
76-

src/capability.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,4 +645,3 @@ mod tests {
645645
assert!(two_caps.is_subset_of(CapabilitySet::all()));
646646
}
647647
}
648-

src/error.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,3 @@ mod tests {
200200
assert_eq!(Error::AttestationFailed.code() as u16, 0x0402);
201201
}
202202
}
203-

src/ffi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44

55
//! Foreign Function Interface bindings for C/C++ and Python.
66
// TODO: Implement exported C-API for AI layer integration.
7-

src/host.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,3 @@ mod tests {
233233
assert!(matches!(ep, Cow::Borrowed(_)));
234234
}
235235
}
236-

src/intent.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,4 +450,3 @@ mod tests {
450450
assert_eq!(obs.timestamp().as_micros(), 1234);
451451
}
452452
}
453-

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,3 @@ mod tests {
117117
assert_eq!(CONFIDENCE_DENOM, 65535);
118118
}
119119
}
120-

src/manifest.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,3 @@ mod tests {
323323
}
324324
}
325325
}
326-

0 commit comments

Comments
 (0)