Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ categories = ["embedded", "no-std", "encoding", "parsing"]
edition = "2021"
rust-version = "1.74"

[[example]]
name = "file_parser"
path = "examples/file_parser.rs"
required-features = ["encodings"]

[features]
default = ["with-serde", "encodings"]
default = ["serde", "encodings"]
# Support decoding from all standard encodings, e.g. cp1251 commonly used for dbc
encodings = ["dep:encoding_rs"]
serde = ["dep:serde"]
Expand Down
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ build-diagram:
# Quick compile without building a binary
check:
cargo check {{packages}} {{features}} {{targets}}
cargo check {{packages}} --no-default-features {{targets}}

# Generate code coverage report to upload to codecov.io
ci-coverage: env-info && \
Expand All @@ -43,7 +44,7 @@ ci-coverage: env-info && \
mkdir -p target/llvm-cov

# Run all tests as expected by CI
ci-test: env-info test-fmt clippy test test-doc deny && assert-git-is-clean
ci-test: env-info test-fmt check clippy test test-doc deny && assert-git-is-clean

# Run minimal subset of tests to ensure compatibility with MSRV
ci-test-msrv: env-info check test
Expand Down
Loading