Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.33 KB

CONTRIBUTING.md

File metadata and controls

58 lines (41 loc) · 1.33 KB

Contributing to xmlschema-rs

Thank you for your interest in contributing to xmlschema-rs!

Getting Started

  1. Fork the repository
  2. Clone your fork:
    git clone https://github.com/<your-username>/xmlschema-rs.git
    cd xmlschema-rs
  3. Create a feature branch:
    git checkout -b feature/your-feature

Development

Prerequisites

  • Rust 1.77+
  • Node.js 16+ (for npm/wasm packages)
  • Python 3.8+ (for W3C tests)

Build & Test

cargo build              # Build
cargo test               # Run tests
cargo clippy             # Lint
cargo fmt --check        # Format check

All pull requests must pass these gates before merging.

Code Style

  • Follow standard Rust conventions (rustfmt defaults)
  • Add // SAFETY: comments for any unsafe blocks
  • Keep public API changes minimal and documented

Submitting Changes

  1. Ensure all tests pass (cargo test)
  2. Ensure no clippy warnings (cargo clippy -- -D warnings)
  3. Ensure code is formatted (cargo fmt)
  4. Write clear commit messages
  5. Open a pull request against main

Reporting Issues

  • Use GitHub Issues for bug reports and feature requests
  • For security vulnerabilities, see SECURITY.md

License

By contributing, you agree that your contributions will be licensed under the MIT License.