# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "enum2pos" version = "0.1.2" authors = ["Matthew Berger "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = ''' enum2pos is a rust derive macro for enums that generates "from_index(usize, Vec) -> Option" and "to_index()" methods for converting between an variants and their position within the enum declaration (similar to an index). ''' homepage = "https://github.com/matthewjberger/enum2pos" readme = "README.md" keywords = [ "enum", "macro", "string", "index", ] license = "MIT" repository = "https://github.com/matthewjberger/enum2pos" [lib] name = "enum2pos" path = "src/lib.rs" proc-macro = true [[test]] name = "convert" path = "tests/convert.rs" [dependencies.proc-macro2] version = "1.0" [dependencies.quote] version = "1.0" [dependencies.syn] version = "1.0"