Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.1 KB

README.md

File metadata and controls

49 lines (33 loc) · 1.1 KB

IOTA

IOTA is a asset-oriented programming model powered by the Move programming language. IOTA is a project under active development by the IOTA Foundation.

Setup

Conventions

The Rust language conventions used in this repository can be found in Rust Conventions.

Formatting

In order to use the unstable features specified in rustfmt.toml, you must have the correct nightly toolchain component installed.

rustup toolchain install nightly --component rustfmt --allow-downgrade

This can be used regardless of the default toolchain to format the code using the following command.

cargo +nightly fmt

IDE Configuration

For convenience, it is recommended that developers configure their IDEs to automatically format files on save.

VS Code

settings.json

{
  "[rust]": {
    "editor.formatOnSave": true,
  },
  "rust-analyzer.rustfmt.extraArgs": [
    "+nightly"
  ]
}