• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tari-project / tari / 38579576051
77%

Build:
DEFAULT BRANCH: development
Ran 14 Oct 2026 03:50PM UTC
Jobs 1
Files 800
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Oct 2026 02:20PM UTC coverage: 75.204% (+0.3%) from 74.923%
38579576051

push

github

web-flow
fix(common): replace serde_yaml with serde-saphyr to drop unsafe-libyaml (#8116)

## Description

Removes `unsafe-libyaml` (RUSTSEC-2024-0449, unmaintained) from the
dependency tree.

It came in only through `serde_yaml` (itself deprecated), which had two
users:

- `tari_common`, directly, to parse `log4rs.yml`.
- `log4rs`, through its `yaml_format` feature, enabled in `tari_common`,
the node, console wallet, miner, peer sync and wallet FFI.

`tari_common` already parses the log config into log4rs's `RawConfig`
itself and calls `log4rs::init_raw_config`, so log4rs's own YAML loader
was never called. `yaml_format` was only pulling in `serde_yaml`.

Changes:

- **`common/src/logging.rs`**
- New `from_yaml` helper parses with
[`serde-saphyr`](https://crates.io/crates/serde-saphyr), the safe-Rust
parser the advisory recommends. Both the appender path check and the
final `RawConfig` go through it, so both still see the same document.
- Repeated keys keep the last value (`DuplicateKeyPolicy::LastWins`), as
`serde_yaml` did. serde-saphyr's default would reject them, which would
break existing user configs.
- `has_only_string_keys` now checks log4rs's `serde_value::Value`
directly instead of converting to `serde_yaml::Value` first. It is
slightly stricter: a key wrapped in an option or newtype is now refused
outright.
- **Manifests**: drops `serde_yaml` and every `yaml_format` feature. In
wallet FFI, `"default"` becomes `"all_components", "config_parsing"`,
which is log4rs's default minus `yaml_format`. Adds `serde-saphyr`
(deserialize only) and `serde-value` to `tari_common`.
- **Tests**: `embedded_default_log_configs_stay_in_the_log_dir` now also
parses every bundled sample config with the new parser and builds it
with `log4rs::config::create_raw_config`. A log4rs dev-dependency with
`all_components` lets the test build every appender kind.
- **`supply-chain/config.toml`**: drops the exemptions for `serde_yaml`
and `unsafe-libyaml` and adds exemptions for `... (continued)

21 of 23 new or added lines in 1 file covered. (91.3%)

245 existing lines in 17 files now uncovered.

126750 of 168541 relevant lines covered (75.2%)

320285.26 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
86.88
-0.07% common/src/logging.rs

Coverage Regressions

Lines Coverage ∆ File
177
47.74
0.08% base_layer/wallet/src/output_manager_service/service.rs
13
73.01
-0.34% comms/core/src/connectivity/manager.rs
12
60.45
1.49% base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs
7
69.3
5.92% base_layer/core/src/chain_storage/blockchain_database.rs
7
73.03
-1.97% comms/core/src/protocol/messaging/protocol.rs
6
81.25
1.61% base_layer/core/src/validation/helpers.rs
6
68.97
-0.07% base_layer/wallet/src/transaction_service/storage/sqlite_db.rs
4
89.57
-2.45% comms/core/src/protocol/messaging/outbound.rs
3
85.26
-0.6% comms/core/src/connection_manager/dialer.rs
2
73.15
0.14% base_layer/wallet/src/output_manager_service/storage/sqlite_db/mod.rs
2
84.54
-0.29% comms/core/src/protocol/rpc/client/mod.rs
1
74.61
-0.22% base_layer/core/src/mempool/sync_protocol/mod.rs
1
54.67
0.0% base_layer/core/src/validation/error.rs
1
78.72
0.0% base_layer/wallet/src/storage/sqlite_db/wallet.rs
1
86.88
-0.07% common/src/logging.rs
1
49.06
-0.94% comms/core/src/connectivity/selection.rs
1
78.57
-1.43% comms/core/src/test_utils/mocks/connection_manager.rs
Jobs
ID Job ID Ran Files Coverage
1 38579576051.1 14 Oct 2026 03:50PM UTC 800
75.2
GitHub Action Run
Source Files on build 38579576051
  • Tree
  • List 800
  • Changed 28
  • Source Changed 2
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38579576051
  • 5cc7a6e6 on github
  • Prev Build on development (#38417427474)
  • Next Build on development (#38604382781)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc