Rust.Polyfills 0.0.2

dotnet add package Rust.Polyfills --version 0.0.2
                    
NuGet\Install-Package Rust.Polyfills -Version 0.0.2
                    
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="Rust.Polyfills" Version="0.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rust.Polyfills" Version="0.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Rust.Polyfills" />
                    
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 Rust.Polyfills --version 0.0.2
                    
#r "nuget: Rust.Polyfills, 0.0.2"
                    
#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 Rust.Polyfills@0.0.2
                    
#: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=Rust.Polyfills&version=0.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Rust.Polyfills&version=0.0.2
                    
Install as a Cake Tool

Rust.Polyfill

A specialized repository containing auto-generated ProtoBuf classes and Unity Polyfills for the game Rust.

Overview

Rust.Polyfill provides a standalone environment for working with Rust's data structures and network protocols outside of a full Unity application.

Why this exists

Attempting to load certain components from Rust.Data.dll (the official game data assembly) often results in failures because they lean heavily on Unity native methods. These native methods are only available when running within an actual Unity Engine process.

This project solves that issue by:

  1. Providing Polyfills: Re-implementing essential UnityEngine types (such as Vector3, Quaternion, Color, etc.) and utility classes in pure C# so they can be used in any .NET environment.
  2. Auto-generated ProtoBufs: Including the protocol buffer classes used by Rust for serialization and network communication.

Contents

  • Rust.Data/generated/: Contains the protocol buffer classes generated from the game's .proto definitions.
  • Facepunch.System/: Core utility libraries and collection types used by the Facepunch engine.
  • UnityPolyfill.cs: A comprehensive collection of Unity-compatible structural types and math utilities designed to mirror UnityEngine behavior without the engine dependency.

Maintenance

This repository is intended to be updated with each protocol change of the Rust server. It should be regularly updated to ensure compatibility with the latest game version and its data formats.

License

This project is intended for use with game data from Rust. Please respect Facepunch Studios' terms of service and intellectual property rights when using these files.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • 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
0.0.2 95 5/21/2026
0.0.1 147 4/13/2026