From 8cafa2bd12acf040246d637717b8109d3de2752e Mon Sep 17 00:00:00 2001 From: Tin Rabzelj Date: Mon, 7 Oct 2024 01:34:37 +0200 Subject: [PATCH] Update version --- .github/workflows/test.yaml | 4 +- Cargo.toml | 38 +++++++++---------- bomboni_common/Cargo.toml | 2 +- bomboni_core/Cargo.toml | 2 +- bomboni_fs/Cargo.toml | 2 +- bomboni_prost/Cargo.toml | 2 +- bomboni_proto/Cargo.toml | 2 +- bomboni_request/Cargo.toml | 2 +- bomboni_request/src/filter/mod.rs | 1 - bomboni_request/src/ordering/mod.rs | 1 - bomboni_request/src/parse/mod.rs | 1 - bomboni_request/src/query/list.rs | 1 - .../src/query/page_token/aes256.rs | 1 - .../src/query/page_token/base64.rs | 1 - bomboni_request/src/query/page_token/rsa.rs | 1 - bomboni_request/src/query/search.rs | 1 - bomboni_request/src/schema.rs | 1 - bomboni_request/src/sql/filter.rs | 1 - bomboni_request/src/sql/query.rs | 1 - bomboni_request_derive/Cargo.toml | 2 +- bomboni_template/Cargo.toml | 2 +- bomboni_wasm/Cargo.toml | 2 +- bomboni_wasm_core/Cargo.toml | 2 +- bomboni_wasm_derive/Cargo.toml | 2 +- develop.sh | 4 +- 25 files changed, 34 insertions(+), 45 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1f78953..19214db 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -39,10 +39,10 @@ jobs: run: cargo test --workspace --all-targets --all-features - name: Test - no default features - run: cargo test --workspace --all-targets --no-default-features + run: cargo test --workspace --all-targets --no-default-features --features testing,request - name: Test doc run: cargo test --workspace --doc --all-features - name: Test doc - no default features - run: cargo test --workspace --doc --no-default-features + run: cargo test --workspace --doc --no-default-features --features testing,request diff --git a/Cargo.toml b/Cargo.toml index 462c1a6..5d5e960 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bomboni" -version = "0.1.60" +version = "0.1.61" authors = ["Tin Rabzelj "] description = "Utility Library for Rust" repository = "https://github.com/tinrab/bomboni" @@ -51,31 +51,31 @@ fs = ["dep:bomboni_fs"] postgres = ["bomboni_common/postgres", "bomboni_request/postgres"] [dependencies] -bomboni_common = { path = "bomboni_common", version = "0.1.60" } +bomboni_common = { path = "bomboni_common", version = "0.1.61" } -bomboni_prost = { path = "bomboni_prost", version = "0.1.60", default-features = false, optional = true } -bomboni_proto = { path = "bomboni_proto", version = "0.1.60", default-features = false, optional = true } -bomboni_request = { path = "bomboni_request", version = "0.1.60", default-features = false, optional = true, features = [ +bomboni_prost = { path = "bomboni_prost", version = "0.1.61", default-features = false, optional = true } +bomboni_proto = { path = "bomboni_proto", version = "0.1.61", default-features = false, optional = true } +bomboni_request = { path = "bomboni_request", version = "0.1.61", default-features = false, optional = true, features = [ "root-crate", ] } -bomboni_template = { path = "bomboni_template", version = "0.1.60", default-features = false, optional = true } -bomboni_wasm = { path = "bomboni_wasm", version = "0.1.60", default-features = false, optional = true, features = [ +bomboni_template = { path = "bomboni_template", version = "0.1.61", default-features = false, optional = true } +bomboni_wasm = { path = "bomboni_wasm", version = "0.1.61", default-features = false, optional = true, features = [ "root-crate", ] } -bomboni_fs = { path = "bomboni_fs", version = "0.1.60", default-features = false, optional = true } +bomboni_fs = { path = "bomboni_fs", version = "0.1.61", default-features = false, optional = true } [workspace.dependencies] -bomboni_core = { path = "bomboni_core", version = "0.1.60" } -bomboni_common = { path = "bomboni_common", version = "0.1.60" } -bomboni_prost = { path = "bomboni_prost", version = "0.1.60" } -bomboni_proto = { path = "bomboni_proto", version = "0.1.60" } -bomboni_request = { path = "bomboni_request", version = "0.1.60" } -bomboni_request_derive = { path = "bomboni_request_derive", version = "0.1.60" } -bomboni_template = { path = "bomboni_template", version = "0.1.60" } -bomboni_wasm = { path = "bomboni_wasm", version = "0.1.60" } -bomboni_wasm_core = { path = "bomboni_wasm_core", version = "0.1.60" } -bomboni_wasm_derive = { path = "bomboni_wasm_derive", version = "0.1.60" } -bomboni_fs = { path = "bomboni_fs", version = "0.1.60" } +bomboni_core = { path = "bomboni_core", version = "0.1.61" } +bomboni_common = { path = "bomboni_common", version = "0.1.61" } +bomboni_prost = { path = "bomboni_prost", version = "0.1.61" } +bomboni_proto = { path = "bomboni_proto", version = "0.1.61" } +bomboni_request = { path = "bomboni_request", version = "0.1.61" } +bomboni_request_derive = { path = "bomboni_request_derive", version = "0.1.61" } +bomboni_template = { path = "bomboni_template", version = "0.1.61" } +bomboni_wasm = { path = "bomboni_wasm", version = "0.1.61" } +bomboni_wasm_core = { path = "bomboni_wasm_core", version = "0.1.61" } +bomboni_wasm_derive = { path = "bomboni_wasm_derive", version = "0.1.61" } +bomboni_fs = { path = "bomboni_fs", version = "0.1.61" } thiserror = "1.0.64" regex = "1.11.0" diff --git a/bomboni_common/Cargo.toml b/bomboni_common/Cargo.toml index 2897387..b442610 100644 --- a/bomboni_common/Cargo.toml +++ b/bomboni_common/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bomboni_common" -version = "0.1.60" +version = "0.1.61" authors = ["Tin Rabzelj "] description = "Common things for Bomboni library." repository = "https://github.com/tinrab/bomboni" diff --git a/bomboni_core/Cargo.toml b/bomboni_core/Cargo.toml index 00ad442..e205769 100644 --- a/bomboni_core/Cargo.toml +++ b/bomboni_core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bomboni_core" -version = "0.1.60" +version = "0.1.61" authors = ["Tin Rabzelj "] description = "Internal part of Bomboni library." repository = "https://github.com/tinrab/bomboni" diff --git a/bomboni_fs/Cargo.toml b/bomboni_fs/Cargo.toml index 558614e..8383a13 100644 --- a/bomboni_fs/Cargo.toml +++ b/bomboni_fs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bomboni_fs" -version = "0.1.60" +version = "0.1.61" authors = ["Tin Rabzelj "] description = "Utilites for working with the file system. Part of Bomboni library." repository = "https://github.com/tinrab/bomboni" diff --git a/bomboni_prost/Cargo.toml b/bomboni_prost/Cargo.toml index 60e6701..fdeef09 100644 --- a/bomboni_prost/Cargo.toml +++ b/bomboni_prost/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bomboni_prost" -version = "0.1.60" +version = "0.1.61" authors = ["Tin Rabzelj "] description = "Utilities for working with prost. Part of Bomboni library." repository = "https://github.com/tinrab/bomboni" diff --git a/bomboni_proto/Cargo.toml b/bomboni_proto/Cargo.toml index 6f38966..a6d9809 100644 --- a/bomboni_proto/Cargo.toml +++ b/bomboni_proto/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bomboni_proto" -version = "0.1.60" +version = "0.1.61" authors = ["Tin Rabzelj "] description = "Utilities for working with Protobuf/gRPC. Part of Bomboni library." repository = "https://github.com/tinrab/bomboni" diff --git a/bomboni_request/Cargo.toml b/bomboni_request/Cargo.toml index bea4b42..6efea4a 100644 --- a/bomboni_request/Cargo.toml +++ b/bomboni_request/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bomboni_request" -version = "0.1.60" +version = "0.1.61" authors = ["Tin Rabzelj "] description = "Utilities for working with API requests. Part of Bomboni library." repository = "https://github.com/tinrab/bomboni" diff --git a/bomboni_request/src/filter/mod.rs b/bomboni_request/src/filter/mod.rs index 6f8acd1..9966593 100644 --- a/bomboni_request/src/filter/mod.rs +++ b/bomboni_request/src/filter/mod.rs @@ -547,7 +547,6 @@ impl Display for FilterComparator { } } -#[cfg(feature = "testing")] #[cfg(test)] mod tests { use crate::testing::schema::{RequestItem, TaskItem, UserItem}; diff --git a/bomboni_request/src/ordering/mod.rs b/bomboni_request/src/ordering/mod.rs index fe3f7db..7472819 100644 --- a/bomboni_request/src/ordering/mod.rs +++ b/bomboni_request/src/ordering/mod.rs @@ -155,7 +155,6 @@ impl Display for OrderingDirection { } } -#[cfg(feature = "testing")] #[cfg(test)] mod tests { use crate::ordering::OrderingDirection::{Ascending, Descending}; diff --git a/bomboni_request/src/parse/mod.rs b/bomboni_request/src/parse/mod.rs index ada687b..81373c6 100644 --- a/bomboni_request/src/parse/mod.rs +++ b/bomboni_request/src/parse/mod.rs @@ -47,7 +47,6 @@ pub struct ParsedResource { pub revision_create_time: Option, } -#[cfg(feature = "testing")] #[cfg(test)] mod tests { use super::*; diff --git a/bomboni_request/src/query/list.rs b/bomboni_request/src/query/list.rs index 22e6dfa..9f556f9 100644 --- a/bomboni_request/src/query/list.rs +++ b/bomboni_request/src/query/list.rs @@ -167,7 +167,6 @@ impl ListQueryBuilder

