|
| 1 | +# Dev Container Features for Noir Development |
| 2 | + |
| 3 | +This repository contains [Dev Container Features](https://containers.dev/implementors/features/) for Noir language development. It provides out-of-the-box support for installing Noir's Nargo CLI and the Barretenberg library in your development containers. |
| 4 | + |
| 5 | +## Available Features |
| 6 | + |
| 7 | +This repository provides the following features: |
| 8 | + |
| 9 | +### 1. Nargo CLI (`nargo`) |
| 10 | + |
| 11 | +Installs the Noir language compiler and toolchain. |
| 12 | + |
| 13 | +- **ID**: `nargo` |
| 14 | +- **Description**: Installs the Nargo CLI tool and its installer `noirup` |
| 15 | +- **Options**: |
| 16 | + - `version`: The version of Nargo to install (default: `latest`, can be set to `nightly` or a specific version) |
| 17 | + |
| 18 | +### 2. Barretenberg (`bb`) |
| 19 | + |
| 20 | +Installs the Barretenberg prover backend for Noir. |
| 21 | + |
| 22 | +- **ID**: `bb` |
| 23 | +- **Description**: Installs the Barretenberg CLI tool and its installer `bbup` |
| 24 | +- **Options**: |
| 25 | + - `version`: The version of Barretenberg to install (default: `nargo`, meaning it will match with an existing Nargo installation) |
| 26 | + |
| 27 | +## Usage |
| 28 | + |
| 29 | +Add these features to your `devcontainer.json` file: |
| 30 | + |
| 31 | +```json |
| 32 | +"features": { |
| 33 | + "ghcr.io/yourusername/feature-starter/nargo:1.0.0": {}, |
| 34 | + "ghcr.io/yourusername/feature-starter/bb:1.0.0": {} |
| 35 | +} |
| 36 | +``` |
| 37 | + |
| 38 | +### Examples |
| 39 | + |
| 40 | +Install the latest stable Nargo and Barretenberg: |
| 41 | + |
| 42 | +```json |
| 43 | +"features": { |
| 44 | + "ghcr.io/signorecello/feature-starter/nargo:1.0.0": {}, |
| 45 | + "ghcr.io/signorecello/feature-starter/bb:1.0.0": {} |
| 46 | +} |
| 47 | +``` |
| 48 | + |
| 49 | +Install the nightly version of Nargo and a specific version of Barretenberg: |
| 50 | + |
| 51 | +```json |
| 52 | +"features": { |
| 53 | + "ghcr.io/signorecello/feature-starter/nargo:1.0.0": { |
| 54 | + "version": "nightly" |
| 55 | + }, |
| 56 | + "ghcr.io/signorecello/feature-starter/bb:1.0.0": { |
| 57 | + "version": "0.80.0" |
| 58 | + } |
| 59 | +} |
| 60 | +``` |
| 61 | + |
| 62 | +## Development |
| 63 | + |
| 64 | +This repository follows the [Dev Container Feature specification](https://containers.dev/implementors/features/). |
| 65 | + |
| 66 | +### Testing |
| 67 | + |
| 68 | +You can test the features using the Dev Container CLI: |
| 69 | + |
| 70 | +```bash |
| 71 | +devcontainer features test --global-scenarios-only . |
| 72 | +``` |
| 73 | + |
| 74 | +## License |
| 75 | + |
| 76 | +This project is available under the MIT license. |
0 commit comments