---
title: "Contributing to Astral"
slug: CONTRIBUTING
---

<a id="contributing-to-astral"></a>

## Scope and goals

Astral is a performance-first runtime for real-time engines. Contributions should preserve:
- Zero/low-allocation hot paths
- Stable C ABI principles
- Portability across desktop/mobile/embedded profiles

## Build and test

Native dev build:

```bash
cmake --preset dev
cmake --build --preset dev -j
ctest --preset dev -j8
```

Release validation:

```bash
cmake --preset release-with-tests
cmake --build --preset release-with-tests -j
ctest --preset release-with-tests -j8
```

## Coding standards

See `docs/rules/CODING_STANDARDS.md`.

Key expectations:
- No STL containers in core hot paths
- No exceptions across the C ABI
- Avoid hidden allocations and syscalls in steady-state inference/streaming

## Pull requests

Please include:
- Motivation and scope (what and why)
- Validation performed (tests/benchmarks/gates)
- Platform(s) tested

Avoid drive-by refactors and unrelated formatting changes; keep PRs focused.

## Contribution license

Unless explicitly stated otherwise, contributions submitted for inclusion in
Astral are licensed under the Apache License 2.0 under the terms in `LICENSE`.

Source: [View the pinned source](https://github.com/Cosmin-B/astral-runtime/blob/f2d13b77c70624ede5bc06823d4a794a4b955e10/CONTRIBUTING.md) · [Edit this source](https://github.com/Cosmin-B/astral-runtime/edit/main/CONTRIBUTING.md)
