Skip to content

✨ Initial setup for oi4-dnp-encoding project πŸš€#1

Merged
Weinschenk merged 9 commits into
mainfrom
development
Sep 17, 2025
Merged

✨ Initial setup for oi4-dnp-encoding project πŸš€#1
Weinschenk merged 9 commits into
mainfrom
development

Conversation

@Weinschenk
Copy link
Copy Markdown
Contributor

  • Added rust-toolchain.toml to specify Rust toolchain and components.
  • Updated .gitignore to exclude IDE files and project-specific files.
  • Created Cargo.toml for package metadata and dependencies.
  • Implemented fuzzing targets in validate.rs and decode.rs for testing.
  • Added CI workflows in ci.yml and coverage.yml for automated testing and coverage reporting.
  • Introduced CHANGELOG.md to document project changes.
  • Created initial implementation files: encode.rs, decode.rs, validate.rs, and others for core functionality.
  • Added examples and tests for encoding, decoding, and validation in test_encode.rs, test_decode.rs, and test_validate.rs.
  • Included README.md for project overview and usage instructions.
  • Established LICENSE file for MIT licensing.
  • Added compare_go.sh for differential testing against Go implementation.

Let's get this project rolling! πŸŽ‰

Thomas and others added 9 commits September 16, 2025 11:25
- Added `rust-toolchain.toml` to specify Rust toolchain and components.
- Updated `.gitignore` to exclude IDE files and project-specific files.
- Created `Cargo.toml` for package metadata and dependencies.
- Implemented fuzzing targets in `validate.rs` and `decode.rs` for testing.
- Added CI workflows in `ci.yml` and `coverage.yml` for automated testing and coverage reporting.
- Introduced `CHANGELOG.md` to document project changes.
- Created initial implementation files: `encode.rs`, `decode.rs`, `validate.rs`, and others for core functionality.
- Added examples and tests for encoding, decoding, and validation in `test_encode.rs`, `test_decode.rs`, and `test_validate.rs`.
- Included `README.md` for project overview and usage instructions.
- Established `LICENSE` file for MIT licensing.
- Added `compare_go.sh` for differential testing against Go implementation.

Let's get this project rolling! πŸŽ‰
- Updated `.gitignore` to include IntelliJ and Mac specific files.
- Refactored `all_in_one.rs`, `basic.rs`, and other source files for improved readability and consistency.
- Updated `Cargo.toml` and `Cargo.lock` to reflect new dependency versions.
- Enhanced error handling in `decode.rs` and `encode.rs`.
- Improved CLI usage messages in `main.rs` for better user experience.
- Added tests for stricter validation in `test_validate.rs`.

These changes aim to streamline the codebase and enhance maintainability! πŸ’ͺ
- Updated `decode.rs` to use new hex helper functions for better readability and maintainability.
- Introduced `hex.rs` with internal helpers for hexadecimal digit handling.
- Removed redundant inline functions from `validate.rs` to streamline the codebase.
- Updated `decode.rs` to conditionally import hex utilities based on the "strict" feature flag.
- Improved flexibility in decoding by allowing different hex validation methods.
- Updated `decode.rs` to conditionally import hex utilities based on the "strict" feature flag.
- Improved flexibility in decoding by allowing different hex validation methods.
- Updated `decode.rs` to conditionally import hex utilities based on the "strict" feature flag.
- Improved flexibility in decoding by allowing different hex validation methods.
Co-authored-by: Weinschenk <2759891+Weinschenk@users.noreply.github.com>
Fix CI formatting failures and improve code quality
@Weinschenk Weinschenk merged commit 2e64b22 into main Sep 17, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants