Rustc cross-checker compiler plugin

    To use the compiler plugin, you need to take several steps.First, add the plugin as a Cargo dependency to your file:

    Cross-checker options

    Cross-checking is enabled and configured using the #[cross_check] directive,which can either be enabled globally (using at the beginning of main.rs or lib.rs) or individuallyper function (the per-function settings override the global ones).

    • yes and enabled enable cross-checking for the current scope (crateor function).
    • entry(djb2="foo") sets the cross-checking name for the current function entry point to the DJB2 hash of foo.

    Example: