-
Notifications
You must be signed in to change notification settings - Fork 5
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(client-gen): .NET client code generator #611
base: master
Are you sure you want to change the base?
Conversation
try | ||
{ | ||
Libdl1.dlerror(); | ||
UseLibdl1 = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any special reason for not using libdl.so.2
all the time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
supposing libdl[.dylib]
is used in mac.
net/rs/client-gen-dotnet/Cargo.toml
Outdated
crate-type = ["cdylib", "lib"] | ||
|
||
[build-dependencies] | ||
csbindgen.workspace = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really don't like as it introduces sort of circulr dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed, but think it's better to generate code with csbindgen
using global::System; | ||
using global::System.Collections.Generic; | ||
|
||
#pragma warning disable RCS0056 // A line is too long |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this? Ananlyzers shouldn't check generated code
ICall<global::Substrate.NetApi.Model.Types.Primitive.U8> DoThat(global::Substrate.NetApi.Model.Types.Base.BaseTuple<global::Substrate.NetApi.Model.Types.Primitive.U8, global::Substrate.NetApi.Model.Types.Primitive.U32> p1); | ||
} | ||
|
||
public partial class Basic : IBasic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is partial? Shouldn't it be sealed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's good practice to make generated classes partial
No description provided.