In Rust, this is often done by using optional features, and usually features named like `unstable-<something>`. They are a form of conditional compilation: people that don't opt in don't see that code, and people that do opt in know the code is unstable.
`cargo-semver-checks` by default doesn't check for any semver obligations for code behind such features. (I'm its maintainer )