You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am compiling some code I added to a custom crate (here called xxxx).
It has been compiling fine until I rebased to f5b61cd.
Now I am getting several errors like:
error[E0308]: arguments to this function are incorrect
--> xxxx/src/proofsystem_algo.rs:102:20
|
102 | statements.add(PoKSignatureBBSG1Stmt::new_statement_from_params(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: expected struct `bbs_plus::setup::SignatureParamsG1`, found struct `SignatureParamsG1`
--> xxxx/src/proofsystem_algo.rs:103:9
|
103 | sig_params.clone(),
| ^^^^^^^^^^^^^^^^^^
= note: struct `SignatureParamsG1` and struct `bbs_plus::setup::SignatureParamsG1` have similar names, but are actually distinct types
note: struct `SignatureParamsG1` is defined in crate `bbs_plus`
--> /Users/me/ws/OLABS/github-docknetwork-crypto-NEW-f5b61cd/bbs_plus/src/setup.rs:343:1
|
343 | impl_sig_params!(SignatureParamsG1, G1Affine, G1, G2Affine, G2);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: struct `bbs_plus::setup::SignatureParamsG1` is defined in crate `bbs_plus`
--> /Users/me/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/bbs_plus-0.11.0/src/setup.rs:343:1
|
343 | impl_sig_params!(SignatureParamsG1, G1Affine, G1, G2Affine, G2);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `bbs_plus` are being used?
I also note that some of the docknetwork/crypto crate's Cargo.toml include a path to other crates in the repo while others do not.
For example: see proof_system compared to bbs_plus below.
The following output is editted and formatted for readability:
I am compiling some code I added to a custom crate (here called
xxxx
).It has been compiling fine until I rebased to
f5b61cd
.Now I am getting several errors like:
This might be related to a
cargo
issue: rust-lang/cargo#11490Note, the top-level
Cargo.lock
file does have two versions ofbbs_plus
in it:I also note that some of the
docknetwork/crypto
crate'sCargo.toml
include apath
to other crates in the repo while others do not.For example: see
proof_system
compared tobbs_plus
below.The following output is editted and formatted for readability:
One last thing. `saver/Cargo.toml' seems to indicate the need for paths:
Bottom line: the rust compiler can't tell the difference between what is in the local registry and what is available via
path
.I am assuming that is my problem, but maybe not.
Thank you,
H
The text was updated successfully, but these errors were encountered: