Zero-Allocation Primitives
Stack-only Result<T, TError>, Option<T>,
ContextError chains, ScopeGuard RAII defer/rollback,
NonZero<T>, NonEmptyString, and checked math.
Zero-allocation Result<T, E> & Option<T>, data-owning
Mutex<T> & structured TaskScope, zero-boxing
[DiscriminatedUnion] & [Newtype] generators, CFG ownership/typestate
analyzers, and Clippy-style diagnostics—polyfilling on .NET 10 and lighting up
natively on .NET 11 / C# 15.
dotnet add package Ferrous
Stack-only Result<T, TError>, Option<T>,
ContextError chains, ScopeGuard RAII defer/rollback,
NonZero<T>, NonEmptyString, and checked math.
Source-generated zero-boxing [DiscriminatedUnion] (with .NET 11 [Union]
light-up), validated [Newtype] wrappers, and [Instrument] Activity spans.
CFG-based Roslyn analyzers enforcing move semantics ([Consuming] / [ConsumesSelf]),
borrow exclusivity, linear [Typestate] protocols, and terminal-state leak checks.
Data-owning Mutex<T>, AsyncMutex<T>, RwLock<T>,
TypedChannel, and structured TaskScope—backed by FE0500–FE0503 analyzers.
Opt-in Ferrous.AspNetCore (RFC 7807 ProblemDetails &
.WithFerrousResults()) and Ferrous.EntityFrameworkCore value converters &
FirstOrErrAsync queries.
CompileAssert (trybuild), PropAssert shrinking property tests,
AllocAssert.Zero, dotnet fe doc static API docs, IDE Ctrl+.
refactorings, and dotnet fe migrate.
Searchable, zero-config static HTML API docs generated by dotnet fe doc with Roslyn syntax highlighting and Mermaid typestate graphs.
Deep-dive documentation covering every runtime primitive, source generator, diagnostic rule (FE0001–FE0503), and CLI command.
A chapter-by-chapter real-world case study porting MVC Music Store to Ferrous—with its own live API docs site hosted right here.