Skip to content

0.1.8-preview.2 — CI-verified OS × arch support matrix, Google.Protobuf 3.35.1 floor

Pre-release
Pre-release

Choose a tag to compare

@monsieurleberre monsieurleberre released this 12 Jun 20:02
Immutable release. Only release title and notes can be modified.
b293344

Cross-platform hardening on top of 0.1.8-preview.1: every shipped package now has CI-verified support across the full OS × architecture matrix — Linux, Windows, and macOS, on both amd64 and arm64. GeneratedFile.RelativePath is now /-separated on every platform (previously \ on Windows), so codegen output layout is identical across operating systems; Google.Protobuf is raised to 3.35.1 for the Daml.Codegen.CSharp emitter package. No other API changes.

What's included

Package Purpose
Daml.Codegen.CSharp the C# emitter library
Daml.Runtime runtime types referenced by generated code
Daml.Ledger.Abstractions transport-agnostic ILedgerClient submission/subscription interface
Daml.Codegen.Testing.Conformance compiled conformance corpus + embedded DAR for live-ledger round-trip tests

The four packages are versioned in lockstep. The codegen CLI ships separately as a multi-arch OCI component for dpm — oci://ghcr.io/peacefulstudio/dpm-codegen-cs:0.1.8-preview.2 (linux/amd64, linux/arm64, darwin/arm64, windows/amd64) — and the .nupkg/.snupkg files for this release are attached below, on NuGet.org, and in the publish run's artifacts.

Versioning and stability

This project is pre-1.0: under SemVer 0.x, any release may change the public API without a major-version bump. This is a preview release.

Getting started

Add the codegen component to your daml.yaml (set DPM_AUTO_INSTALL=true so dpm fetches it on first use):

components:
  - oci://ghcr.io/peacefulstudio/dpm-codegen-cs:0.1.8-preview.2

Add the runtime package to your C# project:

dotnet add package Daml.Runtime --prerelease

Then generate from your DAR with dpm codegen-cs — the README Quick Start walks through the full DAR-to-NuGet pipeline, the CLI flags, and the MSBuild integration.

Full changelog

See the 0.1.8-preview.2 section of CHANGELOG.md for the complete record.