Skip to content

Commit

Permalink
Merge branch 'mainnet' into hex
Browse files Browse the repository at this point in the history
Signed-off-by: d0cd <[email protected]>
  • Loading branch information
d0cd authored Oct 10, 2024
2 parents 83bc56c + 8854b56 commit 5515e43
Show file tree
Hide file tree
Showing 284 changed files with 114 additions and 13,310 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
- install_rust_nightly
- setup_environment:
cache_key: leo-fmt-cache
- run:
name: Update Submodules
command: git submodule update --init --recursive
- run:
name: Check style
no_output_timeout: 35m
Expand All @@ -72,6 +75,9 @@ jobs:
- checkout
- setup_environment:
cache_key: leo-clippy-cache
- run:
name: Update Submodules
command: git submodule update --init --recursive
- run:
name: Clippy
no_output_timeout: 35m
Expand All @@ -89,6 +95,9 @@ jobs:
- checkout
- setup_environment:
cache_key: leo-executable-cache
- run:
name: Update Submodules
command: git submodule update --init --recursive
- run:
name: Build and install Leo
no_output_timeout: 30m
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/acl2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Install sccache Ubuntu
if: matrix.os == 'ubuntu-latest'
Expand Down Expand Up @@ -109,6 +111,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Install sccache
run: |
Expand Down Expand Up @@ -165,6 +169,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust Stable
uses: actions-rs/toolchain@v1
Expand All @@ -189,6 +195,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
ref: mainnet

- name: Install sccache
Expand Down Expand Up @@ -257,6 +264,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v1
with:
submodules: true

- name: Install sccache Ubuntu
env:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
SCCACHE_DIR: /home/runner/.cache/sccache
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
submodules: true

- name: Install sccache Ubuntu
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
with:
submodules: true
ref: mainnet

- name: Install sccache
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 2

- name: Get changed files
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -98,7 +100,9 @@ jobs:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -146,6 +150,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -202,6 +208,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "examples"]
path = examples
url = https://github.com/ProvableHQ/leo-examples
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ We recommend installing Rust using [rustup](https://www.rustup.rs/). You can ins
We recommend installing Leo by building from the source code as follows:

```bash
# Download the source code
git clone https://github.com/ProvableHQ/leo
# Download the source code and initialize the submodules
git clone --recurse-submodules https://github.com/ProvableHQ/leo
cd leo

# Install 'leo'
Expand Down
16 changes: 2 additions & 14 deletions compiler/parser/src/parser/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,23 +180,11 @@ impl<N: Network> ParserContext<'_, N> {
fn parse_struct_members(&mut self) -> Result<(Vec<Member>, Span)> {
let mut members = Vec::new();

let (mut semi_colons, mut commas) = (false, false);

while !self.check(&Token::RightCurly) {
let variable = self.parse_member_variable_declaration()?;

if self.eat(&Token::Semicolon) {
if commas {
self.emit_err(ParserError::mixed_commas_and_semicolons(self.token.span));
}
semi_colons = true;
}

if self.eat(&Token::Comma) {
if semi_colons {
self.emit_err(ParserError::mixed_commas_and_semicolons(self.token.span));
}
commas = true;
if !self.check(&Token::RightCurly) && !self.eat(&Token::Comma) {
self.emit_err(ParserError::comma_expected_after_member(self.token.span));
}

members.push(variable);
Expand Down
9 changes: 9 additions & 0 deletions errors/src/errors/parser/parser_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ create_messages!(
}

/// For when the parser encountered a mix of commas and semi-colons in struct member variables.
// TODO unused
@formatted
mixed_commas_and_semicolons {
args: (),
Expand Down Expand Up @@ -343,6 +344,14 @@ create_messages!(
help: None,
}

/// For when the parser encountered a member declaration not followed by a comma.
@formatted
comma_expected_after_member {
args: (),
msg: "Each member declaration in a struct or record must be followed by a comma (except the last).",
help: None,
}

@formatted
hexbin_literal_nonintegers {
args: (),
Expand Down
1 change: 1 addition & 0 deletions examples
Submodule examples added at b75bb7
26 changes: 0 additions & 26 deletions examples/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions examples/auction/.env

This file was deleted.

4 changes: 0 additions & 4 deletions examples/auction/.gitignore

This file was deleted.

57 changes: 0 additions & 57 deletions examples/auction/README.md

This file was deleted.

35 changes: 0 additions & 35 deletions examples/auction/build/main.aleo

This file was deleted.

6 changes: 0 additions & 6 deletions examples/auction/build/program.json

This file was deleted.

1 change: 0 additions & 1 deletion examples/auction/leo.lock

This file was deleted.

6 changes: 0 additions & 6 deletions examples/auction/program.json

This file was deleted.

Loading

0 comments on commit 5515e43

Please sign in to comment.