pub fn get_version() -> ModuleInfoResult<String>Expand description
Returns the embedded version field (from Cargo.toml’s package.version
or version_env_var_name) as a String.
Thin wrapper around get_module_info!(ModuleInfoField::Version). See the
crate-level “Limitations” section for shared-library symbol-resolution
caveats.
§Errors
Returns ModuleInfoError::NotAvailable on non-Linux targets or when the
embed-module-info feature is not enabled. Returns NullPointer,
Utf8Error, or MalformedJson if the note section is missing or corrupt.