Skip to content

Commit

Permalink
Use the real itertools
Browse files Browse the repository at this point in the history
  • Loading branch information
HKalbasi committed Oct 11, 2023
1 parent 8acf58e commit a67f383
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 25 deletions.
21 changes: 6 additions & 15 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion examples/osmium/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ publish = false

[dependencies]
bitflags = "2"
iter_tools = "0.1.4"
itertools = "0.11"

[build-dependencies]
cc = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/osmium/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::f64::consts::PI;

use bitflags::bitflags;
use iter_tools::dependency::itertools::iproduct;
use itertools::iproduct;

mod generated;

Expand Down
2 changes: 1 addition & 1 deletion zngur-def/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ license.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
iter_tools = "0.1.4"
itertools = "0.11"
2 changes: 1 addition & 1 deletion zngur-def/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{collections::HashMap, fmt::Display};

use iter_tools::Itertools;
use itertools::Itertools;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Mutability {
Expand Down
2 changes: 1 addition & 1 deletion zngur-generator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ license.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
iter_tools = "0.1.4"
itertools = "0.11"
zngur-parser = { version = "=0.4.0", path = "../zngur-parser" }
zngur-def = { version = "=0.4.0", path = "../zngur-def" }
2 changes: 1 addition & 1 deletion zngur-generator/src/cpp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::{
iter,
};

use iter_tools::Itertools;
use itertools::Itertools;
use zngur_def::{Mutability, RustTrait, ZngurMethodReceiver};

use crate::{rust::IntoCpp, ZngurWellknownTraitData};
Expand Down
2 changes: 1 addition & 1 deletion zngur-generator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use cpp::CppPath;
use cpp::CppTraitDefinition;
use cpp::CppType;
use cpp::CppTypeDefinition;
use iter_tools::Itertools;
use itertools::Itertools;
use rust::IntoCpp;

pub mod cpp;
Expand Down
2 changes: 1 addition & 1 deletion zngur-generator/src/rust.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::fmt::Write;

use iter_tools::Itertools;
use itertools::Itertools;

use crate::{
cpp::{CppLayoutPolicy, CppPath, CppTraitDefinition, CppTraitMethod, CppType},
Expand Down
2 changes: 1 addition & 1 deletion zngur-parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license.workspace = true
[dependencies]
ariadne = "0.3.0"
chumsky = { version = "=1.0.0-alpha.4", features = ["label"] }
iter_tools = "0.1.4"
itertools = "0.11"
zngur-def = { version = "=0.4.0", path = "../zngur-def" }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion zngur-parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{fmt::Display, process::exit, sync::Mutex};

use ariadne::{sources, Color, Label, Report, ReportKind};
use chumsky::prelude::*;
use iter_tools::{Either, Itertools};
use itertools::{Either, Itertools};

use zngur_def::{
LayoutPolicy, Mutability, PrimitiveRustType, RustPathAndGenerics, RustTrait, RustType,
Expand Down

0 comments on commit a67f383

Please sign in to comment.