Skip to content
HosihikariProjectionPublic

About

Versioned IR and coverage contract for binding shim.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Hosihikari.Binding.Ir

English | 简体中文

The versioned intermediate representation (IR) and coverage contract shared by the Hosihikari binding generator and its .NET emitters.

Boundary

This repository contains only the contract: the JSONL schema, the C# model, the reader/writer, the canonical JSON hashing helpers, and the validator. It does not parse C++ headers, embed Clang, or generate bindings.

  • IR instances are produced by the generator in the bindings CI and exchanged with actions/upload-artifact / actions/download-artifact. They are not committed here.
  • The coverage manifest is derived from the IR by the emitters and committed in the binding repository.

Projects

Path Purpose
src/Hosihikari.Binding.Ir Models, JSONL reader/writer, canonical JSON + SHA-256, validators
tests/Hosihikari.Binding.Ir.Tests Dependency-free assertion host; exits non-zero on failure

Build and verify

dotnet run --project tests/Hosihikari.Binding.Ir.Tests/Hosihikari.Binding.Ir.Tests.csproj -c Release

The test host covers record/manifest round-trips, polymorphic records, canonical hashing, enum names, and the strict coverage gate (unknown entries, duplicate (id, configuration) keys, missing reasons, count mismatches).

Versioning

IrSchema.Version is the IR schema version (SemVer). Additive changes bump minor; breaking changes bump major. Emitters must reject unsupported major versions rather than guess. IrSchema.CoverageManifestVersion versions the coverage manifest independently.

Licence

LGPL-3.0-or-later, see LICENSE.md.

About

Versioned IR and coverage contract for binding shim.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages