---
title: "Naming"
source: https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/naming.md
commit: 524486a44c81ef30b039f10ab955bc778f39e225
tier: process
tokens_est: 2557
---
# Naming

One name per thing, so releases, crates and tags can't be confused (#320).
`ci/test_naming.py` checks the crate rules in `./lint`.

## Product

- Display name: **OBS-Studio-Rust**. Slug: **`obs-studio-rust`**.
- Release titles, artifact names and the app tag `obs-studio-rust-vX.Y.Z[-pre]`
  use them. `--version` keeps the upstream OBS version ("based on OBS ...").
- The command-line client (an obs-websocket v5 client for streaming control)
  is part of the product: crate and binary `obs-studio-rust` in
  `rust/obs-studio-rust/`. It gets no tag family of its own: published
  binaries go on the app's `obs-studio-rust-v*` releases.

## Repository layout (#1051)

- **The upstream tree stays where upstream has it:** `libobs/`, `libobs-*/`,
  `frontend/`, `plugins/`, `shared/`, `deps/`, `cmake/`, `test/`. We still
  merge `upstream/master`, so C/C++ files are never moved to restructure;
  fixes and ports edit them in place. The only rename is in place, to the
  build-role names in [BUILD.md](../../BUILD.md) (`foo.c` to `foo.c.h`,
  same directory and stem, in a `git mv`-only commit), which merges and
  `git log --follow` still track. A path whose OS its name
  doesn't say gets an entry in `ci/platform_paths.py`, not a rename.
- **All Rust lives in the `rust/` Cargo workspace**, one crate per ported
  component (`rust/tools/` is excluded). The table below is where a port goes.
- **Host code in C** stays in the OS-named files upstream already has. Each
  libobs area has one host facade: `util/platform.h` for `libobs/util/`, and
  `libobs/obs-host/` for the libobs core, with one header per capability
  (`com.h`, `graphics-thread.h`, `shared-texture.h`, ...). A host that has
  the capability defines it in its own file (`obs-windows.c`, `obs-nix.c`,
  `obs-cocoa.m`). A host that lacks it includes `obs-host/noop/<capability>.hpp`
  at the end of its host file (`obs-nix.c.h`, ...; see [BUILD.md](../../BUILD.md)),
  so no `#ifdef` picks between them.
  This is the C form of a crate's `src/platform/mod.rs`.
- **When a C component is fully ported**, its C sources are deleted and its
  CMake target links the Rust staticlib. No moved copy of the C is kept in
  the product tree; the one exception is the differential-test oracle copy
  under `rust/obs-c-oracle/legacy/` that the
  [testing policy](testing-policy.md) (Tier 3) requires.
- **Later, not now:** once we stop merging upstream, the remaining C/C++
  (mostly `frontend/` and `plugins/`) may move under one root directory in a
  single mechanical PR (only `git mv` plus CMake, CI and docs paths), landed
  in a quiet window, under a neutral name (libobs is C, not C++). That gets
  its own issue.

