Skip to content

Commit 6fe27e7

Browse files
committed
Merge branch 'master' into jf/fix-1110
* master: chore: update flake version to match current release (#1204) feat!: Switch to aztec_backend that uses upstream BB & UltraPlonk (#1114) chore(ssa refactor): Add Context structs and start ssa gen pass (#1196) chore(ssa): Replace JmpIf with BrIf (#1193) chore(noir): Release 0.4.1 (#1164) chore(ssa refactor): Add DenseMap and SparseMap types (#1184) feat: bump noir-source-resolver version (#1182) chore(deps): bump h2 from 0.3.16 to 0.3.18 (#1186) fix(nargo): restore `nargo codegen-verifier` functionality (#1185) chore: simplify setup code in `noir_integration` test (#1180) feat: Add Poseidon-BN254 hash functions (#1176)
2 parents 8a5b6e8 + b51f74a commit 6fe27e7

File tree

58 files changed

+1656
-542
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1656
-542
lines changed

.envrc

+20-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
use nix
1+
# Based on https://github.com/direnv/direnv-vscode/blob/158e8302c2594cc0eaa5f8b4f0cafedd4e1c0315/.envrc
2+
3+
# You can define your system-specific logic (like Git settings or GH tokens) in .envrc.local
4+
# If that logic is usable by other people and might improve development environment, consider
5+
# contributing it to this file!
6+
7+
source_env_if_exists .envrc.local
8+
9+
if [[ -z "${SKIP_NIX:-}" ]] && has nix; then
10+
11+
if nix flake metadata &>/dev/null && has use_flake; then
12+
# use flakes if possible
13+
use flake
14+
15+
else
16+
# Otherwise fall back to pure nix
17+
use nix
18+
fi
19+
20+
fi

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
pull-request-title-pattern: "chore(noir): Release ${version}"
2727
extra-files: |
2828
Cargo.toml
29+
flake.nix
2930
3031
update-lockfile:
3132
name: Update lockfile

.github/workflows/rust.yml

-21
This file was deleted.

.github/workflows/test.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
# This will cancel previous runs when a branch or PR is updated
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
test:
12+
name: Test on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
include:
19+
- os: ubuntu-latest
20+
target: x86_64-linux
21+
- os: macos-latest
22+
target: x86_64-darwin
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v3
27+
28+
- uses: cachix/install-nix-action@v20
29+
with:
30+
nix_path: nixpkgs=channel:nixos-22.11
31+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Run `nix flake check`
34+
run: |
35+
nix flake check

.gitignore

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22
.DS_Store
33
examples/**/target/
44
examples/9
5-
.vscode
65
node_modules
76
pkg/
87

8+
# Nix stuff
9+
result
10+
.envrc.local
11+
.direnv/
12+
913
# Nargo output
1014
*.proof
1115
*.acir
1216
*.acir.sha256
1317
*.tr
1418
*.pk
1519
*.vk
16-
**/Verifier.toml
20+
**/Verifier.toml

.vscode/extensions.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
// List of extensions which should be recommended for users of this workspace.
5+
"recommendations": [
6+
"mkhl.direnv",
7+
"jnoortheen.nix-ide",
8+
"rust-lang.rust-analyzer",
9+
"redhat.vscode-yaml"
10+
],
11+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
12+
"unwantedRecommendations": []
13+
}

.vscode/settings.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"direnv.restart.automatic": true,
3+
"redhat.telemetry.enabled": false,
4+
"yaml.recommendations.show": false,
5+
"nix.serverPath": "nil",
6+
"nix.enableLanguageServer": true,
7+
"nix.serverSettings": {
8+
"nil": {
9+
"formatting": {
10+
"command": [
11+
"nixpkgs-fmt"
12+
]
13+
}
14+
}
15+
},
16+
}

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## [0.4.1](https://github.com/noir-lang/noir/compare/v0.4.0...v0.4.1) (2023-04-20)
4+
5+
6+
### Features
7+
8+
* Add Poseidon-BN254 hash functions ([#1176](https://github.com/noir-lang/noir/issues/1176)) ([33feb2b](https://github.com/noir-lang/noir/commit/33feb2bcd71b1040d70d1f51a7377594db557c19))
9+
* bump noir-source-resolver version ([#1182](https://github.com/noir-lang/noir/issues/1182)) ([750ed77](https://github.com/noir-lang/noir/commit/750ed7793f5a07bc361b56c66f041cb4097219e3))
10+
11+
12+
### Bug Fixes
13+
14+
* Add checks for nop ([#1160](https://github.com/noir-lang/noir/issues/1160)) ([809b85f](https://github.com/noir-lang/noir/commit/809b85f751bd0e27ce8c4b38354bc051471d8522))
15+
* allow comptime or non comptime fields in unconstrained for loops ([#1172](https://github.com/noir-lang/noir/issues/1172)) ([73df465](https://github.com/noir-lang/noir/commit/73df4653556a7d1c74d184e27ec5a8ca3be47af9))
16+
* maintain ordering of return value witnesses when constructing ABI ([#1177](https://github.com/noir-lang/noir/issues/1177)) ([b799c8a](https://github.com/noir-lang/noir/commit/b799c8aa4491f4f17e248a50a154386803b6d712))
17+
* **nargo:** restore `nargo codegen-verifier` functionality ([#1185](https://github.com/noir-lang/noir/issues/1185)) ([528a2a4](https://github.com/noir-lang/noir/commit/528a2a441cfe094885cc8f26ffba865f3a0b5c0c))
18+
* **ssa:** set correct predecessors of IF join ([#1171](https://github.com/noir-lang/noir/issues/1171)) ([7628ed6](https://github.com/noir-lang/noir/commit/7628ed6aa0e430881bd5628c84342058fa0e2f78))
19+
320
## [0.4.0](https://github.com/noir-lang/noir/compare/v0.3.2...v0.4.0) (2023-04-17)
421

522

0 commit comments

Comments
 (0)