Repository navigation
rust: Fold obs-scene-bounds and obs-scene-blend into obs-scene - #1616
Merged
Merged
Conversation
The crate decision on obs-rust#444: a libobs area gets one crate named after it, with a module per extracted file, as obs-hotkey already does for its three files. obs-scene-bounds and obs-scene-blend were the only per-file crates, and obs-scene.c.h will yield more units, so both move into one rust/obs-scene crate and later obs-scene units go in as modules. Mechanical and behaviour-neutral. The safe cores become obs_scene::bounds (was obs_scene_bounds::fit) and obs_scene::blend, the C ABI shims stay ffi::scene_bounds and ffi::scene_blend, and libobs-rust re-exports obs_scene::ffi. The Tier 1 and Tier 3 tests move to obs-scene/tests/scene and still run in obs-tests-core, with the same cases. No symbol changes: both shims stay hidden, so rust-exports.d gets no fragment. The C oracle and the C tests are unchanged. Refs obs-rust#444
6 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #444
What and why
The mechanical PR the crate decision on #444 asks for: one
rust/obs-scenecrate with a module per extracted file, asobs-hotkeyalready does for its three files.obs-scene-boundsandobs-scene-blend(#1543) were the only per-file crates, andobs-scene.c.hwill yield more units, which now go in as modules.Behaviour-neutral. Files moved with
git mv, so history follows; the only code edits areusepaths. The C oracle, the C tests and the C sources are unchanged.rust/obs-scene-bounds/src/fit.rs(obs_scene_bounds::fit)rust/obs-scene/src/bounds.rs(obs_scene::bounds)rust/obs-scene-blend/src/blend.rs(obs_scene_blend::blend)rust/obs-scene/src/blend.rs(obs_scene::blend)rust/obs-scene-bounds/src/ffi/scene_bounds.rsrust/obs-scene/src/ffi/scene_bounds.rsrust/obs-scene-blend/src/ffi/scene_blend.rsrust/obs-scene/src/ffi/scene_blend.rsrust/obs-scene-bounds/tests/scene_bounds/{main,parity}.rsrust/obs-scene/tests/scene/bounds/{mod,parity}.rsrust/obs-scene-blend/tests/scene_blend/{main,parity}.rsrust/obs-scene/tests/scene/blend/{mod,parity}.rslibobs-rust: deps on both crates, re-exportsscene_bounds_ffi,scene_blend_ffiobs-scene, re-exportscene_ffi(obs_scene::ffi)obs-data/tests/core.rs: two#[path]includesobs-scene/tests/scene/main.rslibobs/obs-scene*.c.h→rust/obs-sceneAlso updated:
Cargo.lock, theobs-datadev-dependencies, the rust/README.md crate and port rows, and theobs-tests-corerow in testing-policy.md. The workspace members are therust/*glob, and noci/*.pycheck,obs-buildmanifest orsource-sets.jsonentry names these crates (thesource-sets.jsonandobs-buildentries name the C files, which stay).rust-exports.dhas no file to rename: both shims are hidden (rust-hidden.txt), so neither crate had a fragment.RED → GREEN
fd55b4011), headless (private Xvfb, private D-Bus, fresh HOME):c96d2738d)obs-tests-core, blend Tier 1 + Tier 3 (scene_blend::*→scene::blend::*)obs-tests-core, bounds Tier 1 + Tier 3 (scene_bounds::*→scene::bounds::*)obs-tests-core, whole binarytest_scene_blend/test_darken_transparent/test_scene_bounds_fit/test_group_empty_bounds/test_ws_transform_bounds, C and Rust lanes, againstlibobsandlibobs-with-rustnm -D),libobsandlibobs-with-rustin both lanesobs_bounds_fit_scale,obs_blend_mode_paramsinlibobs-with-rustobs_sceneobject in the staticlibci/local_gate.pylaneslint(140/140ci/test_*.py),cross,cross-release,rust-testci/test_binary_cap.py --report)Checklist
master(or the description starts with a Stacked: note)docs/features.mdis added or updated (not applicable: no user-visible change)-W..., ratchets): built with scripting ON (a flag change under cmake/ or build-aux/ runs the full builds) and cross-checked with clang and MSVC (not applicable)