| C/C++ component | Rust crate |
|---|---|
| `libobs/util/` | `rust/obs-util` |
| `libobs/graphics/`, and the units extracted from `libobs/graphics/graphics.c.h` (`graphics-sprite.c.h`, `graphics-immediate.c.h`, `texture-planar-creators.c.h`, `indexbuffer-create.c.h`, `present-entrypoints.c.h`, `raster-state-entrypoints.c.h`, `state-blend-setters.c.h`, `matrix-entrypoints.c.h`), `libobs/graphics/effect-parser.c.h` (`effect-param-types.c.h`, `effect-param-numbers.c.h`, `effect-parser-blocks.c.h`, `effect-parser-compile.c.h`, `effect-parser-entry.c.h`, `effect-parser-funcs.c.h`, `effect-parser-params.c.h`, `effect-parser-passes.c.h`, `effect-parser-writer.c.h`), `libobs/graphics/shader-parser.c.h` (`shader-param-values.c.h`, `shader-parser-blocks.c.h`), `libobs/graphics/graphics-ffmpeg.c.h` (`graphics-ffmpeg-orient.c.h`, `graphics-ffmpeg-rgba64.c.h`, `graphics-ffmpeg-route.c.h`, `texture-file-data2.c.h`) and `libobs/graphics/graphics-ffmpeg-host-windows.c.h` (`graphics-ffmpeg-host-pq.c.h`, `graphics-ffmpeg-host-wic-checks.c.h`) | `rust/obs-graphics` |
| `libobs/media-io/` | `rust/obs-media-io` |
| `libobs/obs-nal.c`, `obs-avc.c`, `obs-hevc.c`, `obs-av1.c` | `rust/obs-codec` |
| `libobs/obs-data.c` | `rust/obs-data` |
| `libobs/obs-properties.c` | `rust/obs-properties` |
| `libobs/obs-hotkey-name-map.c`, `obs-hotkey-bindings.c.h`, `obs-hotkey-translations.c.h`, `obs-hotkey-owned-translations.c.h`, `obs-hotkey-press.c.h`, `obs-hotkey-pair.c.h`, `obs-hotkey-save-load.c.h`, `obs-hotkey-binding-press.c.h`, `obs-nix-hotkey-state.c.h`, `obs-nix-portal-shortcut-ids.c.h`, `obs-nix-portal-shortcut-sets.c.h`, `obs-nix-portal-shortcut-status.c.h`, `obs-nix-wayland-key-names.c.h`, `obs-nix-wayland-keys.c.h`, `obs-nix-wayland-seats.c.h`, `obs-nix-x11-hotkeys.c.h`, `obs-nix-x11-input.c.h`, `obs-nix-x11-keys.c.h`, `obs-cocoa-keys.c.h`, `obs-windows-keys.c.h`, `obs-key-combination-host-posix.c.h` | `rust/obs-hotkey` |
| `libobs/callback/` | `rust/obs-callback` |
| in-process MCP server (no C original, #3283) | `rust/obs-mcp` |
| `libobs/obs-missing-files.c.h` | `rust/obs-missing-files` |
| `libobs/obs-encoder-configuration.c.h`, `libobs/obs-output-delay.c.h`, `obs-output-interleave.c.h`, `obs-output-caption-text.c.h`, `obs-output-protocols.c.h`, `obs-service-getters.c.h`, `obs-encoder-roi.c.h`, `obs-encoder-clear-roi.c.h`, `obs-output-video-checks.c.h`, `obs-encoder-size.c.h`, `obs-encoder-audio-start.c.h`, `obs-output-stop-stats.c.h`, `obs-output-raw-audio.c.h`, `obs-output-slots.c.h`, `obs-encoder-gpu-gates.c.h`, `obs-encoder-bind.c.h`, `obs-encoder-lifecycle.c.h`, `obs-encoder-packet-ts.c.h`, `obs-encoder-pause.c.h`, `obs-encoder-group-reconfig.c.h`, `obs-encoder-gpu-rescale.c.h`, `obs-output-start.c.h`, `obs-output-begin.c.h`, `obs-output-stop.c.h`, `obs-output-reconnect.c.h`, `obs-output-pause.c.h`, `obs-output-caption.c.h`, `obs-output-raw-audio-trim.c.h`, `obs-encoder-audio-start-frames.c.h`, `obs-encoder-set-name.c.h`, `obs-output-conversion-setters.c.h`, `obs-output-packet-callbacks.c.h`, `obs-output-reconnect-callback.c.h`, `obs-output-encoder-getters.c.h`, `obs-output-update.c.h`, `obs-encoder-audio-buffers.c.h`, `obs-encoder-group-lifecycle.c.h`, `obs-encoder-init.c.h` | `rust/obs-output` |
| `libobs/obs-encoder-error-ownership.c.h`, `libobs/obs-encoder-packet-ownership.c.h` | `rust/obs-encoder` |
| `libobs/obs-encoder-registry-queries.c.h` | `rust/obs-output` |
| `libobs/obs-scene*.c.h` | `rust/obs-scene` |
| `libobs/obs-source*.c.h` | `rust/obs-source`; the C shims of the ports that call back into libobs through a seam (`libobs/obs-source-transition-access.c.h`, `libobs/obs-source-transition-restore.c.h`, `libobs/obs-source-transition-settings.c.h`, `libobs/obs-source-transition-size.c.h`, `libobs/obs-source-transition-slots.c.h`, `libobs/obs-source-transition-stop.c.h`, `libobs/obs-source-transition-switch.c.h`, `libobs/obs-source-transition-video.c.h` and `libobs/obs-source-transition.c.h` over `libobs/obs-source-transition-seam.h`, the rest of `libobs/obs-source-deinterlace.c.h` over `libobs/obs-source-deinterlace-seam.h`, and `libobs/obs-source-async-decoupled.c.h` over `libobs/obs-source-async-decoupled-fields.c.h` and the audio output shims) in `rust/obs-source-seam` |
| `libobs/audio-monitoring/` | `rust/obs-audio-monitoring` |
| `libobs/obs-audio-controls.c.h` | `rust/obs-audio-controls` |
| `libobs/obs.c.h` and the units extracted from it (`obs-video-plan.c.h`, `obs-context-names.c.h`, `obs-source-load.c.h`, `obs-core-setup-rules.c.h`, `obs-core-setup-rules-ms.c.h`, `obs-core-setup-rules-task.c.h`, `obs-shutdown-detach.c.h`), and those extracted from `libobs/obs-module.c.h` (`obs-module-init.c.h`, `obs-module-paths.c.h`, `obs-module-names.c.h`, `obs-module-locale.c.h`, `obs-module-source-rules.c.h`, `obs-module-type-rules.c.h`, `obs-module-load-rules.c.h`, `obs-module-load-rules-skip.c.h`, `obs-module-register-copy.c.h`, `obs-module-lists.c.h` (over `libobs/obs-module-lists-seam.h`), `obs-module-load-metadata.c.h`), `libobs/obs-view-api.c.h`, and `obs-video-copy-plan.c.h`, `obs-video-frame-copy.c.h`, `obs-video-frame-timing.c.h`, `obs-video-graphics-tasks.c.h`, `obs-video-output-step.c.h`, `obs-video-pacing.c.h`, `obs-video-stop-requested.c.h` and `obs-video-unmap-last-surface.c.h`, extracted from `libobs/obs-video.c.h`, and `obs-canvas-draw.c.h`, extracted from `libobs/obs.c.h` and `libobs/obs-display.c.h`, and `obs-canvas-rules.c.h`, extracted from `libobs/obs-canvas.c.h`, and `obs-nix-system-info.c.h` and `obs-nix-log-rules.c.h`, extracted from `libobs/obs-nix.c.h` (the second also holds the os-release rules from `libobs/obs-nix-os-release.h`), and `obs-win-crash-report.c.h`, extracted from `libobs/obs-win-crash-handler.c.h`, and `obs-windows-symbol-paths.c.h` and `obs-windows-system-info.c.h`, extracted from `libobs/obs-windows.c.h`, and `libobs/obs-audio.c.h` (the audio tick, over `libobs/obs-audio-seam.h`), and `libobs/obs-display.c.h` (the display, over `libobs/obs-display-seam.h`) | `rust/obs-core` |
| `plugins/obs-nvenc/` (CUDA/NVENC loader) | `rust/obs-nvenc`, linked through `rust/obs-nvenc-plugin` |
| GPU acceleration status (frontend, #846) | `rust/obs-gpu-status`, linked through `rust/obs-frontend` |
| Dock layout model (frontend, #5230) | `rust/obs-dock-layout`, linked through `rust/obs-frontend` |
| all libobs ports, as one C ABI drop-in | `rust/libobs-rust` |

A new libobs area gets a new `obs-<area>` row here in the PR that starts it.

## Rust crates (`rust/<dir>/`, directory name = package name)

| Kind | Name | Examples |
|---|---|---|
| libobs port | `obs-<area>`, named after the libobs directory | `obs-util`, `obs-graphics`, `obs-media-io`, `obs-codec` |
| libobs staticlib (C ABI drop-in) | `libobs-rust` | |
| Plugin staticlib | `obs-<plugin>-plugin` | `obs-nvenc-plugin` |
| Frontend staticlib (the C ABI of the frontend's Rust crates) | `obs-frontend` | |
| C shims of a port that call back into libobs (linked only through `libobs-rust`) | `obs-<area>-seam` | `obs-source-seam` |
| Test oracle (dev-only) | `obs-c-oracle` | |
| Product binary | `obs-studio-rust` | |

No other crate takes a `-rust` suffix. A new tool is `obs-<tool>`.

## Tags

- OBS version tags (`X.Y.Z`, `X.Y.Z-betaN`, ...) come from upstream; every
  `git describe` that names an OBS version matches only those
  (`ci/test_describe_match.py`).
- `obs-studio-rust-v*` is the only tag family this fork adds. The retired
  `obs-stream-rust-v*` tag (0.1.0, the CLI's old name) stays for history; no
  new ones are cut.
