-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add clone for configs * add open_path * report unused * add stub * add rust parser to extract cdk functions; didc to take external.rust section * fix mode * refactor to report span * checkpoint, use codespan_reporting * good * fix * move rust_check to cdk * bump version
- Loading branch information
1 parent
b0622bb
commit a21d1b8
Showing
21 changed files
with
289 additions
and
133 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// This is an experimental feature to generate Rust binding from Candid. | ||
// You may want to manually adjust some of the types. | ||
#![allow(dead_code, unused_imports)] | ||
use {{candid_crate}}::{self, CandidType, Deserialize, Principal}; | ||
|
||
{{type_defs}} | ||
{{#if init_args}} | ||
#[ic_cdk::init] | ||
fn init({{#each init_args}}{{#if (not @first)}}, {{/if}}{{this.0}}: {{this.1}}{{/each}}) { | ||
unimplemented!() | ||
} | ||
{{/if}} | ||
{{#each methods}} | ||
#[ic_cdk::{{cdk_attribute this.mode this.name this.original_name}}] | ||
fn {{this.name}}({{#each this.args}}{{#if (not @first)}}, {{/if}}{{this.0}}: {{this.1}}{{/each}}) -> {{vec_to_arity this.rets}} { | ||
unimplemented!() | ||
} | ||
{{/each}} |
Oops, something went wrong.