Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dotnet): Added .NET codegen support #38

Merged
merged 14 commits into from
Feb 11, 2024
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.DS_Store
dist-newstyle
dist-newstyle
# .NET build files
bin
obj
29 changes: 29 additions & 0 deletions Utxorpc.Spec.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageId>Utxorpc.Spec</PackageId>
<Version>0.1.2-alpha</Version>
<Authors>[email protected]</Authors>
<Company>TxPipe LLC</Company>
<PackageDescription>A gRPC interface for UTxO Blockchains</PackageDescription>
<RepositoryUrl>https://github.com/utxorpc</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.25.1" />
<PackageReference Include="Grpc.Net.Client" Version="2.60.0" />
<PackageReference Include="Grpc.Tools" Version="2.60.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<None Include="README.md" pack="true" PackagePath="." />
</ItemGroup>

</Project>
7 changes: 7 additions & 0 deletions build/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,10 @@ plugins:
- plugin: haskell-protolens
path: proto-lens-protoc
out: gen/haskell

# dotnet
- plugin: buf.build/grpc/csharp:v1.60.0
out: gen/dotnet

- plugin: buf.build/protocolbuffers/csharp
out: gen/dotnet
3,100 changes: 3,100 additions & 0 deletions build/gen/dotnet/Build.cs

Large diffs are not rendered by default.

468 changes: 468 additions & 0 deletions build/gen/dotnet/BuildGrpc.cs

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions cardano/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,11 @@ plugins:
- plugin: haskell-protolens
path: proto-lens-protoc
out: gen/haskell

# dotnet

- plugin: buf.build/grpc/csharp:v1.60.0
out: gen/dotnet

- plugin: buf.build/protocolbuffers/csharp
out: gen/dotnet
13,350 changes: 13,350 additions & 0 deletions cardano/gen/dotnet/Cardano.cs

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions submit/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,11 @@ plugins:
- plugin: haskell-protolens
path: proto-lens-protoc
out: gen/haskell

# dotnet

- plugin: buf.build/grpc/csharp:v1.60.0
out: gen/dotnet

- plugin: buf.build/protocolbuffers/csharp
out: gen/dotnet
Loading
Loading