Contributing
We welcome contributions to Flicker!
Prerequisites
- Rust 1.70+
- Cargo
Development Workflow
Clone the repo:
bashgit clone https://github.com/DavidHoenisch/flicker.git cd flickerRun Tests:
bashcargo testFormat Code:
bashcargo fmtLint:
bashcargo clippy
Adding Destinations
To add a new destination (e.g., Kafka, S3):
- Create a new module in
src/destinations/. - Implement the
Destinationtrait:rust#[async_trait] impl Destination for MyNewDestination { async fn send_batch(&self, entries: Vec<LogEntry>) -> Result<()> { // Implementation } } - Register it in
src/destinations/mod.rsfactory. - Add configuration structs in
src/config.rs.
