From 13aff413176fdb03ed7c2189f2a3f5f4438e3e16 Mon Sep 17 00:00:00 2001 From: myl7 Date: Fri, 29 Sep 2023 13:47:47 +0800 Subject: [PATCH] Rename group-math Cargo.toml package name for crates.io --- dcf/Cargo.toml | 2 +- dcf/benches/dcf.rs | 2 ++ dcf/benches/dcf_batch_eval.rs | 2 ++ dcf/benches/dcf_large_lambda.rs | 2 ++ dcf/src/lib.rs | 2 ++ group-math/Cargo.toml | 2 +- 6 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dcf/Cargo.toml b/dcf/Cargo.toml index 93c8d2c..1072dfe 100644 --- a/dcf/Cargo.toml +++ b/dcf/Cargo.toml @@ -36,7 +36,7 @@ multithread = ["rayon"] [dependencies] bitvec = "1.0.1" -group = { path = "../group-math", features = ["byte"] } +group-math = { version = "0.1.0", path = "../group-math", features = ["byte"] } aes = { version = "0.8.3", optional = true } rayon = { version = "1.7.0", optional = true } diff --git a/dcf/benches/dcf.rs b/dcf/benches/dcf.rs index 1bb87ea..ad30ae8 100644 --- a/dcf/benches/dcf.rs +++ b/dcf/benches/dcf.rs @@ -1,3 +1,5 @@ +extern crate group_math as group; + use criterion::{criterion_group, criterion_main, Criterion}; use group::byte::ByteGroup; use group::Group; diff --git a/dcf/benches/dcf_batch_eval.rs b/dcf/benches/dcf_batch_eval.rs index 421be31..0574a92 100644 --- a/dcf/benches/dcf_batch_eval.rs +++ b/dcf/benches/dcf_batch_eval.rs @@ -1,3 +1,5 @@ +extern crate group_math as group; + use criterion::{criterion_group, criterion_main, Criterion}; use group::byte::ByteGroup; use group::Group; diff --git a/dcf/benches/dcf_large_lambda.rs b/dcf/benches/dcf_large_lambda.rs index 622a386..347a076 100644 --- a/dcf/benches/dcf_large_lambda.rs +++ b/dcf/benches/dcf_large_lambda.rs @@ -1,3 +1,5 @@ +extern crate group_math as group; + use criterion::{criterion_group, criterion_main, Criterion}; use group::byte::ByteGroup; use group::Group; diff --git a/dcf/src/lib.rs b/dcf/src/lib.rs index 89588b2..8207ca2 100644 --- a/dcf/src/lib.rs +++ b/dcf/src/lib.rs @@ -3,6 +3,8 @@ //! See [`Dcf`] +extern crate group_math as group; + #[cfg(feature = "prg")] pub mod prg; diff --git a/group-math/Cargo.toml b/group-math/Cargo.toml index 9e25d16..3686830 100644 --- a/group-math/Cargo.toml +++ b/group-math/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "group" +name = "group-math" version = "0.1.0" edition.workspace = true description = "Group (mathematics) interface and implementations"