diff --git a/docs/modules_packages_crates/crates_and_packages.md b/docs/modules_packages_crates/crates_and_packages.md index afa1e7b..34f28a7 100644 --- a/docs/modules_packages_crates/crates_and_packages.md +++ b/docs/modules_packages_crates/crates_and_packages.md @@ -1,12 +1,10 @@ --- -title: Crates and Packages in Noir +title: Crates and Packages description: Learn how to use Crates and Packages in your Noir project keywords: [Nargo, dependencies, package management, crates, package] --- -# Crates and Packages - ## Crates A crate is the smallest amount of code that the Noir compiler considers at a time. diff --git a/docs/modules_packages_crates/dependencies.md b/docs/modules_packages_crates/dependencies.md index 3511f7c..f3b40eb 100644 --- a/docs/modules_packages_crates/dependencies.md +++ b/docs/modules_packages_crates/dependencies.md @@ -29,9 +29,11 @@ ecrecover = {tag = "v0.2.0", git = "https://github.com/colinnielsen/ecrecover-no ``` ## Specifying a local dependency + You can also specify dependencies that are local to your machine. For example, this file structure has a library and binary crate + ``` ├── binary_crate │   ├── Nargo.toml @@ -44,6 +46,7 @@ For example, this file structure has a library and binary crate ``` Inside of the binary crate, you can specify: + ```toml # Nargo.toml @@ -70,3 +73,13 @@ can import just the `Point` and the `Curve` that you want to use. use dep::std::ec::tecurve::affine::Curve; use dep::std::ec::tecurve::affine::Point; ``` + +## Available Libraries + +Noir does not currently have an official package manager. You can find a list of available Noir libraries in the [awesome-noir repo here](https://github.com/noir-lang/awesome-noir#libraries). + +Some libraries that are available today include: + +- BigInt +- "`ecrecover`" +- sparse merkle tree verifier diff --git a/versioned_docs/version-0.5.1/modules_packages_crates/dependencies.md b/versioned_docs/version-0.5.1/modules_packages_crates/dependencies.md index 3511f7c..f3b40eb 100644 --- a/versioned_docs/version-0.5.1/modules_packages_crates/dependencies.md +++ b/versioned_docs/version-0.5.1/modules_packages_crates/dependencies.md @@ -29,9 +29,11 @@ ecrecover = {tag = "v0.2.0", git = "https://github.com/colinnielsen/ecrecover-no ``` ## Specifying a local dependency + You can also specify dependencies that are local to your machine. For example, this file structure has a library and binary crate + ``` ├── binary_crate │   ├── Nargo.toml @@ -44,6 +46,7 @@ For example, this file structure has a library and binary crate ``` Inside of the binary crate, you can specify: + ```toml # Nargo.toml @@ -70,3 +73,13 @@ can import just the `Point` and the `Curve` that you want to use. use dep::std::ec::tecurve::affine::Curve; use dep::std::ec::tecurve::affine::Point; ``` + +## Available Libraries + +Noir does not currently have an official package manager. You can find a list of available Noir libraries in the [awesome-noir repo here](https://github.com/noir-lang/awesome-noir#libraries). + +Some libraries that are available today include: + +- BigInt +- "`ecrecover`" +- sparse merkle tree verifier