diff --git a/ouroboros_macro/Cargo.toml b/ouroboros_macro/Cargo.toml index 3d501b6..d127258 100644 --- a/ouroboros_macro/Cargo.toml +++ b/ouroboros_macro/Cargo.toml @@ -12,7 +12,7 @@ repository = "https://github.com/joshua-maros/ouroboros" proc-macro = true [dependencies] -Inflector = { version = "0.11", default-features = false } +heck = "0.4.1" proc-macro2 = "1.0" proc-macro-error = "1.0.4" quote = "1.0" diff --git a/ouroboros_macro/src/lib.rs b/ouroboros_macro/src/lib.rs index c46584c..c809460 100644 --- a/ouroboros_macro/src/lib.rs +++ b/ouroboros_macro/src/lib.rs @@ -17,8 +17,8 @@ use crate::{ info_structures::Options, parse::parse_struct, }; +use heck::ToSnakeCase; use generate::{struc::create_actual_struct_def, drop::create_drop_impl}; -use inflector::Inflector; use info_structures::BuilderType; use proc_macro::TokenStream; use proc_macro2::TokenStream as TokenStream2; diff --git a/ouroboros_macro/src/utils.rs b/ouroboros_macro/src/utils.rs index 737893a..ec527df 100644 --- a/ouroboros_macro/src/utils.rs +++ b/ouroboros_macro/src/utils.rs @@ -1,4 +1,4 @@ -use inflector::Inflector; +use heck::ToSnakeCase; use proc_macro2::{Group, Ident, TokenStream, TokenTree}; use quote::{format_ident, quote}; use syn::{GenericParam, Generics, Visibility};