{ } } -#[cfg(feature = "testing")] #[cfg(test)] mod tests { use crate::{ diff --git a/bomboni_request/src/query/page_token/aes256.rs b/bomboni_request/src/query/page_token/aes256.rs index 7f16cd3..99bea73 100644 --- a/bomboni_request/src/query/page_token/aes256.rs +++ b/bomboni_request/src/query/page_token/aes256.rs @@ -108,7 +108,6 @@ impl Debug for Aes256PageTokenBuilder { } } -#[cfg(feature = "testing")] #[cfg(test)] mod tests { use crate::testing::schema::UserItem; diff --git a/bomboni_request/src/query/page_token/base64.rs b/bomboni_request/src/query/page_token/base64.rs index 7cfe24c..74352a5 100644 --- a/bomboni_request/src/query/page_token/base64.rs +++ b/bomboni_request/src/query/page_token/base64.rs @@ -69,7 +69,6 @@ impl Debug for Base64PageTokenBuilder { } } -#[cfg(feature = "testing")] #[cfg(test)] mod tests { use crate::testing::schema::UserItem; diff --git a/bomboni_request/src/query/page_token/rsa.rs b/bomboni_request/src/query/page_token/rsa.rs index 447336e..62a6917 100644 --- a/bomboni_request/src/query/page_token/rsa.rs +++ b/bomboni_request/src/query/page_token/rsa.rs @@ -107,7 +107,6 @@ impl Debug for RsaPageTokenBuilder { } } -#[cfg(feature = "testing")] #[cfg(test)] mod tests { use std::sync::OnceLock; diff --git a/bomboni_request/src/query/search.rs b/bomboni_request/src/query/search.rs index 3a9dde4..25d47d8 100644 --- a/bomboni_request/src/query/search.rs +++ b/bomboni_request/src/query/search.rs @@ -172,7 +172,6 @@ impl SearchQueryBuilder

