Skip to content

Commit a57dc7f

Browse files
authored
Merge pull request #138 from str4d/release-0.1.0
Release 0.1.0
2 parents 3997189 + 98731c8 commit a57dc7f

File tree

18 files changed

+448
-202
lines changed

18 files changed

+448
-202
lines changed

.github/workflows/rust.yml

+62-32
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,60 @@ name: Rust
33
on: [push, pull_request]
44

55
jobs:
6+
lint:
7+
name: Lint
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions-rs/toolchain@v1
13+
with:
14+
toolchain: 1.37.0
15+
override: true
16+
17+
# Ensure all code has been formatted with rustfmt
18+
- run: rustup component add rustfmt
19+
- name: Check formatting
20+
uses: actions-rs/cargo@v1
21+
with:
22+
command: fmt
23+
args: --all -- --check --color always
24+
625
test:
726
name: Test on ${{ matrix.os }}
827
runs-on: ${{ matrix.os }}
928
strategy:
1029
matrix:
11-
os: [ubuntu-latest, windows-latest]
12-
13-
steps:
14-
- uses: actions/checkout@v1
15-
- name: Check formatting
16-
run: cargo fmt --all -- --check
17-
- name: Build
18-
run: cargo build --verbose --release --all
19-
- name: Run tests
20-
run: cargo test --verbose --release --all
21-
- name: Run slow tests
22-
run: cargo test --verbose --release --all -- --ignored
23-
24-
macOS:
25-
name: Test on macOS-latest
26-
runs-on: macOS-latest
30+
os: [ubuntu-latest, windows-latest, macOS-latest]
2731

2832
steps:
29-
- name: Install Rust
30-
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
31-
- name: Install rustfmt
32-
run: $HOME/.cargo/bin/rustup component add rustfmt
33-
- uses: actions/checkout@v1
34-
- name: Check formatting
35-
run: $HOME/.cargo/bin/cargo fmt --all -- --check
36-
- name: Build
37-
run: $HOME/.cargo/bin/cargo build --verbose --release --all
38-
- name: Run tests
39-
run: $HOME/.cargo/bin/cargo test --verbose --release --all
40-
- name: Run slow tests
41-
run: $HOME/.cargo/bin/cargo test --verbose --release --all -- --ignored
33+
- uses: actions/checkout@v1
34+
- uses: actions-rs/toolchain@v1
35+
with:
36+
toolchain: 1.37.0
37+
override: true
38+
- name: cargo fetch
39+
uses: actions-rs/cargo@v1
40+
with:
41+
command: fetch
42+
- name: Build tests
43+
uses: actions-rs/cargo@v1
44+
with:
45+
command: build
46+
args: --verbose --release --all --tests
47+
- name: Run tests
48+
uses: actions-rs/cargo@v1
49+
with:
50+
command: test
51+
args: --verbose --release --all
52+
- name: Run slow tests
53+
uses: actions-rs/cargo@v1
54+
with:
55+
command: test
56+
args: --verbose --release --all -- --ignored
4257

4358
doc-links:
44-
name: Check intra-doc links
59+
name: Nightly lint
4560
runs-on: ubuntu-latest
4661

4762
steps:
@@ -50,7 +65,22 @@ jobs:
5065
with:
5166
toolchain: nightly
5267
override: true
53-
- uses: actions-rs/cargo@v1
68+
- name: cargo fetch
69+
uses: actions-rs/cargo@v1
70+
with:
71+
command: fetch
72+
73+
# Ensure intra-documentation links all resolve correctly
74+
# Requires #![deny(intra_doc_link_resolution_failure)] in crates.
75+
- name: Check intra-doc links
76+
uses: actions-rs/cargo@v1
5477
with:
5578
command: doc
56-
args: --document-private-items
79+
args: --all --document-private-items
80+
81+
# Build benchmarks to prevent bitrot
82+
- name: Build benchmarks
83+
uses: actions-rs/cargo@v1
84+
with:
85+
command: build
86+
args: --verbose --all --benches

Cargo.lock

+29-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bellman/Cargo.toml

+7-4
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ homepage = "https://github.com/ebfull/bellman"
77
license = "MIT/Apache-2.0"
88
name = "bellman"
99
repository = "https://github.com/ebfull/bellman"
10-
version = "0.1.0"
10+
version = "0.2.0"
1111
edition = "2018"
1212

1313
[dependencies]
1414
bit-vec = "0.4.4"
1515
blake2s_simd = "0.5"
16-
ff = { path = "../ff" }
16+
ff = { version = "0.5.0", path = "../ff" }
1717
futures = "0.1"
1818
futures-cpupool = { version = "0.1", optional = true }
19-
group = { path = "../group" }
19+
group = { version = "0.2.0", path = "../group" }
2020
num_cpus = { version = "1", optional = true }
2121
crossbeam = { version = "0.7", optional = true }
22-
pairing = { path = "../pairing", optional = true }
22+
pairing = { version = "0.15.0", path = "../pairing", optional = true }
2323
rand_core = "0.5"
2424
byteorder = "1"
2525

@@ -38,3 +38,6 @@ default = ["groth16", "multicore"]
3838
name = "mimc"
3939
path = "tests/mimc.rs"
4040
required-features = ["groth16"]
41+
42+
[badges]
43+
maintenance = { status = "actively-developed" }

ff/Cargo.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ff"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
authors = ["Sean Bowe <[email protected]>"]
55
description = "Library for building and interfacing with finite fields"
66
readme = "README.md"
@@ -12,9 +12,12 @@ edition = "2018"
1212

1313
[dependencies]
1414
byteorder = "1"
15-
ff_derive = { version = "0.3.0", path = "ff_derive", optional = true }
15+
ff_derive = { version = "0.4.0", path = "ff_derive", optional = true }
1616
rand_core = "0.5"
1717

1818
[features]
1919
default = []
2020
derive = ["ff_derive"]
21+
22+
[badges]
23+
maintenance = { status = "actively-developed" }

ff/ff_derive/Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ff_derive"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
authors = ["Sean Bowe <[email protected]>"]
55
description = "Procedural macro library used to build custom prime field implementations"
66
documentation = "https://docs.rs/ff/"
@@ -19,3 +19,6 @@ num-integer = "0.1"
1919
proc-macro2 = "1"
2020
quote = "1"
2121
syn = "1"
22+
23+
[badges]
24+
maintenance = { status = "passively-maintained" }

group/Cargo.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "group"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
authors = [
55
"Sean Bowe <[email protected]>",
66
"Jack Grigg <[email protected]>",
@@ -15,6 +15,9 @@ repository = "https://github.com/ebfull/group"
1515
edition = "2018"
1616

1717
[dependencies]
18-
ff = { path = "../ff" }
18+
ff = { version = "0.5.0", path = "../ff" }
1919
rand = "0.7"
2020
rand_xorshift = "0.2"
21+
22+
[badges]
23+
maintenance = { status = "actively-developed" }

0 commit comments

Comments
 (0)