Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(refs): Add
unsafe
to extern
while using build scripts in Car…
…go Book (#15294) ### What does this PR try to resolve? Since `rust 1.85.0`, It is no longer sufficient to use the `unsafe` keyword only at the call site. It must also be applied to the `extern` statement, hence, Cargo Book must be updated - closes #15289 and also update some more related content ### How should we test and review this PR? Run `mdbook build`. The `unsafe extern` should be seen at `cargo/reference/build-script-examples.html#linking-to-system-libraries` , `cargo/reference/build-script-examples.html#building-a-native-library` , `cargo/reference/semver.html#repr-c-shuffle` , `cargo/reference/semver.html#repr-c-remove` and `cargo/reference/semver.html#repr-transparent-remove` ### Additional information
- Loading branch information