cdumay_context
cdumay_context is a lightweight and efficient Rust library designed for manipulating a context and exporting it into various formats. The library
provides simple methods to handle structured data and export it in widely used formats like JSON, TOML, and YAML.
This makes it an ideal tool for developers working with configuration management, data serialization, or any use case requiring flexible context manipulation.
Features
- Context Manipulation: Store, modify, and query data within a context object.
- Multiple Export Formats: Export the context to JSON, TOML, or YAML formats.
Usage
To utilize cdumay_context in your project, follow these steps:
- Add Dependencies: To use
cdumay_contextin your project, add it to your Cargo.toml as a dependency:
[]
= "0.1"
- Define Context: The core feature of
cdumay_contextis the context. The context acts as a container where you can store key-value pairs of data. Here's how to create and manipulate it:
use Context;
use Value;
- Exporting the Context:
cdumay-contextallows you to export the context into various formats likeJSON,TOML, andYAML. You can use the following methods to serialize the context:
[]
= { = "1.0", = ["json"] }
use Context;
use Value;