noir-libs
is a CLI application for the Noir Package Manager noir-libs.org.
Install the CLI: curl -s https://raw.githubusercontent.com/walnuthq/noir-libs/main/install.sh | bash
Usage: noir-libs --help
The following features are supported:
- Add a package from the package repository to a project:
noir-libs add <package_name>@<package-version>
. If no version is specified, the latest version will be fetched e.g.noir-libs add aztec
- Remove a package from a project:
noir-libs remove <package_name>
All supported packages are available at noir-libs.org.
Fetched packages are stored in a cache folder. The exact location depends on the operating system:
- Linux:
/home/user/.cache/noir-libs/
- macOS:
/Users/user/Library/Application Support/com.walnut.noir-libs/
- Windows:
C:\Users\Alice\AppData\Local\walnut\noir-libs
Build noir-libs
using the following command: cargo build --release
.
- Get the example package
example.tar.gz
fromtests/test_files
and extract it to an unrelated folder. - Ensure you have everything set up for Aztec development.
- Try compiling the example with:
aztec-nargo compile
. It should fail due to missing dependencies. - Install
noir-libs
by following the instructions in the Installation section above. - In your example folder, add the necessary dependencies using the following commands:
noir-libs add easy_private_state
noir-libs add aztec
noir-libs add value_note
- Compile again with
aztec-nargo compile
- Check that everything worked this time.
A lot of inspiration for noir-libs was taken from scarb, built by Software Mansion.