Skip to content

Commit c7ec18c

Browse files
committed
Add changelog info, get rid of tarpaulin code coverage since
it does not work with nom at the moment - Remove new clippy warnings - Added feature description
1 parent b7287bf commit c7ec18c

File tree

7 files changed

+26
-44
lines changed

7 files changed

+26
-44
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ jobs:
6161
- uses: actions-rs/cargo@v1
6262
with:
6363
command: clippy
64-
args: -- -D warnings
64+
args: -- -A clippy::nonstandard_macro_braces -D warnings

.github/workflows/codecoverage.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [0.10.1] - 2021-07-12
10+
### Added
11+
- short feature description
12+
13+
## [0.10.0] - 2021-07-09
14+
### Changed
15+
- Formatting DLT non-verbose messages now shows the binary data rather then a `fibex missing`
16+
literal
17+
918
## [0.9.3] - 2021-05-03
1019
### Changed
1120
- Removed pcap-parser library dependency by introducing a feature

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dlt-core"
3-
version = "0.10.0"
3+
version = "0.10.1"
44
authors = ["Oliver Mueller <[email protected]>"]
55
edition = "2018"
66
description = """

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
[![LICENSE](https://img.shields.io/github/license/esrlabs/dlt-core?color=blue)](LICENSE.txt)
22
[![](https://github.com/esrlabs/dlt-core/workflows/CI/badge.svg)](https://github.com/esrlabs/dlt-core/actions)
3-
[![codecov](https://codecov.io/gh/esrlabs/dlt-core/branch/main/graph/badge.svg?token=GCUGZMVVNY)](https://codecov.io/gh/esrlabs/dlt-core)
43

54
# Autosar DLT Support
65

76
A library that support efficient parsing & writing log-messages encoded as `Diagnositic` `Log` and `Trace` messages.
87

8+
## Features
9+
10+
* compliant with the official Autosar DLT specification
11+
* efficiently parse binary DLT content
12+
* serialize DLT messages
13+
* support for non-verbose messages via FIBEX file information
14+
915
## Usage
1016

1117
Add this to your `Cargo.toml`:
1218

1319
```toml
1420
[dependencies]
15-
dlt_core = "0.9"
21+
dlt_core = "0.10"
1622
```
1723

1824
This is an example of how to parse a message and serialize it back to a byte array.

src/dlt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ impl PayloadContent {
13271327
}
13281328

13291329
pub(crate) fn as_bytes<T: ByteOrder>(&self) -> Vec<u8> {
1330-
let mut buf = BytesMut::with_capacity(payload_content_len::<T>(&self));
1330+
let mut buf = BytesMut::with_capacity(payload_content_len::<T>(self));
13311331
match &self {
13321332
PayloadContent::Verbose(args) => {
13331333
for arg in args {

src/parse.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -853,15 +853,15 @@ fn dlt_message_intern<'a>(
853853
dbg_parsed(
854854
"storage header",
855855
&input[(*shifted as usize)..],
856-
&after_storage_header,
856+
after_storage_header,
857857
&storage_header,
858858
)
859859
};
860860
let (after_storage_and_normal_header, header) = dlt_standard_header(after_storage_header)?;
861861
dbg_parsed(
862862
"normal header",
863-
&after_storage_header,
864-
&after_storage_and_normal_header,
863+
after_storage_header,
864+
after_storage_and_normal_header,
865865
&header,
866866
);
867867

@@ -877,8 +877,8 @@ fn dlt_message_intern<'a>(
877877
is_controll_msg = matches!(ext_header.message_type, MessageType::Control(_));
878878
dbg_parsed(
879879
"extended header",
880-
&after_storage_and_normal_header,
881-
&rest,
880+
after_storage_and_normal_header,
881+
rest,
882882
&ext_header,
883883
);
884884
(rest, Some(ext_header))
@@ -924,7 +924,7 @@ fn dlt_message_intern<'a>(
924924
is_controll_msg,
925925
)?
926926
};
927-
dbg_parsed("payload", &after_headers, &i, &payload);
927+
dbg_parsed("payload", after_headers, i, &payload);
928928
Ok((
929929
i,
930930
ParsedMessage::Item(Message {

0 commit comments

Comments
 (0)