Crate idk

source ·
Expand description

A Rust library for managing errors and exceptions

Rust

Rust Crates.io Lib.rs GitHub License

Overview

IDontKnow (IDK) is a Rust library that has functions and variables designed to make it easy for your program to report informative error messages. You can use the IDK library to create error messages that are clear, concise, and actionable.

Features

The library includes multiple modules: Common, Error, Jwt, Property, Stacktrace, and Traits.

  • The common module: This module provides a foundation of common functionalities that can be utilized throughout the entire project. These functionalities serve as a building block for the rest of the project, making it easier for developers to create and manage their code.
  • The error module: This module contains all the error types that are used in the project. By providing a centralized location for errors, developers can quickly and easily identify and resolve any issues that may arise.
  • The jwt module: This module offers the tools necessary to encode and decode JSON Web Tokens (JWT). With a simple, easy-to-use interface, developers can ensure secure communication between parties.
  • The property module: This module provides the functionality to create and manage properties. By utilizing this module, developers can keep track of all properties within the project and make changes as necessary.
  • The stacktrace module: This module offers the tools to create and manage stacktraces. By providing detailed information about the execution of the code, developers can quickly identify and resolve any issues that may arise.
  • The traits module: This module provides functionality to create and manage traits. By utilizing this module, developers can ensure that all traits within the project are consistent and well-defined.

Usage

  • serde: Enable serialization/deserialization via serde

Modules

The common module provides common functionality that can be used throughout the entire crate.
The error module contains all the error types used in the crate.
The jwt module provides functionality to encode and decode JSON Web Tokens (JWT).
The property module provides functionality to create and manage properties.
The stacktrace module provides functionality to create and manage stacktraces.
The traits module provides functionality to create and manage traits.