Hi on what platform this build successfully ? I am new to rust, I simply build it with cargo build -vv, wht is the right way ?
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
AR_x86_64-unknown-linux-gnu = None
AR_x86_64_unknown_linux_gnu = None
HOST_AR = None
AR = None
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
Running `rustc --crate-name pool_proxy src/multi_user_proxy.rs --crate-type bin --emit=dep-info,link -C panic=abort -C debuginfo=2 -C metadata=8b1edf85e8460e1f -C extra-filename=-8b1edf85e8460e1f --out-dir /home/user/mining-proxy/target/debug/deps -C incremental=/home/user/mining-proxy/target/debug/incremental -L dependency=/home/user/mining-proxy/target/debug/deps --extern bytes=/home/user/mining-proxy/target/debug/deps/libbytes-a41d1b62832a3c8b.rlib --extern tokio_io=/home/user/mining-proxy/target/debug/deps/libtokio_io-ea6a015c12c63591.rlib --extern serde_json=/home/user/mining-proxy/target/debug/deps/libserde_json-79d63cfa520a0390.rlib --extern futures=/home/user/mining-proxy/target/debug/deps/libfutures-56ff4ec8ae738410.rlib --extern hyper=/home/user/mining-proxy/target/debug/deps/libhyper-c0ed480c8d9a8341.rlib --extern tokio_codec=/home/user/mining-proxy/target/debug/deps/libtokio_codec-3fa1f9a4f9e9e7cb.rlib --extern secp256k1=/home/user/mining-proxy/target/debug/deps/libsecp256k1-97ec2b122d88b15c.rlib --extern tokio=/home/user/mining-proxy/target/debug/deps/libtokio-327e274533aca8b8.rlib --extern bitcoin=/home/user/mining-proxy/target/debug/deps/libbitcoin-8702673a1103cc73.rlib --extern crypto=/home/user/mining-proxy/target/debug/deps/libcrypto-75bcdb4b9ab551c7.rlib --extern base64=/home/user/mining-proxy/target/debug/deps/libbase64-003533131bf1972c.rlib -L native=/home/user/mining-proxy/target/debug/build/rust-crypto-73b153254d3aa119/out -L native=/home/user/mining-proxy/target/debug/build/secp256k1-0dde8a0148b24f70/out -L native=/home/user/mining-proxy/target/debug/build/secp256k1-57ca9c967a33f52f/out`
error[E0658]: `impl Trait` in return position is experimental (see issue #34511)
--> src/rpc_client.rs:27:67
|
27 | pub fn make_rpc_call(&self, method: &str, params: &Vec<&str>) -> impl Future<Item=serde_json::Value, Error=()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> src/sample_pool.rs:156:15
|
156 | if let Some(serde_json::Value::String(chainwork_v)) = header.get("chainwork") {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&serde_json::Value::String(chainwork_v)`
error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> src/sample_pool.rs:157:16
|
157 | if let Some(serde_json::Value::String(hash_v)) = header.get("hash") {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&serde_json::Value::String(hash_v)`
error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> src/sample_pool.rs:158:17
|
158 | if let Some(serde_json::Value::Number(confs_v)) = header.get("confirmations") {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&serde_json::Value::Number(confs_v)`
error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> src/sample_pool.rs:380:16
|
380 | if let Some(serde_json::Value::String(besthash_v)) = chain_info.get("bestblockhash") {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&serde_json::Value::String(besthash_v)`
error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> src/sample_pool.rs:382:18
|
382 | if let Some(serde_json::Value::String(targethash_v)) = chain_info.get("target") {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&serde_json::Value::String(targethash_v)`
error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> src/sample_pool.rs:383:19
|
383 | if let Some(serde_json::Value::String(chainwork_v)) = chain_info.get("chainwork") {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&serde_json::Value::String(chainwork_v)`
error[E0308]: mismatched types
--> src/sample_pool.rs:656:58
|
656 | auth_key: PublicKey::from_secret_key(&secp_ctx, &auth_key.unwrap()).unwrap(),
| ^^^^^^^^^^^^^^^^^^ expected struct `secp256k1::SecretKey`, found struct `secp256k1::key::SecretKey`
|
= note: expected type `&secp256k1::SecretKey`
found type `&secp256k1::key::SecretKey`
note: Perhaps two different versions of crate `secp256k1` are being used?
--> src/sample_pool.rs:656:58
|
656 | auth_key: PublicKey::from_secret_key(&secp_ctx, &auth_key.unwrap()).unwrap(),
| ^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> src/single_user_proxy.rs:231:67
|
231 | bind_and_handle!(mining_listen_bind, MiningServer::new(job_rx, mining_auth_key.unwrap()), MiningServer);
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `secp256k1::SecretKey`, found struct `secp256k1::key::SecretKey`
|
= note: expected type `secp256k1::SecretKey`
found type `secp256k1::key::SecretKey`
note: Perhaps two different versions of crate `secp256k1` are being used?
--> src/single_user_proxy.rs:231:67
|
231 | bind_and_handle!(mining_listen_bind, MiningServer::new(job_rx, mining_auth_key.unwrap()), MiningServer);
| ^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> src/sample_pool.rs:483:30
|
483 | secp_ctx.sign(&hash, &auth_key.unwrap()).unwrap()
| ^^^^^^^^^^^^^^^^^^ expected struct `secp256k1::SecretKey`, found struct `secp256k1::key::SecretKey`
...
667 | signature: sign_message!(payout_info, 13),
| ------------------------------ in this macro invocation
|
= note: expected type `&secp256k1::SecretKey`
found type `&secp256k1::key::SecretKey`
note: Perhaps two different versions of crate `secp256k1` are being used?
--> src/sample_pool.rs:483:30
|
483 | secp_ctx.sign(&hash, &auth_key.unwrap()).unwrap()
| ^^^^^^^^^^^^^^^^^^
...
667 | signature: sign_message!(payout_info, 13),
| ------------------------------ in this macro invocation
error[E0308]: mismatched types
--> src/single_user_proxy.rs:243:70
|
243 | bind_and_handle!(mining_listen_bind, MiningServer::new(mining_rx, mining_auth_key.unwrap()), MiningServer);
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `secp256k1::SecretKey`, found struct `secp256k1::key::SecretKey`
|
= note: expected type `secp256k1::SecretKey`
found type `secp256k1::key::SecretKey`
note: Perhaps two different versions of crate `secp256k1` are being used?
--> src/single_user_proxy.rs:243:70
|
243 | bind_and_handle!(mining_listen_bind, MiningServer::new(mining_rx, mining_auth_key.unwrap()), MiningServer);
| ^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> src/sample_pool.rs:483:30
|
483 | secp_ctx.sign(&hash, &auth_key.unwrap()).unwrap()
| ^^^^^^^^^^^^^^^^^^ expected struct `secp256k1::SecretKey`, found struct `secp256k1::key::SecretKey`
...
718 | signature: sign_message!(user_payout_info, 15),
| ----------------------------------- in this macro invocation
|
= note: expected type `&secp256k1::SecretKey`
found type `&secp256k1::key::SecretKey`
note: Perhaps two different versions of crate `secp256k1` are being used?
--> src/sample_pool.rs:483:30
|
483 | secp_ctx.sign(&hash, &auth_key.unwrap()).unwrap()
| ^^^^^^^^^^^^^^^^^^
...
718 | signature: sign_message!(user_payout_info, 15),
| ----------------------------------- in this macro invocation
error[E0560]: struct `bitcoin::TxIn` has no field named `prev_hash`
--> src/stratum_server.rs:696:10
|
696 | prev_hash: Default::default(),
| ^^^^^^^^^^ `bitcoin::TxIn` does not have this field
|
= note: available fields are: `previous_output`, `script_sig`, `sequence`, `witness`
error[E0560]: struct `bitcoin::TxIn` has no field named `prev_index`
--> src/stratum_server.rs:697:10
|
697 | prev_index: 0xffffffff,
| ^^^^^^^^^^^ `bitcoin::TxIn` does not have this field
|
= note: available fields are: `previous_output`, `script_sig`, `sequence`, `witness`
error: aborting due to 2 previous errors
error: Could not compile `mining-proxy`.
Caused by:
process didn't exit successfully: `rustc --crate-name pool_proxy src/multi_user_proxy.rs --crate-type bin --emit=dep-info,link -C panic=abort -C debuginfo=2 -C metadata=8b1edf85e8460e1f -C extra-filename=-8b1edf85e8460e1f --out-dir /home/user/mining-proxy/target/debug/deps -C incremental=/home/user/mining-proxy/target/debug/incremental -L dependency=/home/user/mining-proxy/target/debug/deps --extern bytes=/home/user/mining-proxy/target/debug/deps/libbytes-a41d1b62832a3c8b.rlib --extern tokio_io=/home/user/mining-proxy/target/debug/deps/libtokio_io-ea6a015c12c63591.rlib --extern serde_json=/home/user/mining-proxy/target/debug/deps/libserde_json-79d63cfa520a0390.rlib --extern futures=/home/user/mining-proxy/target/debug/deps/libfutures-56ff4ec8ae738410.rlib --extern hyper=/home/user/mining-proxy/target/debug/deps/libhyper-c0ed480c8d9a8341.rlib --extern tokio_codec=/home/user/mining-proxy/target/debug/deps/libtokio_codec-3fa1f9a4f9e9e7cb.rlib --extern secp256k1=/home/user/mining-proxy/target/debug/deps/libsecp256k1-97ec2b122d88b15c.rlib --extern tokio=/home/user/mining-proxy/target/debug/deps/libtokio-327e274533aca8b8.rlib --extern bitcoin=/home/user/mining-proxy/target/debug/deps/libbitcoin-8702673a1103cc73.rlib --extern crypto=/home/user/mining-proxy/target/debug/deps/libcrypto-75bcdb4b9ab551c7.rlib --extern base64=/home/user/mining-proxy/target/debug/deps/libbase64-003533131bf1972c.rlib -L native=/home/user/mining-proxy/target/debug/build/rust-crypto-73b153254d3aa119/out -L native=/home/user/mining-proxy/target/debug/build/secp256k1-0dde8a0148b24f70/out -L native=/home/user/mining-proxy/target/debug/build/secp256k1-57ca9c967a33f52f/out` (exit code: 101)
warning: build failed, waiting for other jobs to finish...
error[E0560]: struct `bitcoin::TxIn` has no field named `prev_hash`
--> src/stratum_server.rs:696:10
|
696 | prev_hash: Default::default(),
| ^^^^^^^^^^ `bitcoin::TxIn` does not have this field
|
= note: available fields are: `previous_output`, `script_sig`, `sequence`, `witness`
error[E0560]: struct `bitcoin::TxIn` has no field named `prev_index`
--> src/stratum_server.rs:697:10
|
697 | prev_index: 0xffffffff,
| ^^^^^^^^^^^ `bitcoin::TxIn` does not have this field
|
= note: available fields are: `previous_output`, `script_sig`, `sequence`, `witness`
error[E0560]: struct `bitcoin::TxIn` has no field named `prev_hash`
--> src/mining_server.rs:61:4
|
61 | prev_hash: Default::default(),
| ^^^^^^^^^^ `bitcoin::TxIn` does not have this field
|
= note: available fields are: `previous_output`, `script_sig`, `sequence`, `witness`
error[E0560]: struct `bitcoin::TxIn` has no field named `prev_index`
--> src/mining_server.rs:62:4
|
62 | prev_index: 0xffffffff,
| ^^^^^^^^^^^ `bitcoin::TxIn` does not have this field
|
= note: available fields are: `previous_output`, `script_sig`, `sequence`, `witness`
error: aborting due to 10 previous errors
error: Could not compile `mining-proxy`.
Caused by:
process didn't exit successfully: `rustc --crate-name sample_pool src/sample_pool.rs --crate-type bin --emit=dep-info,link -C panic=abort -C debuginfo=2 -C metadata=fa9157f6d01f828a -C extra-filename=-fa9157f6d01f828a --out-dir /home/user/mining-proxy/target/debug/deps -C incremental=/home/user/mining-proxy/target/debug/incremental -L dependency=/home/user/mining-proxy/target/debug/deps --extern bytes=/home/user/mining-proxy/target/debug/deps/libbytes-a41d1b62832a3c8b.rlib --extern tokio_io=/home/user/mining-proxy/target/debug/deps/libtokio_io-ea6a015c12c63591.rlib --extern serde_json=/home/user/mining-proxy/target/debug/deps/libserde_json-79d63cfa520a0390.rlib --extern futures=/home/user/mining-proxy/target/debug/deps/libfutures-56ff4ec8ae738410.rlib --extern hyper=/home/user/mining-proxy/target/debug/deps/libhyper-c0ed480c8d9a8341.rlib --extern tokio_codec=/home/user/mining-proxy/target/debug/deps/libtokio_codec-3fa1f9a4f9e9e7cb.rlib --extern secp256k1=/home/user/mining-proxy/target/debug/deps/libsecp256k1-97ec2b122d88b15c.rlib --extern tokio=/home/user/mining-proxy/target/debug/deps/libtokio-327e274533aca8b8.rlib --extern bitcoin=/home/user/mining-proxy/target/debug/deps/libbitcoin-8702673a1103cc73.rlib --extern crypto=/home/user/mining-proxy/target/debug/deps/libcrypto-75bcdb4b9ab551c7.rlib --extern base64=/home/user/mining-proxy/target/debug/deps/libbase64-003533131bf1972c.rlib -L native=/home/user/mining-proxy/target/debug/build/rust-crypto-73b153254d3aa119/out -L native=/home/user/mining-proxy/target/debug/build/secp256k1-0dde8a0148b24f70/out -L native=/home/user/mining-proxy/target/debug/build/secp256k1-57ca9c967a33f52f/out` (exit code: 101)
warning: build failed, waiting for other jobs to finish...
error: aborting due to 6 previous errors
error: Could not compile `mining-proxy`.
Caused by:
process didn't exit successfully: `rustc --crate-name mining_proxy src/single_user_proxy.rs --crate-type bin --emit=dep-info,link -C panic=abort -C debuginfo=2 -C metadata=57bdfdcab68221e9 -C extra-filename=-57bdfdcab68221e9 --out-dir /home/user/mining-proxy/target/debug/deps -C incremental=/home/user/mining-proxy/target/debug/incremental -L dependency=/home/user/mining-proxy/target/debug/deps --extern bytes=/home/user/mining-proxy/target/debug/deps/libbytes-a41d1b62832a3c8b.rlib --extern tokio_io=/home/user/mining-proxy/target/debug/deps/libtokio_io-ea6a015c12c63591.rlib --extern serde_json=/home/user/mining-proxy/target/debug/deps/libserde_json-79d63cfa520a0390.rlib --extern futures=/home/user/mining-proxy/target/debug/deps/libfutures-56ff4ec8ae738410.rlib --extern hyper=/home/user/mining-proxy/target/debug/deps/libhyper-c0ed480c8d9a8341.rlib --extern tokio_codec=/home/user/mining-proxy/target/debug/deps/libtokio_codec-3fa1f9a4f9e9e7cb.rlib --extern secp256k1=/home/user/mining-proxy/target/debug/deps/libsecp256k1-97ec2b122d88b15c.rlib --extern tokio=/home/user/mining-proxy/target/debug/deps/libtokio-327e274533aca8b8.rlib --extern bitcoin=/home/user/mining-proxy/target/debug/deps/libbitcoin-8702673a1103cc73.rlib --extern crypto=/home/user/mining-proxy/target/debug/deps/libcrypto-75bcdb4b9ab551c7.rlib --extern base64=/home/user/mining-proxy/target/debug/deps/libbase64-003533131bf1972c.rlib -L native=/home/user/mining-proxy/target/debug/build/rust-crypto-73b153254d3aa119/out -L native=/home/user/mining-proxy/target/debug/build/secp256k1-0dde8a0148b24f70/out -L native=/home/user/mining-proxy/target/debug/build/secp256k1-57ca9c967a33f52f/out` (exit code: 101)