Repository navigation
Home
github-actions[bot] edited this page Nov 30, 2026
·
12 revisions
Welcome to the Ferrous documentation!
Ferrous brings Rust's compile-time guarantees, zero-allocation primitives, and ergonomic diagnostics to .NET (net10.0 and net11.0, with .NET 11 C# 15 [Union] / closed light-up and runtime-async=on).
Each guide walks through realistic usage examples and explains what Rust and Ferrous add over vanilla .NET—turning subtle runtime bugs, races, and hidden allocations into compile-time checks.
-
Getting Started — Install
Ferrous, individual packages,dotnet fe, or scaffold withdotnet new ferrous -
Scope Guards — Zero-allocation
ref structRAII defer/rollback guards -
Results & Options — Allocation-free
Result<T, TError>,Option<T>,ContextError/.WithContext(...),CheckedMath,NonZero<T>,NonEmptyString,NonEmptyList<T>, and.Get(...) -
Concurrency & Analyzers — Data-owning
Mutex<T>,AsyncMutex<T>,RwLock<T>,AsyncRwLock<T>,OnceLock<T>,LazyLock<T>,TypedChannel,TaskScope+FE0500–FE0503 -
Discriminated Unions — Zero-boxing
[DiscriminatedUnion](.NET 11[Union]light-up,[ErrorMessage], JSON), validated[Newtype]structs, and[Instrument]Activity spans -
MustUse Analyzer —
FE0001[MustUse]enforcement -
Ownership Analyzer —
FE0200–FE0203CFG-based move semantics, inter-procedural forwarding, & borrowing exclusivity/escape -
Typestate Protocol —
FE0300–FE0303linear state machines & terminal-state leak checks -
Pedantic Analyzers —
FE0400–FE0427Clippy-style lints, bounds-aware indexing, & inter-procedural summaries +<FerrousPedantic>true</FerrousPedantic> -
Testing & Docs —
Ferrous.Testing(CompileAssert,PropAssert/Gen<T>,AllocAssert,AssertOk/AssertErr),dotnet fe doctest,dotnet fe doc, anddotnet new ferrous -
Web & Data (ASP.NET Core / EF Core) —
Ferrous.AspNetCoreMinimal APIProblemDetails& endpoint filters,Ferrous.EntityFrameworkCorevalue converters &Resultqueries -
CLI Tool —
dotnet fe(expand,graph,init,audit,doctest,test,doc,migrate) & IDE migration refactorings -
Project Site & Live API Reference — Auto-generated by
dotnet fe doc - Roadmap — Now / Next / Later roadmap
Ferrous — Rust quality-of-life primitives, source generators, and analyzers for .NET (.NET 10 / .NET 11, NativeAOT-ready, MIT License).