Repository navigation
rust: Forbid unsafe_code in libobs-rust and obs-stream-rust - #414
Merged
Merged
Conversation
Neither crate has any unsafe, so forbid keeps it that way. obs-c-oracle documents why it is exempt: it exists to bind the original C. Refs #297 Local-Gate: v1 tree=38b76dbd1c351ed61617604169673b5f22f829f6 secs=160 lanes=lint:run,rust-test:run,tier2-linux:run Ci-Attestation: {"at":1791849220,"gate":"rust/all/fmt","host":"linux-x86_64","key":"1f705167a896768487bb72ebbe330b961b765e219990dba959dc3182eae0ddee","lane":"lint","parents":["7d2a91c67c155658030e063069c69c826cf3b11f"],"secs":22,"stamp":"79b50ab492c03fcd65cc945f614a6d24","tree":"38b76dbd1c351ed61617604169673b5f22f829f6","v":1,"via":"run"} Ci-Attestation: {"at":1791849220,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"1f705167a896768487bb72ebbe330b961b765e219990dba959dc3182eae0ddee","lane":"lint","parents":["7d2a91c67c155658030e063069c69c826cf3b11f"],"secs":22,"stamp":"0a8887061596c5105040ad9e788c66ec","tree":"38b76dbd1c351ed61617604169673b5f22f829f6","v":1,"via":"run"} Ci-Attestation: {"at":1791849220,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"c210292061e463c731f38f1b89fa9ded0eedbb076032f39b9043f5ce6a408b08","lane":"rust-test","parents":["7d2a91c67c155658030e063069c69c826cf3b11f"],"secs":63,"stamp":"2d09593ccd9d999ffa529d7b50709ba9","tree":"38b76dbd1c351ed61617604169673b5f22f829f6","v":1,"via":"run"} Ci-Attestation: {"at":1791849220,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"9a5b3ff0f32adb953cc29a7fff3356df6a2e1cf5324e6dcffb4048d471312d2e","lane":"tier2-linux","parents":["7d2a91c67c155658030e063069c69c826cf3b11f"],"secs":74,"stamp":"62f84f07a00863a57b4ade367e98964b","tree":"38b76dbd1c351ed61617604169673b5f22f829f6","v":1,"via":"run"}
This was referenced Oct 12, 2026
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.
Part of #297; together with #413 it closes the issue's checklist.
#![forbid(unsafe_code)]inlibobs-rust(lib.rs) andobs-stream-rust(lib.rsandmain.rs). Neither has anyunsafetoday, soforbidfits: nothing needs allowing back.obs-c-oraclestays exempt. Itslib.rsnow says why: it is a dev-only crate of rawextern "C"bindings to the original C. That exemption already appears in the testing policy and in the platform Dylint's scope.unsafe_code.The local gate passed and is stamped.