mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-18 23:02:35 +03:00
merge origin testnet3
This commit is contained in:
commit
60fd2b6ec6
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
@ -18,14 +18,13 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macOS-latest, windows-latest, ubuntu-latest]
|
||||
os: [macOS-latest, ubuntu-latest]
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
sccache-path: /home/runner/.cache/sccache
|
||||
- os: macos-latest
|
||||
sccache-path: /Users/runner/Library/Caches/Mozilla.sccache
|
||||
- os: windows-latest
|
||||
sccache-path: "C:\\Users\\runneradmin\\AppData\\Local\\Mozilla\\sccache"
|
||||
|
||||
env:
|
||||
RUSTC_WRAPPER: sccache
|
||||
SCCACHE_CACHE_SIZE: 2G
|
||||
@ -54,15 +53,6 @@ jobs:
|
||||
brew update
|
||||
brew install sccache
|
||||
|
||||
- name: Install sccache Windows
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: |
|
||||
iwr -useb get.scoop.sh -outfile 'install.ps1'
|
||||
.\install.ps1 -RunAsAdmin [-OtherParameters ...]
|
||||
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
|
||||
scoop install sccache
|
||||
echo "C:\Users\runneradmin\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||
|
||||
- name: Install Rust Stable
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
@ -170,6 +160,24 @@ jobs:
|
||||
- name: Stop sccache server
|
||||
run: sccache --stop-server || true
|
||||
|
||||
test-package-windows:
|
||||
name: Test Package Windows
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Rust Stable
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
cargo test --all
|
||||
|
||||
test-docs:
|
||||
name: Test Docs
|
||||
runs-on: ubuntu-latest
|
||||
|
19
Cargo.lock
generated
19
Cargo.lock
generated
@ -1769,9 +1769,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "regex"
|
||||
version = "1.5.4"
|
||||
version = "1.5.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461"
|
||||
checksum = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286"
|
||||
dependencies = [
|
||||
"aho-corasick",
|
||||
"memchr",
|
||||
@ -2367,11 +2367,12 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tracing-core"
|
||||
version = "0.1.21"
|
||||
version = "0.1.23"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1f4ed65637b8390770814083d20756f87bfa2c21bf2f110babdc5438351746e4"
|
||||
checksum = "aa31669fa42c09c34d94d8165dd2012e8ff3c66aca50f3bb226b68f216f2706c"
|
||||
dependencies = [
|
||||
"lazy_static",
|
||||
"valuable",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -2387,9 +2388,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tracing-subscriber"
|
||||
version = "0.3.7"
|
||||
version = "0.3.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5312f325fe3588e277415f5a6cca1f4ccad0f248c4cd5a4bd33032d7286abc22"
|
||||
checksum = "9e0ab7bdc962035a87fba73f3acca9b8a8d0034c2e6f60b84aeaaddddc155dce"
|
||||
dependencies = [
|
||||
"ansi_term",
|
||||
"sharded-slab",
|
||||
@ -2477,6 +2478,12 @@ version = "0.7.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
|
||||
|
||||
[[package]]
|
||||
name = "valuable"
|
||||
version = "0.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"
|
||||
|
||||
[[package]]
|
||||
name = "vcpkg"
|
||||
version = "0.2.15"
|
||||
|
@ -106,7 +106,7 @@ version = "0.5"
|
||||
version = "0.1"
|
||||
|
||||
[dependencies.tracing-subscriber]
|
||||
version = "0.3.6"
|
||||
version = "0.3.9"
|
||||
features = [ "fmt" ]
|
||||
|
||||
[dependencies.zip]
|
||||
|
@ -328,7 +328,7 @@ and therefore we have rules like
|
||||
|
||||
|
||||
```
|
||||
unary-expression = primary-expression
|
||||
unary-expression = postfix-expression
|
||||
/ "!" unary-expression
|
||||
/ "-" unary-expression
|
||||
```
|
||||
@ -643,17 +643,6 @@ We allow leading zeros, e.g. `007`.
|
||||
natural = 1*decimal-digit
|
||||
```
|
||||
|
||||
An integer (number) is either a natural or its negation.
|
||||
We allow leading zeros also in negative numbers, e.g. `-007`.
|
||||
|
||||
<a name="integer"></a>
|
||||
```abnf
|
||||
integer = [ "-" ] natural
|
||||
```
|
||||
|
||||
Go to: _[natural](#user-content-natural)_;
|
||||
|
||||
|
||||
Unsigned literals are naturals followed by unsigned types.
|
||||
|
||||
<a name="unsigned-literal"></a>
|
||||
@ -664,38 +653,38 @@ unsigned-literal = natural ( %s"u8" / %s"u16" / %s"u32" / %s"u64" / %s"u128" )
|
||||
Go to: _[natural](#user-content-natural)_;
|
||||
|
||||
|
||||
Signed literals are integers followed by signed types.
|
||||
Signed literals are naturals followed by signed types.
|
||||
|
||||
<a name="signed-literal"></a>
|
||||
```abnf
|
||||
signed-literal = integer ( %s"i8" / %s"i16" / %s"i32" / %s"i64" / %s"i128" )
|
||||
signed-literal = natural ( %s"i8" / %s"i16" / %s"i32" / %s"i64" / %s"i128" )
|
||||
```
|
||||
|
||||
Go to: _[integer](#user-content-integer)_;
|
||||
Go to: _[natural](#user-content-natural)_;
|
||||
|
||||
|
||||
Field literals are integers followed by the type of field elements.
|
||||
Field literals are naturals followed by the type of field elements.
|
||||
|
||||
<a name="field-literal"></a>
|
||||
```abnf
|
||||
field-literal = integer %s"field"
|
||||
field-literal = natural %s"field"
|
||||
```
|
||||
|
||||
Go to: _[integer](#user-content-integer)_;
|
||||
Go to: _[natural](#user-content-natural)_;
|
||||
|
||||
|
||||
There are two kinds of group literals.
|
||||
One is a single integer followed by the type of group elements,
|
||||
which denotes the scalar product of the generator point by the integer.
|
||||
One is a single natural followed by the type of group elements,
|
||||
which denotes the scalar product of the generator point by the natural.
|
||||
The other kind is not a token because it allows some whitespace inside;
|
||||
therefore, it is defined in the syntactic grammar.
|
||||
|
||||
<a name="product-group-literal"></a>
|
||||
```abnf
|
||||
product-group-literal = integer %s"group"
|
||||
product-group-literal = natural %s"group"
|
||||
```
|
||||
|
||||
Go to: _[integer](#user-content-integer)_;
|
||||
Go to: _[natural](#user-content-natural)_;
|
||||
|
||||
|
||||
Boolean literals are the usual two.
|
||||
@ -1080,10 +1069,10 @@ because it consists of affine point coordinates.
|
||||
|
||||
<a name="group-coordinate"></a>
|
||||
```abnf
|
||||
group-coordinate = integer / "+" / "-" / "_"
|
||||
group-coordinate = [ "-" ] natural / "+" / "-" / "_"
|
||||
```
|
||||
|
||||
Go to: _[integer](#user-content-integer)_;
|
||||
Go to: _[natural](#user-content-natural)_;
|
||||
|
||||
|
||||
<a name="affine-group-literal"></a>
|
||||
|
@ -263,7 +263,7 @@
|
||||
; the relative precedence and the associativity of expression operators,
|
||||
; and therefore we have rules like
|
||||
;
|
||||
; unary-expression = primary-expression
|
||||
; unary-expression = postfix-expression
|
||||
; / "!" unary-expression
|
||||
; / "-" unary-expression
|
||||
;
|
||||
@ -456,30 +456,25 @@ annotation-name = "@" identifier
|
||||
|
||||
natural = 1*decimal-digit
|
||||
|
||||
; An integer (number) is either a natural or its negation.
|
||||
; We allow leading zeros also in negative numbers, e.g. `-007`.
|
||||
|
||||
integer = [ "-" ] natural
|
||||
|
||||
; Unsigned literals are naturals followed by unsigned types.
|
||||
|
||||
unsigned-literal = natural ( %s"u8" / %s"u16" / %s"u32" / %s"u64" / %s"u128" )
|
||||
|
||||
; Signed literals are integers followed by signed types.
|
||||
; Signed literals are naturals followed by signed types.
|
||||
|
||||
signed-literal = integer ( %s"i8" / %s"i16" / %s"i32" / %s"i64" / %s"i128" )
|
||||
signed-literal = natural ( %s"i8" / %s"i16" / %s"i32" / %s"i64" / %s"i128" )
|
||||
|
||||
; Field literals are integers followed by the type of field elements.
|
||||
; Field literals are naturals followed by the type of field elements.
|
||||
|
||||
field-literal = integer %s"field"
|
||||
field-literal = natural %s"field"
|
||||
|
||||
; There are two kinds of group literals.
|
||||
; One is a single integer followed by the type of group elements,
|
||||
; which denotes the scalar product of the generator point by the integer.
|
||||
; One is a single natural followed by the type of group elements,
|
||||
; which denotes the scalar product of the generator point by the natural.
|
||||
; The other kind is not a token because it allows some whitespace inside;
|
||||
; therefore, it is defined in the syntactic grammar.
|
||||
|
||||
product-group-literal = integer %s"group"
|
||||
product-group-literal = natural %s"group"
|
||||
|
||||
; Boolean literals are the usual two.
|
||||
|
||||
@ -688,7 +683,7 @@ named-type = identifier / self-type / scalar-type
|
||||
; This is an affine group literal,
|
||||
; because it consists of affine point coordinates.
|
||||
|
||||
group-coordinate = integer / "+" / "-" / "_"
|
||||
group-coordinate = [ "-" ] natural / "+" / "-" / "_"
|
||||
|
||||
affine-group-literal = "(" group-coordinate "," group-coordinate %s")group"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user