Crate near_syn

Source
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§

NearAttributable
Any Rust item, e.g., struct or enum to which attributes can attached to.
NearBindgen
NearImpl
Defines standard attributes found in the NEAR SDK.
NearMethod
Defines standard attributes and helper methods used when exporting a contract.
NearSerde
Defines methods to deal with serde’s declarations in structs or enums.

Functions§

get_docs
write_docs
Writes Rust doc comments to file. Each line of doc is prefixed with prefix. See https://doc.rust-lang.org/rustdoc/the-doc-attribute.html.