Hazel 1.0.0

dotnet tool install --global Hazel --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Hazel --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Hazel&version=1.0.0
                    
nuke :add-package Hazel --version 1.0.0
                    

<div align="center"> <h1>Hazel</h1> <p><i>Ratio et Elegantia</i></p> <img src="assets/Hazel_Logo_White.webp" alt="Hazel" width="100%"> <p>A modern, high performance programming language designed for building scalable, efficient, and enterprise-grade applications.</p> </div>

📦 Installation

Install the CLI tool from NuGet:

dotnet tool install --global --source https://api.nuget.org/v3/index.json Hazel

or build and install from source:

dotnet pack --configuration Release
dotnet tool install --global --source ./src/Hazel/bin/Release Hazel

To uninstall the CLI tool globally:

dotnet tool uninstall --global Hazel

📖 Usage

File/Directory:

hazel Program.hz

Inline:

hazel -c "
namespace Hazel
{
    internal class Calculator
    {
        private protected int Add(int a, int b)
        {
            var h = 8;
            return a + b * h;
        }
    }
}
"

⚙️ Development

If you are actively contributing to the compiler or want to test local source changes without reinstalling the global tool, you can run the compiler project directly:

dotnet run --project src/Hazel -- ...

🔣 Core Semantics

  • Mandatory Access Modifiers: Every type, member, and definition requires an explicit access modifier.
  • (soon) First-Class Bounded Strings: Strings with explicit length constraints are first-class types.

📄 License

The Hazel compiler is open-source and licensed under the MPL-2.0 License.


<div align="center"> <p>Copyright © 2026 Hazel Foundation</p> <p>🌰</p> </div>

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.

This package has no dependencies.

Version Downloads Last Updated
1.0.0 47 8/25/2026