Rustly.Analyzers 10.6.2-rc6

This is a prerelease version of Rustly.Analyzers.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Rustly.Analyzers --version 10.6.2-rc6
                    
NuGet\Install-Package Rustly.Analyzers -Version 10.6.2-rc6
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rustly.Analyzers" Version="10.6.2-rc6">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rustly.Analyzers" Version="10.6.2-rc6" />
                    
Directory.Packages.props
<PackageReference Include="Rustly.Analyzers">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Rustly.Analyzers --version 10.6.2-rc6
                    
#r "nuget: Rustly.Analyzers, 10.6.2-rc6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Rustly.Analyzers@10.6.2-rc6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Rustly.Analyzers&version=10.6.2-rc6&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Rustly.Analyzers&version=10.6.2-rc6&prerelease
                    
Install as a Cake Tool

Rustly.Analyzers (v10.6.2-rc6)

Roslyn analyzers enforcing Rust-style patterns: null-safety, explicit error handling, unsafe Unwrap detection. 10 diagnostics.

Part of the Rustly ecosystem for .NET.

Install

dotnet add package Rustly.Analyzers --version 10.6.2-rc6

Diagnostics

ID Description Severity
RUSTLY001 Use Option<T> instead of nullable Warning
RUSTLY002 Use Result instead of try/catch Warning
RUSTLY003 Match not exhaustive Warning
RUSTLY004 Unsafe Unwrap call Error
RUSTLY005 Option compared to null Warning
RUSTLY006 Result ignored Warning
RUSTLY007 Use EnumValue instead of enum Info
RUSTLY008 Missing EnumValueSerializer Warning
RUSTLY009 Option used without check Warning
RUSTLY010 Implicit conversion from null Warning
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.6.4 185 4/28/2026
10.6.3 139 4/16/2026
10.6.2 124 4/16/2026
10.6.2-rc6 120 4/16/2026
10.6.2-rc5 136 4/15/2026 10.6.2-rc5 is deprecated because it is no longer maintained and has critical bugs.
10.6.1 125 4/15/2026

EN: 10.6.2
- RUSTLY004 severity upgraded to Error (panic)
- RUSTLY004 now recognizes IsSome/IsOk guards in while/do/for loops and ternary expressions (lambda-friendly)
- RUSTLY004 recognizes safe constructors: Some().Unwrap(), Ok().Unwrap()
- XML documentation added to all analyzers and diagnostic descriptors

RU: 10.6.2
- RUSTLY004 повышен до Error (panic)
- RUSTLY004 теперь распознаёт IsSome/IsOk проверки в циклах while/do/for и тернарных выражениях (lambda-friendly)
- RUSTLY004 распознаёт безопасные конструкторы: Some().Unwrap(), Ok().Unwrap()
- Добавлена XML-документация ко всем анализаторам и дескрипторам диагностик