|
| 1 | +# Contributing to Oxideon |
| 2 | + |
| 3 | +Thanks for your interest in contributing to **Oxideon**! Every kind of contribution is welcome—bug fixes, SIMD/CUDA kernels, Python/FFI ergonomics, docs, tests, and benchmarks. |
| 4 | + |
| 5 | +## Getting Started |
| 6 | + |
| 7 | +### Prerequisites |
| 8 | +- **Rust** `1.85.0` or newer (`edition = "2024"`) |
| 9 | +- **Python** `3.9+` with a virtual environment (`numpy`, `pytest`, `maturin`) if testing Python bindings |
| 10 | + |
| 11 | +### 1. Run Rust Tests & Lints |
| 12 | +```bash |
| 13 | +cargo test -p oxideon-core --lib |
| 14 | +cargo clippy --workspace --all-targets -- -D warnings |
| 15 | +``` |
| 16 | + |
| 17 | +### 2. Build & Test Python Bindings |
| 18 | +```bash |
| 19 | +python -m venv .venv |
| 20 | +source .venv/bin/activate # On Windows: .venv\Scripts\activate |
| 21 | +pip install maturin numpy pytest |
| 22 | +maturin develop --release |
| 23 | +pytest tests/ -q |
| 24 | +``` |
| 25 | + |
| 26 | +If you change any Python-facing signatures or docstrings in `src/python*.rs`, regenerate the type stubs: |
| 27 | +```bash |
| 28 | +python tools/gen_stubs.py |
| 29 | +``` |
| 30 | + |
| 31 | +### 3. Run Benchmarks & Accuracy Checks |
| 32 | +```bash |
| 33 | +python benchmarks/bench_vs_pytorch.py |
| 34 | +python benchmarks/accuracy_vs_pytorch.py |
| 35 | +``` |
| 36 | + |
| 37 | +## Finding an Issue & Getting Help |
| 38 | +- Browse [`good first issue`](https://github.com/voidstackloop/oxideon/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) or [`help wanted`](https://github.com/voidstackloop/oxideon/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22). |
| 39 | +- Comment on an issue if you'd like to claim it or ask design questions—mentorship and code-review feedback are happily provided! |
| 40 | +- You can also start a thread in [GitHub Discussions](https://github.com/voidstackloop/oxideon/discussions). |
| 41 | + |
| 42 | +## Pull Request Checklist |
| 43 | +1. Keep changes focused and add unit tests covering new behavior or edge cases. |
| 44 | +2. Run `cargo clippy --workspace --all-targets -- -D warnings` with zero warnings. |
| 45 | +3. Verify existing tests pass (`cargo test -p oxideon-core --lib`). |
| 46 | +4. If Python exports changed, run `python tools/gen_stubs.py`. |
| 47 | + |
| 48 | +## License |
| 49 | +By contributing, you agree that your contributions will be dual-licensed under **MIT OR Apache-2.0** (matching the repository license). No separate CLA is required. |
0 commit comments