Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.33 KB

File metadata and controls

55 lines (40 loc) · 1.33 KB

Contributing to rustledger

Thank you for your interest in contributing to rustledger!

Getting Started

  1. Fork the repository
  2. Clone your fork
  3. Create a feature branch: git checkout -b feature/your-feature
  4. Make your changes
  5. Run tests: cargo test --all-features
  6. Run lints: cargo clippy --all-features -- -D warnings
  7. Commit with conventional commits: git commit -m "feat: add feature"
  8. Push and open a Pull Request

Development Setup

# Clone
git clone https://github.com/rustledger/rustledger
cd rustledger

# Build
cargo build --all-features

# Test
cargo test --all-features

# Lint
cargo clippy --all-features -- -D warnings
cargo fmt --all -- --check

Code Standards

  • Use Result<T, E> for fallible operations
  • Prefer ? operator over .unwrap() in production code
  • Add tests for new functionality
  • Document public APIs with doc comments
  • Follow existing code style

Commit Messages

We use conventional commits:

  • feat: - New features
  • fix: - Bug fixes
  • docs: - Documentation changes
  • refactor: - Code refactoring
  • test: - Test additions/changes
  • chore: - Maintenance tasks

Questions?

Open a discussion or reach out to the maintainers.