Skip to content

Commit b73e44b

Browse files
committed
Fork crates as rustcrypto-ff/rustcrypto-ff_derive
Adds a `rustcrypto*` prefix to the crate names, allowing us to release forks since we're having trouble getting updates merged upstream: zkcrypto#147
1 parent b1f48af commit b73e44b

8 files changed

Lines changed: 102 additions & 100 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
os: [ubuntu-latest, windows-latest, macOS-latest]
14+
os: [ ubuntu-latest, windows-latest, macOS-latest ]
1515
steps:
1616
- uses: actions/checkout@v4
1717
- name: Run tests
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ${{ matrix.os }}
2727
strategy:
2828
matrix:
29-
os: [ubuntu-latest, windows-latest, macOS-latest]
29+
os: [ ubuntu-latest, windows-latest, macOS-latest ]
3030
steps:
3131
- uses: actions/checkout@v4
3232
- uses: dtolnay/rust-toolchain@stable
@@ -70,7 +70,7 @@ jobs:
7070
- name: Add ff as a dependency of the synthetic crate
7171
working-directory: ./ci-build
7272
# run: cargo add --no-default-features --path ../crate_root
73-
run: sed -i 's;\[dependencies\];\[dependencies\]\nff = { path = "../crate_root", default-features = false };g' ./Cargo.toml
73+
run: sed -i 's;\[dependencies\];\[dependencies\]\nrustcrypto-ff = { path = "../crate_root", default-features = false };g' ./Cargo.toml
7474
- name: Add target
7575
working-directory: ./ci-build
7676
run: rustup target add ${{ matrix.target }}
@@ -80,7 +80,7 @@ jobs:
8080
- name: Enable the bits feature of ff
8181
working-directory: ./ci-build
8282
# run: cargo add --no-default-features --features bits --path ../crate_root
83-
run: sed -i 's;ff = { path = "../crate_root", default-features = false };ff = { path = "../crate_root", default-features = false, features = ["bits"] };g' ./Cargo.toml
83+
run: sed -i 's;rustcrypto-ff = { path = "../crate_root", default-features = false };rustcrypto-ff = { path = "../crate_root", default-features = false, features = ["bits"] };g' ./Cargo.toml
8484
- name: Build for target with the bits feature
8585
working-directory: ./ci-build
8686
run: cargo build --verbose --target ${{ matrix.target }}

Cargo.lock

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
2-
name = "ff"
3-
version = "0.14.0-pre.0"
2+
name = "rustcrypto-ff"
3+
version = "0.14.0-pre"
44
authors = [
55
"Sean Bowe <ewillbefull@gmail.com>",
66
"Jack Grigg <thestr4d@gmail.com>",
@@ -17,7 +17,7 @@ repository = "https://github.com/zkcrypto/ff"
1717
[dependencies]
1818
bitvec = { version = "1", default-features = false, optional = true }
1919
byteorder = { version = "1", default-features = false, optional = true }
20-
ff_derive = { version = "=0.14.0-pre.0", path = "ff_derive", optional = true }
20+
ff_derive = { version = "=0.14.0-pre", package = "rustcrypto-ff_derive", path = "ff_derive", optional = true }
2121
rand_core = { version = "0.9", default-features = false }
2222
subtle = { version = "2.2.1", default-features = false, features = ["i128"] }
2323

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# ff
1+
# RustCrypto: ff
22

33
`ff` is a finite field library written in pure Rust, with no `unsafe{}` code.
44

5+
This is a fork of https://github.com/zkcrypto/ff
6+
57
## RFC process
68

79
This crate follows the [zkcrypto RFC process](https://zkcrypto.github.io/rfcs/).

ff_derive/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
2-
name = "ff_derive"
3-
version = "0.14.0-pre.0"
2+
name = "rustcrypto-ff_derive"
3+
version = "0.14.0-pre"
44
authors = [
55
"Sean Bowe <ewillbefull@gmail.com>",
66
"Jack Grigg <thestr4d@gmail.com>",

0 commit comments

Comments
 (0)