Skip to main content
ZeroAlloc.StateMachine package icon

ZeroAlloc.StateMachine

Source-generated, zero-allocation finite state machines for .NET. Add [StateMachine] and [Transition] attributes to a partial class; the generator emits a TryFire switch expression with no heap allocation on the transition path. AOT-safe.

Total Downloads
51.7K
51,688
Published
Sep 19, 2026
Latest stable version

Install

.NET CLI
dotnet add package ZeroAlloc.StateMachine --version 1.5.3
Package Manager Console
Install-Package ZeroAlloc.StateMachine -Version 1.5.3
PackageReference
<PackageReference Include="ZeroAlloc.StateMachine" Version="1.5.3" />

Frameworks

net10.0 net8.0 net9.0

Dependencies

No declared dependencies.

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.