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.