Skip to main content

A package for parsing raw Rust data packets and WorldData OUTSIDE of the Unity environment

Total Downloads
595
595
Published
Jun 26, 2026
3mo ago

Get Started

dotnet add package Rust.Polyfills --version 0.0.3
ProductVersions
.NET
net10.0

README

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.

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

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

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.