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.,
struct
orenum
to 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
struct
s orenum
s.
Functions§
- get_
docs - write_
docs - Writes Rust
doc
comments tofile
. Each line ofdoc
is prefixed withprefix
. See https://doc.rust-lang.org/rustdoc/the-doc-attribute.html.