Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ sync : git.sync
# Usage :
# make audit

audit :
cargo audit
audit :
# This change is made to ignore the RUSTSEC-2024-0421 warning related to the idna crate.
# The issue arises because unitore relies on gluesql, which in turn depends on an outdated version of idna.
# Since the primary logic in unitore is built around gluesql, upgrading idna directly is not feasible.
cargo audit --ignore RUSTSEC-2024-0421

#
# === General commands
Expand Down
2 changes: 0 additions & 2 deletions module/core/clone_dyn_types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ mod private
///
/// assert_eq!( original.value, cloned.value );
/// ```

#[ inline ]
pub fn clone< T >( src : &T ) -> T
where
Expand Down Expand Up @@ -174,7 +173,6 @@ mod private
/// let cloned : Box< dyn MyTrait > = clone_into_box( &MyStruct { value : 42 } );
///
/// ```

#[ inline ]
pub fn clone_into_box< T >( ref_dyn : &T ) -> Box< T >
where
Expand Down
1 change: 0 additions & 1 deletion module/core/derive_tools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ mod derive_more
pub use variadic_from as variadic;

/// Namespace with dependencies.

#[ allow( unused_imports ) ]
#[ cfg( feature = "enabled" ) ]
pub mod dependency
Expand Down
4 changes: 0 additions & 4 deletions module/core/error_tools/src/error/assert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ mod private
///
/// Macro asserts that two expressions are identical to each other. Unlike `std::assert_eq` it is removed from a release build.
///

#[ macro_export ]
macro_rules! debug_assert_id
{
Expand Down Expand Up @@ -59,7 +58,6 @@ mod private
}

/// Macro asserts that two expressions are identical to each other. Unlike `std::assert_eq` it is removed from a release build. Alias of `debug_assert_id`.

#[ macro_export ]
macro_rules! debug_assert_identical
{
Expand All @@ -71,7 +69,6 @@ mod private
}

/// Macro asserts that two expressions are not identical to each other. Unlike `std::assert_eq` it is removed from a release build.

#[ macro_export ]
macro_rules! debug_assert_ni
{
Expand All @@ -84,7 +81,6 @@ mod private
}

/// Macro asserts that two expressions are not identical to each other. Unlike `std::assert_eq` it is removed from a release build.

