Skip to content

Make Ulid AoT compatible#12

Merged
Seramis merged 3 commits intomainfrom
aot-compatible
Jun 25, 2025
Merged

Make Ulid AoT compatible#12
Seramis merged 3 commits intomainfrom
aot-compatible

Conversation

@Seramis
Copy link
Copy Markdown
Member

@Seramis Seramis commented Jun 25, 2025

Description

Mark Ulid library as AoT compatible. Add AoT Console application to use Ulid in various ways to test AoT compatibility. Added GitHub Action workflow to run the AoT Console application.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Other (please specify):

Checklist

  • The PR is submitted to the correct branch (main).
  • My code follows the project's coding style. (.editorconfig)
  • I have commented my code, particularly in hard-to-understand areas and public interfaces.
  • I have added or updated tests for the changes I made.
  • All new and existing tests passed.
  • I have updated the documentation where applicable.

Seramis added 3 commits June 25, 2025 18:17
- Updated `build-and-test.yml` to streamline pull request triggers.
- Added extensive amount of calls to Ulid and testing in `Program.cs` for `ByteAether.Ulid`, including ULID creation, conversion, parsing, and validation.
- Removed old JSON serialization tests; integrated new tests with `System.Text.Json` using `MyClassWithUlid`.
- Minor formatting adjustments in `UlidAotTest.csproj` for consistency.
- Made `UlidJsonContext` internal and updated JSON serialization context.
- Introduced `build-and-test-aot.yml` for AOT compatibility testing across multiple OS.
- Changed published project in `build-and-test-aot.yml` to `ByteAether.Ulid.Tests.AotConsole`.
- Added "Ahead-of-Time (AoT) Compilation Compatible" feature to `README.md` and `PACKAGE.md`.
- Updated byte array output formatting in `Program.cs` of AoT console test to use `Convert.ToHexString()`.
- Revised project description in `ByteAether.Ulid.csproj` to highlight AoT compatibility.
@Seramis Seramis self-assigned this Jun 25, 2025
@Seramis Seramis merged commit 1334c28 into main Jun 25, 2025
5 checks passed
@Seramis Seramis deleted the aot-compatible branch June 25, 2025 15:52
@Seramis Seramis added the enhancement New feature or request label Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant