Skip to content

Add NativeAOT support (#1) - #8

Open
pableess wants to merge 1 commit into
bugproof:masterfrom
pableess:master
Open

pableess wants to merge 1 commit into
bugproof:masterfrom
pableess:master

Conversation

@pableess

@pableess pableess commented Sep 14, 2026

Copy link
Copy Markdown
  • Add NativeAOT support

Use a source-generated TomlSerializerContext for the internal TomlTable deserialization instead of the reflection-based overload. Reflection-based TOML serialization is disabled by default under PublishAot=true, which made the previous call fail at runtime and emit IL2026/IL3050 warnings.

  • Add internal TomlModelSerializerContext with [TomlSerializable(typeof(TomlTable))]
  • Parse via TomlSerializer.Deserialize(text, context)
  • Mark the library IsAotCompatible and bump Tomlyn to 2.10.1

* Add NativeAOT support

Use a source-generated TomlSerializerContext for the internal TomlTable
deserialization instead of the reflection-based overload. Reflection-based
TOML serialization is disabled by default under PublishAot=true, which made
the previous call fail at runtime and emit IL2026/IL3050 warnings.

- Add internal TomlModelSerializerContext with [TomlSerializable(typeof(TomlTable))]
- Parse via TomlSerializer.Deserialize<TomlTable>(text, context)
- Mark the library IsAotCompatible and bump Tomlyn to 2.10.1
- Add a NativeAOT smoke-test project and CI workflow (test + AOT publish/run)

* removed test projects

* remove test project and ci build

---------

Co-authored-by: Paul <paulb@desktop.lan>
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.

1 participant