{ } #[cfg(test)] -#[cfg(feature = "testing")] mod tests { use crate::{ filter::error::FilterError, diff --git a/bomboni_request/src/schema.rs b/bomboni_request/src/schema.rs index 980873d..defb232 100644 --- a/bomboni_request/src/schema.rs +++ b/bomboni_request/src/schema.rs @@ -131,7 +131,6 @@ impl Display for ValueType { } } -#[cfg(feature = "testing")] #[cfg(test)] mod tests { use crate::testing::schema::RequestItem; diff --git a/bomboni_request/src/sql/filter.rs b/bomboni_request/src/sql/filter.rs index 4cd8b08..a803d14 100644 --- a/bomboni_request/src/sql/filter.rs +++ b/bomboni_request/src/sql/filter.rs @@ -377,7 +377,6 @@ impl<'a> SqlFilterBuilder<'a> { } } -#[cfg(feature = "testing")] #[cfg(test)] mod tests { use std::collections::BTreeMap; diff --git a/bomboni_request/src/sql/query.rs b/bomboni_request/src/sql/query.rs index a2a676b..59236e8 100644 --- a/bomboni_request/src/sql/query.rs +++ b/bomboni_request/src/sql/query.rs @@ -168,7 +168,6 @@ const _: () = { }; #[cfg(test)] -#[cfg(feature = "testing")] mod tests { use crate::{ ordering::Ordering, query::page_token::FilterPageToken, testing::schema::RequestItem, diff --git a/bomboni_request_derive/Cargo.toml b/bomboni_request_derive/Cargo.toml index 701536a..3dd0deb 100644 --- a/bomboni_request_derive/Cargo.toml +++ b/bomboni_request_derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bomboni_request_derive" -version = "0.1.60" +version = "0.1.61" authors = ["Tin Rabzelj "] description = "Internal request derive macros for Bomboni library." repository = "https://github.com/tinrab/bomboni" diff --git a/bomboni_template/Cargo.toml b/bomboni_template/Cargo.toml index 9dac8d7..09eebcc 100644 --- a/bomboni_template/Cargo.toml +++ b/bomboni_template/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bomboni_template" -version = "0.1.60" +version = "0.1.61" authors = ["Tin Rabzelj "] description = "Utilities for working Handlebars templates. Part of Bomboni library." repository = "https://github.com/tinrab/bomboni" diff --git a/bomboni_wasm/Cargo.toml b/bomboni_wasm/Cargo.toml index 1f7abf3..21593e8 100644 --- a/bomboni_wasm/Cargo.toml +++ b/bomboni_wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bomboni_wasm" -version = "0.1.60" +version = "0.1.61" authors = ["Tin Rabzelj "] description = "Utilities for working with WASM. Part of Bomboni library." repository = "https://github.com/tinrab/bomboni" diff --git a/bomboni_wasm_core/Cargo.toml b/bomboni_wasm_core/Cargo.toml index 7e89af7..97f85a4 100644 --- a/bomboni_wasm_core/Cargo.toml +++ b/bomboni_wasm_core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bomboni_wasm_core" -version = "0.1.60" +version = "0.1.61" authors = ["Tin Rabzelj "] description = "Internal WASM part of Bomboni library." repository = "https://github.com/tinrab/bomboni" diff --git a/bomboni_wasm_derive/Cargo.toml b/bomboni_wasm_derive/Cargo.toml index 07a2004..077ad1d 100644 --- a/bomboni_wasm_derive/Cargo.toml +++ b/bomboni_wasm_derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bomboni_wasm_derive" -version = "0.1.60" +version = "0.1.61" authors = ["Tin Rabzelj "] description = "Internal WASM derive macros for Bomboni library." repository = "https://github.com/tinrab/bomboni" diff --git a/develop.sh b/develop.sh index fbb7288..3b8049e 100755 --- a/develop.sh +++ b/develop.sh @@ -59,8 +59,8 @@ function lint() { function test() { if [[ "$2" =~ ^(--no-default-features)$ ]]; then - cargo test --workspace --all-targets --no-default-features -- --nocapture - cargo test --workspace --doc --no-default-features -- --nocapture + cargo test --workspace --all-targets --no-default-features --features testing,request -- --nocapture + cargo test --workspace --doc --no-default-features --features testing -- --nocapture else cargo test --workspace --all-targets --all-features -- --nocapture cargo test --workspace --doc --all-features -- --nocapture