-
Notifications
You must be signed in to change notification settings - Fork 97
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
Rust bindgen possibility for PocketIC #547
Comments
Let me start with some clarification on what is The code you linked above was mostly copied and simplified from https://github.com/dfinity/candid/blob/master/rust/candid_parser/src/bindings/rust.rs And there is some unfinished experiment on the next generation of There was a debate on where should such bindgen tool live. Then let's talk about What kind of code do you want to generate?
Then it is out of the scope of this repository. In the cdk-rs/src/ic-cdk-bindgen/src/lib.rs Lines 82 to 87 in e78726a
So you can generate bindings containing the Rust types only. The types would already be useful for testing. |
Hi @lwshang, Thank you for sharing your thoughts. I will test your updates on the While I agree with you about the location of the code, generating such canister clients in I hope there will be active discussion on this topic, thanks! |
It would be great if we have
PocketIC
value in this enum to generatePocketIC
compatible client.cdk-rs/src/ic-cdk-bindgen/src/code_generator.rs
Lines 9 to 13 in 929fd0b
The text was updated successfully, but these errors were encountered: