Skip to content

Contributing

Make one useful change, validate it in the right runtime, and explain what you tested. The repository has separate checks for each major project.

Read the BUSL-1.1 license and risk disclaimer. OpenTrading is source-available, not OSI open source. Third-party components keep their own licenses.

For application development, follow Local development. You need Node.js 24 and npm, Rust via rustup, and database services for workflows that use them. Backend checks use the toolchain selected in backend/rust-toolchain.toml. WASM and Tauri have their own manifests and lockfiles.

Repository metadata checks also need jq; advisory checks need cargo-audit and cargo-deny. Tauri requires its platform-specific system libraries.

Change Start here Validate
Workstation UI frontend/apps/www/ Frontend checks and the affected browser workflow
Application API frontend/apps/api/ API tests and the caller that uses the contract
Rust services backend/crates/ Backend CI checks and the affected service
Indicators/WASM backend/crates/indicators/, wasm/src/ WASM checks, regenerate bindings, frontend validation
MCP tools backend/crates/mcp/ Catalog/schema consistency and domain smoke tests
Product guides docs/, subsystem README files Documentation checks and command/source accuracy

Use Architecture to follow the boundary you are changing. Keep a fix focused; do not combine an unrelated dependency update with a behavior change.

Run these from the product repository root. Install frontend dependencies with cd frontend && npm ci before running frontend checks.

Terminal · repository metadata and documentation
make metadata-check check-license-headers test-license-headers test-release test-docs

Choose the checks covering your changes:

Terminal · project-specific checks
make ci-backend
make ci-wasm
make lint-frontend test-frontend

make ci-backend includes formatting, a locked workspace check, Clippy, tests, and rustdoc. make ci-wasm compiles/lints the browser target and runs host tests. Expected outcome: the selected targets exit successfully; investigate the first failing target rather than treating a partial run as a pass.

Additional checks have additional prerequisites:

Terminal · MSRV, desktop and dependency checks
make msrv
make ci-tauri
make audit audit-wasm audit-tauri deny

Run these when applicable and distinguish missing tools or platform libraries from test failures. The three Rust lockfiles are audited separately.

  • A container health smoke test does not exercise complete user workflows.
  • Host WASM tests do not prove browser execution. Rebuild with make pack when changing bindings, then verify the frontend.
  • Frontend E2E/scenario scripts may need browsers and running services; they are not all included in the default CI workflow.
  • Tauri packaging and behavior depend on the host platform.

make format modifies backend files; make format-check only checks them. make doc generates ignored Rust API docs under docs/api-rust/. Do not replace authored documentation with generated output.

  1. Describe the user-visible problem and the smallest useful solution.
  2. Update directly related documentation or configuration examples.
  3. List the exact checks and runtime workflows you ran, plus anything not tested.
  4. Exclude credentials, private session data, incidental build outputs and unrelated changes.
  5. Preserve third-party license notices. Do not apply project headers blindly to generated, vendored, or binary files.

Version changes belong to the release procedure, not every contribution. For sensitive reports, use Security rather than a public issue.

Source: Contributing and CI.