Skip to content

Commit

Permalink
remove indexmap feature
Browse files Browse the repository at this point in the history
  • Loading branch information
zao111222333 committed Jan 17, 2025
1 parent a5538da commit 0db1d8b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ anyhow = "1.0.95"
chrono = "0.4.39"
env_logger = "0.11.6"
insta = "1.42.0"
indexmap = "2.7.0"
inventory = "0.3.16"
itertools = "0.13.0"
log = "0.4.22"
Expand Down
1 change: 0 additions & 1 deletion pyo3-stub-gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ readme.workspace = true
[dependencies]
anyhow.workspace = true
chrono.workspace = true
indexmap = { workspace = true, optional = true }
inventory.workspace = true
itertools.workspace = true
log.workspace = true
Expand Down
14 changes: 0 additions & 14 deletions pyo3-stub-gen/src/stub_type/collections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,6 @@ impl<T: PyStubType> PyStubType for BTreeSet<T> {
}
}

#[cfg(feature = "indexmap")]
impl<T: PyStubType, State> PyStubType for indexmap::IndexSet<T, State> {
fn type_output() -> TypeInfo {
HashSet::<T, State>::type_output()
}
}

macro_rules! impl_map_inner {
() => {
fn type_input() -> TypeInfo {
Expand Down Expand Up @@ -154,13 +147,6 @@ impl<Key: PyStubType, Value: PyStubType, State> PyStubType for HashMap<Key, Valu
impl_map_inner!();
}

#[cfg(feature = "indexmap")]
impl<Key: PyStubType, Value: PyStubType, State> PyStubType
for indexmap::IndexMap<Key, Value, State>
{
impl_map_inner!();
}

macro_rules! impl_tuple {
($($T:ident),*) => {
impl<$($T: PyStubType),*> PyStubType for ($($T),*) {
Expand Down

0 comments on commit 0db1d8b

Please sign in to comment.