Fone Crate
The fone crate is a lightweight utility library for Rust that provides:
- Arithmetic Operations: Simple functions for performing basic math.
- Logging Utilities: Macros for in-memory and file-based logging with support for different severity levels.
Features
-
Arithmetic Utilities:
- add: Adds two integers.
-
Logging Utilities:
- In-memory logging:
logi!,logd!,logw!,loge! - File-based logging:
logfi!,logfd!,logfw!,logfe!
- In-memory logging:
Installation
Add the following to your Cargo.toml:
[]
= "0.1.0"
Usage
use add;
use ;
use ;
Testing
To run the test suite:
The tests validate:
- Arithmetic functionality.
- In-memory logging behavior.
- File-based logging behavior.
Documentation
Generate and view the documentation locally:
For online documentation, visit docs.rs/fone.
Contributing
Contributions are welcome! Please ensure that:
- New features include appropriate tests.
- Documentation is updated for all public APIs.
- Code adheres to Rust best practices and formatting standards.
License
This project is licensed under the MIT License. See LICENSE for details.
---
### Summary of Changes
1. **Crate-Level Documentation**: Added to `lib.rs` or `main.rs` to describe the crate's purpose, features, and usage.
2. **Function-Level Documentation**: Added to each public function and macro to explain their behavior and provide examples.
3. **README.md**: Created to provide a high-level overview of the crate, installation instructions, usage examples, and contribution guidelines.
With these updates, the `fone` crate will have comprehensive documentation that supports `cargo doc` generation and provides a clear README for users.