HomePhabricator

[Chronik] Move `chronik-plugin` to `chronik-plugin-impl`, add `chronik-plugin`…

Description

[Chronik] Move chronik-plugin to chronik-plugin-impl, add chronik-plugin multiplex crate

Summary:
Currently, using chronik-plugin in the indexer is a bit tedious, as everything has to be #[cfg(feature = "plugins")] gated, which is hard to maintain.

Instead, we move the current chronik-plugin to chronik-plugin-impl, which is then re-exported in a new chronik-plugin crate if the plugins feature is enabled, and otherwise it exports fallback structs.

Depends on D15394.

Test Plan: ninja check-functional

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D15395

Details

Provenance
tobias_ruckAuthored on Feb 6 2024, 09:47
tobias_ruckPushed on Feb 12 2024, 12:43
Reviewer
Restricted Project
Differential Revision
D15395: [Chronik] Move `chronik-plugin` to `chronik-plugin-impl`, add `chronik-plugin` multiplex crate
Parents
rABC3fbd43e1bdea: [Chronik] Fix `TxTokenData::from_db`
Branches
Unknown
Tags
Unknown