Skip to content

Add crossguard_log support to SourceConfig - #42

Merged
tuxmonteiro merged 1 commit into
mainfrom
feat/crossguard-log-support
Aug 12, 2026
Merged

Add crossguard_log support to SourceConfig#42
tuxmonteiro merged 1 commit into
mainfrom
feat/crossguard-log-support

Conversation

@tuxmonteiro

Copy link
Copy Markdown
Contributor

Implements issue #41.

Exposes the crossguard_log config field in SourceConfig, mirroring the existing checksum_log field. The cryptomeria-ingest library already gates Kraken crossing-guard rejection warnings behind crossguard_log (see its ADR-022), but criptomeria-marketdata was not forwarding the field.

Changes

  • src/config.rs: Added crossguard_log: bool field to SourceConfig with #[serde(default)] (defaults to false) and a doc comment referencing ADR-022. Forwarded crossguard_log in SourceConfig::to_data_source(), placed immediately after checksum_log. Added 4 unit tests mirroring the checksum_log suite.
  • docs/adr/Integration/ADR-013-20260812-expose-crossguard-log-config.md: New ADR documenting the decision, options considered, and consequences.

Verification

  • cargo test: 72 passed, 0 failed
  • cargo clippy --all-targets --all-features -- -D warnings: clean
  • cargo fmt --check: clean

Expose crossguard_log in SourceConfig, mirroring checksum_log. The cryptomeria-ingest library gates Kraken crossing-guard rejection warnings behind this field (ADR-022); this commit wires the config field and forward it in to_data_source().

- src/config.rs: add crossguard_log field to SourceConfig, forward in to_data_source, add tests
- docs/adr/Integration/ADR-013: document the decision
@tuxmonteiro
tuxmonteiro merged commit 94b9243 into main Aug 12, 2026
2 checks passed
@tuxmonteiro
tuxmonteiro deleted the feat/crossguard-log-support branch August 12, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant