Crate near_syn[][src]

Provides function to deal with Rust syntax.

Modules

ts

Functions to transpile Rust to TypeScript.

Macros

Args

Defines the Args to be used in binaries.

Traits

NearAttributable

Any Rust item, e.g., struct or enum to which attributes can attached to.

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

join_path

Joins segments of path by ::.

parse_rust

Returns the Rust syntax tree for the given file_name path. Panics if the file cannot be open or the file has syntax errors.

write_docs

Writes Rust doc comments to file. Each line of doc is prefixed with prefix.