Skip to content

Implement Feature Flags for Optional Blockchain SupportΒ #584

@NicoMolinaOZ

Description

@NicoMolinaOZ

Describe the feature

Add Cargo feature flags to allow compiling the relayer with only the blockchain(s) needed for a specific deployment. This will significantly reduce compilation time and binary size for single-blockchain deployments while maintaining full backward compatibility.

Goals

  • Reduce compilation time:
  • Reduce Binary size
  • Backward compatible: Default behavior includes all blockchains
  • Flexibility: Support any combination of EVM, Solana, and Stellar

Proposed Solution

Add three optional features to Cargo.toml:

  • evm - Ethereum Virtual Machine support (Alloy, etc)
  • solana - Solana blockchain support
  • stellar - Stellar blockchain support (Soroban)

Default: All three enabled (backward compatible)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-needs-triageRequires initial triage or categorizationT-featureSuggests a new feature or enhancementcla: allowlist

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions