Skip to content

Commit

Permalink
Merge branch 'master' into 0xlucca/update-code-snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLucca committed Jan 10, 2025
2 parents dac5d3e + 8a81681 commit 061aa1a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .snippets/code/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Polkadot Developer Docs Code Snippets

## Project Setup

This project requires specific versions of Rust and Cargo.

### Rust Toolchains

The project uses the following Rust toolchains:

- **Stable:** `1.81.0` (for building)
- **Nightly:** `1.85.0-nightly` (for formatting and linting)

To install the required toolchains, install `rustup` and run:

```bash
rustup toolchain install 1.81.0
rustup toolchain install nightly-2024-12-15
```

## Disclaimer

### License

All code examples or related software provided in this repository are available under the [MIT-0 License](https://opensource.org/license/mit-0).
7 changes: 7 additions & 0 deletions .snippets/code/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[toolchain]
channel = "1.81.0"
components = ["rustfmt", "clippy"]

[toolchain.nightly]
channel = "1.85.0-nightly"
components = ["rustfmt", "clippy"]

0 comments on commit 061aa1a

Please sign in to comment.