Skip to content

Commit 435d31b

Browse files
krussmarcmo
authored andcommitted
Make fibex parsing a feature
1 parent cafa671 commit 435d31b

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.19.0] - 2025-02-06
10+
### Changed
11+
- Made fibex parsing a separate feature
12+
913
## [0.18.1] - 2025-01-31
1014
### Changed
1115
- Cleanup license headers (GH-issue #13)

Cargo.toml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dlt-core"
3-
version = "0.18.1"
3+
version = "0.19.0"
44
authors = ["esrlabs.com"]
55
edition = "2021"
66
description = """
@@ -13,20 +13,18 @@ repository = "https://github.com/esrlabs/dlt-core"
1313
buf_redux = { version = "0.8.4", optional = true }
1414
byteorder = "1.4"
1515
bytes = "1.0"
16-
derive_more = "0.99.13"
17-
lazy_static = "1.4"
1816
log = "0.4"
1917
memchr = "2.4"
2018
nom = "7.1"
21-
quick-xml = "0.29"
22-
rustc-hash = "1.1"
19+
quick-xml = { version = "0.29", optional = true }
2320
serde = { version = "1.0", features = ["derive"], optional = true }
2421
serde_json = { version = "1.0", optional = true }
2522
thiserror = "1.0"
2623

2724
[features]
2825
default = []
2926
statistics = [ "buf_redux" ]
27+
fibex_parser = [ "quick-xml" ]
3028
debug_parser = []
3129
serde-support = [
3230
"serde",

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ Below is the revised and improved English version of the documentation:
137137

138138
- **`statistics`**: Enables the `statistics` module, which scans the source data and provides a summary of its contents. This gives you an overview of the number of messages and their content.
139139

140+
- **`fibex_parser`**: Enables the `fibex` module, which allows to parse configurations for non-verbose messages from a fibex model.
141+
140142
- **`debug_parser`**: Adds additional log output for debugging purposes.
141143

142144
- **`serde-support`**: Adds `Serialize` and `Deserialize` implementations (via `serde`) to all public types. This feature is useful if you need to encode or decode these types for transmission or storage.

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
extern crate log;
2121

2222
pub mod dlt;
23+
#[cfg(feature = "fibex_parser")]
2324
pub mod fibex;
2425
pub mod filtering;
2526
pub mod parse;

src/tests/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#[macro_use]
1515
mod dlt_tests;
1616
mod dlt_parse_tests;
17+
#[cfg(feature = "fibex_parser")]
1718
mod fibex_tests;
1819
#[cfg(feature = "statistics")]
1920
mod statistics_tests;

0 commit comments

Comments
 (0)