Skip to content

Latest commit

 

History

History

enum_checker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

FiX Enum Checker

This is a really stupid tool to check enum duplication in a project.

Usage

cargo run <path>

It will write list of possible duplications in form of file::enum == file::enum followed by enum keys.const

An enum key is taken considering the #[serde(rename = "<value>")] directive, if present.

E.g.:

cargo run ../src
Equal ../src/lib.rs::Foo == ../src/lib.rs::Bar (["0", "1", "2"])