Expand description
Augments syn’s AST with helper methods to deal with Near SDK definitions.
Additionally, provides function to deal with Rust syntax.
Modules§
- contract
- Allows the user to build a NEAR Rust Contract from multiple Rust source files.
- md
- Markdown
- ts
- Functions to transpile Rust to TypeScript.
Traits§
- Near
Attributable - Any Rust item, e.g.,
structorenumto which attributes can attached to. - Near
Bindgen - Near
Impl - Defines standard attributes found in the NEAR SDK.
- Near
Method - Defines standard attributes and helper methods used when exporting a contract.
- Near
Serde - Defines methods to deal with serde’s declarations in
structs orenums.
Functions§
- get_
docs - write_
docs - Writes Rust
doccomments tofile. Each line ofdocis prefixed withprefix. See https://doc.rust-lang.org/rustdoc/the-doc-attribute.html.