Thank you for your interest in contributing to the official Dart implementation of TOON!
This project uses Dart and pub for dependency management.
# Clone the repository
git clone https://github.com/toon-format/toon-dart.git
cd toon-dart
# Get dependencies
dart pub get
# Run tests
dart test
# Run tests with coverage
dart test --coverage=coverage
dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib- Fork the repository and create a feature branch
- Make your changes following the coding standards below
- Add tests for any new functionality
- Ensure all tests pass and coverage remains high
- Submit a pull request with a clear description
This project targets Dart 3.0 and above.
- Follow standard Dart formatting conventions
- Run
dart formatbefore committing - Run
dart analyzeto catch common mistakes
- All new features must include tests
- Maintain test coverage at 85%+ line coverage
- Tests should cover edge cases and spec compliance
- Run the full test suite:
dart test
All implementations must comply with the TOON specification.
Before submitting changes that affect encoding/decoding behavior:
- Verify against the official SPEC.md
- Add tests for the specific spec sections you're implementing
- Document any spec version requirements
- Title: Use a clear, descriptive title
- Description: Explain what changes you made and why
- Tests: Include tests for your changes
- Documentation: Update README or documentation if needed
- Commits: Use clear commit messages (Conventional Commits preferred)
Your pull request will use our standard template which guides you through the required information.
- GitHub Issues: For bug reports and feature requests
- GitHub Discussions: For questions and general discussion
- Pull Requests: For code reviews and implementation discussion
This is a collaborative project. Current maintainers:
All maintainers have equal and consensual decision-making power. For major architectural decisions, please open a discussion issue first.
By contributing, you agree that your contributions will be licensed under the MIT License.