Returns true if the current build is a beta/prerelease version.
()
| 235 | |
| 236 | /// Returns true if the current build is a beta/prerelease version. |
| 237 | pub fn is_beta() -> bool { |
| 238 | env!("CARGO_PKG_VERSION").contains('-') |
| 239 | } |
| 240 | |
| 241 | /// Returns true if `latest` is strictly newer than `current` using semver comparison. |
| 242 | /// Handles pre-release suffixes (e.g. "2.5.0-beta.1") by stripping them for the |