From 5ef2532eb7a96fd4111eacdde8ac571c9d6ec76e Mon Sep 17 00:00:00 2001 From: kenkoooo Date: Tue, 8 Sep 2020 09:15:44 +0900 Subject: [PATCH 1/3] Add internal modules into lib.rs and fix visibility --- src/lib.rs | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d11bcef..a4a9bca 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,12 +1,18 @@ -mod convolution; -mod dsu; -mod fenwicktree; -mod lazysegtree; -mod math; -mod maxflow; -mod mincostflow; -mod modint; -mod scc; -mod segtree; -mod string; -mod twosat; +pub mod convolution; +pub mod dsu; +pub mod fenwicktree; +pub mod lazysegtree; +pub mod math; +pub mod maxflow; +pub mod mincostflow; +pub mod modint; +pub mod scc; +pub mod segtree; +pub mod string; +pub mod twosat; + +pub(crate) mod internal_bit; +pub(crate) mod internal_math; +pub(crate) mod internal_queue; +pub(crate) mod internal_scc; +pub(crate) mod internal_type_traits; From 86f431b2e626efeafe994cafbf6f37e7cd8394d7 Mon Sep 17 00:00:00 2001 From: kenkoooo Date: Tue, 8 Sep 2020 11:22:28 +0900 Subject: [PATCH 2/3] Hide modules --- src/lib.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index efd894b..d501511 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,15 +1,15 @@ -pub mod convolution; -pub mod dsu; -pub mod fenwicktree; -pub mod lazysegtree; -pub mod math; -pub mod maxflow; -pub mod mincostflow; -pub mod modint; -pub mod scc; -pub mod segtree; -pub mod string; -pub mod twosat; +mod convolution; +mod dsu; +mod fenwicktree; +mod lazysegtree; +mod math; +mod maxflow; +mod mincostflow; +mod modint; +mod scc; +mod segtree; +mod string; +mod twosat; pub(crate) mod internal_bit; pub(crate) mod internal_math; From 942c51ff79f84785d725f3323cb475240c084648 Mon Sep 17 00:00:00 2001 From: kenkoooo Date: Tue, 8 Sep 2020 11:33:16 +0900 Subject: [PATCH 3/3] Apply cargo-fmt to internal module files --- src/internal_bit.rs | 1 + src/internal_math.rs | 1 + src/internal_queue.rs | 1 + src/internal_scc.rs | 1 + src/internal_type_traits.rs | 1 + 5 files changed, 5 insertions(+) diff --git a/src/internal_bit.rs b/src/internal_bit.rs index e69de29..8b13789 100644 --- a/src/internal_bit.rs +++ b/src/internal_bit.rs @@ -0,0 +1 @@ + diff --git a/src/internal_math.rs b/src/internal_math.rs index e69de29..8b13789 100644 --- a/src/internal_math.rs +++ b/src/internal_math.rs @@ -0,0 +1 @@ + diff --git a/src/internal_queue.rs b/src/internal_queue.rs index e69de29..8b13789 100644 --- a/src/internal_queue.rs +++ b/src/internal_queue.rs @@ -0,0 +1 @@ + diff --git a/src/internal_scc.rs b/src/internal_scc.rs index e69de29..8b13789 100644 --- a/src/internal_scc.rs +++ b/src/internal_scc.rs @@ -0,0 +1 @@ + diff --git a/src/internal_type_traits.rs b/src/internal_type_traits.rs index e69de29..8b13789 100644 --- a/src/internal_type_traits.rs +++ b/src/internal_type_traits.rs @@ -0,0 +1 @@ +