#[ macro_export ]
macro_rules! debug_assert_not_identical
{
Expand Down
3 changes: 1 addition & 2 deletions module/core/error_tools/src/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
mod private
{
#[ allow( clippy::useless_attribute, clippy::pub_use ) ]
pub use std::error::Error as ErrorTrait;
pub use core::error::Error as ErrorTrait;

/// This trait allows adding extra context or information to an error, creating a tuple of the additional
/// context and the original error. This is particularly useful for error handling when you want to include
Expand All @@ -11,7 +11,6 @@ mod private
/// The `ErrWith` trait provides methods to wrap an error with additional context, either by using a closure
/// that generates the context or by directly providing the context.
///
/// ```
pub trait ErrWith< ReportErr, ReportOk, E >
{
/// Takes a closure `f` that returns a value of type `ReportErr`, and uses it to wrap an error of type `(ReportErr, E)`
Expand Down
1 change: 0 additions & 1 deletion module/core/former_meta/src/derive_former.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ item : {item}"#,
///
/// Generate documentation for the former.
///

fn doc_generate( item : &syn::Ident ) -> ( String, String )
{

Expand Down
11 changes: 0 additions & 11 deletions module/core/former_meta/src/derive_former/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use macro_tools::{ container_kind };
///
/// Definition of a field.
///

#[ allow( dead_code ) ]
pub struct FormerField< 'a >
{
Expand Down Expand Up @@ -44,7 +43,6 @@ impl< 'a > FormerField< 'a >
`scalar_setter_required`

*/

/// Construct former field from [`syn::Field`]
pub fn from_syn( field : &'a syn::Field, for_storage : bool, for_formed : bool ) -> Result< Self >
{
Expand Down Expand Up @@ -86,7 +84,6 @@ impl< 'a > FormerField< 'a >
/// int_optional_1 : core::option::Option::None,
/// ```
///

#[ inline( always ) ]
pub fn storage_fields_none( &self ) -> TokenStream
{
Expand Down Expand Up @@ -114,7 +111,6 @@ impl< 'a > FormerField< 'a >
/// pub string_optional_1 : core::option::Option< String >,
/// ```
///

#[ inline( always ) ]
pub fn storage_field_optional( &self ) -> TokenStream
{
Expand Down Expand Up @@ -171,7 +167,6 @@ impl< 'a > FormerField< 'a >
/// };
/// ```
///

#[ inline( always ) ]
#[ allow( clippy::unnecessary_wraps ) ]
pub fn storage_field_preform( &self ) -> Result< TokenStream >
Expand Down Expand Up @@ -289,7 +284,6 @@ impl< 'a > FormerField< 'a >
///
/// Extract name of a field out.
///

#[ inline( always ) ]
pub fn storage_field_name( &self ) -> TokenStream
{
Expand Down Expand Up @@ -326,7 +320,6 @@ impl< 'a > FormerField< 'a >
/// - **Subform Setters**: Generated for fields annotated as subforms, allowing for nested
/// forming processes where a field itself can be formed using a dedicated former.
///

#[ inline ]
#[ allow( clippy::too_many_arguments ) ]
pub fn former_field_setter
Expand Down Expand Up @@ -441,7 +434,6 @@ impl< 'a > FormerField< 'a >
/// self
/// }
/// ```

#[ inline ]
#[ allow( clippy::format_in_format_args ) ]
pub fn scalar_setter
Expand Down Expand Up @@ -521,7 +513,6 @@ field : {field_ident}"#,
///
/// See `tests/inc/former_tests/subform_collection_manual.rs` for example of generated code.
///

#[ inline ]
#[ allow( clippy::too_many_lines, clippy::too_many_arguments ) ]
pub fn subform_collection_setter
Expand Down Expand Up @@ -855,7 +846,6 @@ with the new content generated during the subforming process.
///
/// See `tests/inc/former_tests/subform_entry_manual.rs` for example of generated code.
///

#[ inline ]
#[ allow( clippy::format_in_format_args, clippy::too_many_lines, clippy::too_many_arguments ) ]
pub fn subform_entry_setter
Expand Down Expand Up @@ -1146,7 +1136,6 @@ formation process of the `{item}`.
/// Generates setter functions to subform scalar and all corresponding helpers.
///
/// See `tests/inc/former_tests/subform_scalar_manual.rs` for example of generated code.

#[ inline ]
#[ allow( clippy::format_in_format_args, clippy::unnecessary_wraps, clippy::too_many_lines, clippy::too_many_arguments ) ]
pub fn subform_scalar_setter
Expand Down
1 change: 0 additions & 1 deletion module/core/former_meta/src/derive_former/struct_attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ impl ItemAttributes
/// This function provides an iterator that yields `syn::Field` objects. If `storage_fields` is set,
/// it clones and iterates over its fields. If `storage_fields` is `None`, it returns an empty iterator.
///

// pub fn storage_fields( &self ) -> impl Iterator< Item = syn::Field >
pub fn storage_fields( &self ) -> &syn::punctuated::Punctuated< syn::Field, syn::token::Comma >
{
Expand Down
1 change: 0 additions & 1 deletion module/core/former_meta/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ mod component
/// ```
///
/// This pattern enables fluent and customizable construction of `UserProfile` instances, allowing for easy setting and modification of its fields.

#[ cfg( feature = "enabled" ) ]
#[ cfg( feature = "derive_former" ) ]
#[
Expand Down
2 changes: 0 additions & 2 deletions module/core/former_types/src/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ mod private
/// It is especially crucial in complex data structures, such as `HashMap`s, where entries
/// often involve a key-value pair, and simple values need to be restructured to fit this model
/// for operations like insertion or update.

pub trait CollectionValToEntry< Val >
{
/// The specific type of entry that corresponds to the value within the collection.
Expand Down Expand Up @@ -142,7 +141,6 @@ mod private
/// such as `HashMap`s. It not only identifies what constitutes an entry and a value in the context of the collection
/// but also provides utility for converting between these two, which is critical in operations involving entry manipulation
/// and value retrieval.

pub trait Collection
{
/// The type of entries that can be added to the collection. This type can differ from `Val` in collections like `HashMap`,
Expand Down
1 change: 0 additions & 1 deletion module/core/former_types/src/collection/binary_heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ where
/// It is particularly useful in scenarios where binary heaps are repeatedly used or configured in similar ways across different
/// parts of an application.
///

pub type BinaryHeapFormer< E, Context, Formed, End > =
CollectionFormer::< E, BinaryHeapDefinition< E, Context, Formed, End > >;

Expand Down
2 changes: 0 additions & 2 deletions module/core/former_types/src/collection/btree_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ where
///
/// The alias helps reduce boilerplate code and enhances readability, making the construction of hash maps in
/// a builder pattern both efficient and expressive.

pub type BTreeMapFormer< K, E, Context, Formed, End > =
CollectionFormer::< ( K, E ), BTreeMapDefinition< K, E, Context, Formed, End > >;

Expand All @@ -225,7 +224,6 @@ CollectionFormer::< ( K, E ), BTreeMapDefinition< K, E, Context, Formed, End > >
/// with the builder pattern provided by the `former` framework. It's a convenience trait that simplifies
/// creating configured hash map builders with default settings.
///

pub trait BTreeMapExt< K, E > : sealed::Sealed
where
K : Ord,
Expand Down
1 change: 0 additions & 1 deletion module/core/former_types/src/collection/btree_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ for BTreeSet< E >
/// It is particularly useful in scenarios where binary tree sets are repeatedly used or configured in similar ways across different
/// parts of an application.
///

pub type BTreeSetFormer< E, Context, Formed, End > =
CollectionFormer::< E, BTreeSetDefinition< E, Context, Formed, End > >;

Expand Down
2 changes: 0 additions & 2 deletions module/core/former_types/src/collection/hash_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ where
///
/// The alias helps reduce boilerplate code and enhances readability, making the construction of hash maps in
/// a builder pattern both efficient and expressive.

pub type HashMapFormer< K, E, Context, Formed, End > =
CollectionFormer::< ( K, E ), HashMapDefinition< K, E, Context, Formed, End > >;

Expand All @@ -235,7 +234,6 @@ CollectionFormer::< ( K, E ), HashMapDefinition< K, E, Context, Formed, End > >;
/// with the builder pattern provided by the `former` framework. It's a convenience trait that simplifies
/// creating configured hash map builders with default settings.
///

pub trait HashMapExt< K, E > : sealed::Sealed
where
K : ::core::cmp::Eq + ::core::hash::Hash,
Expand Down
2 changes: 0 additions & 2 deletions module/core/former_types/src/collection/hash_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ where
/// the `CollectionFormer` with predefined settings. This approach minimizes boilerplate code and enhances
/// readability, making it ideal for fluent and expressive construction of set collections within custom data structures.
///

pub type HashSetFormer< K, Context, Formed, End > =
CollectionFormer::< K, HashSetDefinition< K, Context, Formed, End > >;

Expand All @@ -261,7 +260,6 @@ CollectionFormer::< K, HashSetDefinition< K, Context, Formed, End > >;
/// set construction. It simplifies the process of building `HashSet` instances by providing a straightforward
/// way to start the builder pattern with default context and termination behavior.
///

pub trait HashSetExt< K > : sealed::Sealed
where
K : ::core::cmp::Eq + ::core::hash::Hash,
Expand Down
1 change: 0 additions & 1 deletion module/core/former_types/src/collection/linked_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ for LinkedList< E >
/// It is particularly useful in scenarios where lists are repeatedly used or configured in similar ways across different
/// parts of an application.
///

pub type LinkedListFormer< E, Context, Formed, End > =
CollectionFormer::< E, LinkedListDefinition< E, Context, Formed, End > >;

Expand Down
1 change: 0 additions & 1 deletion module/core/former_types/src/collection/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ for Vec< E >
/// It is particularly useful in scenarios where vectors are repeatedly used or configured in similar ways across different
/// parts of an application.
///

pub type VectorFormer< E, Context, Formed, End > =
CollectionFormer::< E, VectorDefinition< E, Context, Formed, End > >;

Expand Down
1 change: 0 additions & 1 deletion module/core/former_types/src/collection/vector_deque.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ for VecDeque< E >
/// It is particularly useful in scenarios where vector deques are repeatedly used or configured in similar ways across different
/// parts of an application.
///

pub type VecDequeFormer< E, Context, Formed, End > =
CollectionFormer::< E, VecDequeDefinition< E, Context, Formed, End > >;

Expand Down
3 changes: 0 additions & 3 deletions module/core/former_types/src/forming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
/// - Storage-specific fields which are not present in formed structure.
///
/// Look example `former_custom_mutator.rs`

pub trait FormerMutator
where
Self : crate::FormerDefinitionTypes,
Expand Down Expand Up @@ -59,7 +58,6 @@ where
/// # Parameters
/// - `Storage`: The type of the collection being processed.
/// - `Context`: The type of the context that might be altered or returned upon completion.

pub trait FormingEnd< Definition : crate::FormerDefinitionTypes >
{
/// Called at the end of the subforming process to return the modified or original context.
Expand Down Expand Up @@ -251,7 +249,6 @@ for FormingEndClosure< Definition >
/// are aligned from the onset, particularly when one former is nested within another, facilitating the creation
/// of complex hierarchical data structures.
///

pub trait FormerBegin< Definition : >
where
Definition : crate::FormerDefinition,
Expand Down
2 changes: 0 additions & 2 deletions module/core/interval_adapter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ mod private
/// `NonIterableInterval` it does not implement iterator unlike `IterableInterval`.
/// `IterableInterval` inherits all methods of `NonIterableInterval`.
///

pub trait IterableInterval< T = isize >
where
Self : IntoIterator< Item = T > + NonIterableInterval< T >,
Expand All @@ -179,7 +178,6 @@ mod private
///
/// Both [`core::ops::Range`], [`core::ops::RangeInclusive`] are convertable to [`crate::Interval`]
///

#[ allow( clippy::used_underscore_binding ) ]
#[ derive( PartialEq, Eq, Debug, Clone, Copy ) ]
pub struct Interval< T = isize >
Expand Down
1 change: 0 additions & 1 deletion module/core/iter_tools/src/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ mod private
/// }
///
/// ```

#[ cfg( feature = "iter_trait" ) ]
pub trait _IterTrait< 'a, T >
where
Expand Down
1 change: 0 additions & 1 deletion module/core/macro_tools/src/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ mod private
/// ```
/// # Errors
/// qqq: doc

pub fn has_debug< 'a >( attrs : impl Iterator< Item = &'a syn::Attribute > ) -> syn::Result< bool >
{
for attr in attrs
Expand Down
1 change: 0 additions & 1 deletion module/core/macro_tools/src/container_kind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ mod private
/// ```
/// # Panics
/// qqq: doc

#[ must_use ]
pub fn of_optional( ty : &syn::Type ) -> ( ContainerKind, bool )
{
Expand Down
1 change: 0 additions & 1 deletion module/core/macro_tools/src/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ mod private
/// ```
/// # Errors
/// qqq: doc

pub fn named_fields( ast : &syn::DeriveInput ) -> crate::Result< &Punctuated< syn::Field, syn::token::Comma > >
{

Expand Down
Loading
Loading