diff --git a/Cargo.lock b/Cargo.lock index d3299bc..57fb048 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,37 +14,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" -[[package]] -name = "crossbeam-deque" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" -dependencies = [ - "crossbeam-epoch", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.9.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" -dependencies = [ - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-utils" -version = "0.8.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" - -[[package]] -name = "either" -version = "1.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7914353092ddf589ad78f25c5c1c21b7f80b0ff8621e7c814c3485b5306da9d" - [[package]] name = "heck" version = "0.5.0" @@ -180,33 +149,12 @@ dependencies = [ "proc-macro2", ] -[[package]] -name = "rayon" -version = "1.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" -dependencies = [ - "either", - "rayon-core", -] - -[[package]] -name = "rayon-core" -version = "1.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" -dependencies = [ - "crossbeam-deque", - "crossbeam-utils", -] - [[package]] name = "rxml" -version = "2.3.1" +version = "2.3.2" dependencies = [ "pyo3", "quick-xml", - "rayon", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index d14ccee..0b68770 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rxml" -version = "2.3.1" +version = "2.3.2" edition = "2021" [lib] @@ -9,5 +9,4 @@ crate-type = ["cdylib"] [dependencies] pyo3 = "0.23.5" -quick-xml = "0.37.2" -rayon = "1.10" \ No newline at end of file +quick-xml = "0.37.2" \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index eb549e4..56775a4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ classifiers = [ "Typing :: Typed", "License :: OSI Approved :: MIT License", ] -version = "2.3.1" +version = "2.3.2" [tool.maturin] diff --git a/src/entities.rs b/src/entities.rs index d25316b..a05bb76 100644 --- a/src/entities.rs +++ b/src/entities.rs @@ -1,7 +1,6 @@ #![allow(clippy::only_used_in_recursion)] use crate::f_str; use pyo3::{prelude::*, types::PyType}; -use rayon::prelude::*; use std::collections::HashMap; #[derive(Clone, FromPyObject, IntoPyObject, Eq, PartialEq, Debug)] @@ -187,12 +186,7 @@ impl Node { (f_str!("attrs"), HashmapTypes::Map(self.attrs.clone())), ( f_str!("children"), - HashmapTypes::Vec( - self.children - .par_iter() - .map(|child| child.to_dict()) - .collect(), - ), + HashmapTypes::Vec(self.children.iter().map(|child| child.to_dict()).collect()), ), ( f_str!("text"),