Skip to main content

COMPRESSION_ALGORITHMS

Static COMPRESSION_ALGORITHMS 

Source
pub static COMPRESSION_ALGORITHMS: DistributedSlice<[&'static dyn CompressionAlgorithm]>
Expand description

Global registry of all compile-time registered compression plugins

Plugins register themselves by adding to this distributed slice using:

use crush_core::plugin::{CompressionAlgorithm, COMPRESSION_ALGORITHMS};
use linkme::distributed_slice;

// Plugin registration example (requires implementing CompressionAlgorithm)
// #[distributed_slice(COMPRESSION_ALGORITHMS)]
// static MY_PLUGIN: &dyn CompressionAlgorithm = &MyPluginImpl;