This repository was archived by the owner on Oct 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Jc/workspaces #342
Merged
Merged
Jc/workspaces #342
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
3de4cba
update commands
critesjosh 2c48357
start workspaces page
critesjosh 9f4f8d7
add nargo.toml example
critesjosh 4958fb5
toml to yaml highlighting
critesjosh 3fe6ccc
updates
critesjosh 5bc2e0b
update title
critesjosh 8c7d3df
add nargo check contract note
critesjosh 5dd0930
Update docs/getting_started/02_breakdown.md
critesjosh f075aa3
Update docs/getting_started/02_breakdown.md
critesjosh 56b3bef
Update docs/getting_started/02_breakdown.md
critesjosh 9b5c141
Update versioned_docs/version-0.3.2/getting_started/hello_world/01_br…
critesjosh c9dd170
Update versioned_docs/version-0.9.0/modules_packages_crates/dependenc…
critesjosh 9506708
Update versioned_docs/version-0.9.0/modules_packages_crates/dependenc…
critesjosh 2f8ff4e
add toml
critesjosh 0d400f6
Merge branch 'jc/workspaces' of https://github.com/noir-lang/docs int…
critesjosh 3e449e9
Update docs/modules_packages_crates/dependencies.md
critesjosh 19aad58
Update versioned_docs/version-0.9.0/getting_started/02_breakdown.md
critesjosh 9917a45
remove prove and verify args
critesjosh 8030a25
Merge branch 'jc/workspaces' of https://github.com/noir-lang/docs int…
critesjosh 941a26d
fix formatting
critesjosh 9514255
note on libs in workspaces
critesjosh 0b8c4b2
add nargo.toml details
critesjosh 4279f0e
add contract crate type
critesjosh b4ab9eb
Update docs/modules_packages_crates/workspaces.md
critesjosh 2643c05
Update docs/modules_packages_crates/workspaces.md
critesjosh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: Workspaces | ||
--- | ||
|
||
Workspaces are a feature of nargo that allow you to manage multiple related Noir packages in a single repository. A workspace is essentially a group of related projects that share common build output directories and configurations. | ||
|
||
Each Noir project (with it's own Nargo.toml file) can be thought of as a package. Each package is expected to contain exactly one "named circuit", being the "name" defined in Nargo.toml with the program logic defined in `./src/main.nr`. | ||
|
||
For a project with the following structure: | ||
|
||
```tree | ||
├── crates | ||
│ ├── a | ||
│ │ ├── Nargo.toml | ||
│ │ └── src | ||
│ │ └── main.nr | ||
│ └── b | ||
│ ├── Nargo.toml | ||
│ └── src | ||
│ └── main.nr | ||
├── Nargo.toml | ||
└── Prover.toml | ||
``` | ||
|
||
You can define a workspace in Nargo.toml like so: | ||
|
||
```toml | ||
[workspace] | ||
members = ["crates/a", "crates/b"] | ||
default-member = "crates/a" | ||
``` | ||
|
||
`members` indicates which packages are included in the workspace. As such, all member packages of a workspace will be processed when the `--workspace` flag is used with various commands or if a `default-member` is not specified. | ||
|
||
`default-member` indicates which package various commands process by default. | ||
|
||
Libraries can be defined in a workspace. We just don't have a way to consume libraries from inside a workspace as external dependencies right now. | ||
|
||
Inside a workspace, these are consumed as `{ path = "../to_lib" }` dependencies in Nargo.toml. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.