Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace inflector with heck #85

Merged
merged 2 commits into from
Jun 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ouroboros_macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ouroboros_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ouroboros_macro/src/utils.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down