* Executing task: cargo run --package mango-rs --bin mango-rs
Compiling protobuf-src v1.1.0+21.5
Compiling solana-transaction-status v1.14.17
Compiling openssl v0.10.50
Compiling openssl-sys v0.9.85
Compiling librocksdb-sys v0.8.3+7.4.4
warning: use of deprecated associated function `solana_program::pubkey::Pubkey::new`: Please use 'Pubkey::from' or 'Pubkey::try_from' instead
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/3rdparty/anchor/lang/src/lib.rs:308:21
|
308 | Pubkey::new(self)
| ^^^
|
= note: `#[warn(deprecated)]` on by default
warning: `anchor-lang` (lib) generated 1 warning
Compiling mango-v4 v0.14.0 (/Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4)
Compiling solana-storage-proto v1.14.17
Compiling yellowstone-grpc-proto v1.1.0+solana.1.15.2
Compiling rocksdb v0.19.0
Compiling solana-client v1.14.17
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/bank.rs:141:1
|
141 | / const_assert_eq!(
142 | | size_of::<Bank>(),
143 | | 32 + 16
144 | | + 32 * 3
... |
168 | | + 2118
169 | | );
| |_^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/bank.rs:170:1
|
170 | const_assert_eq!(size_of::<Bank>(), 3064);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/group.rs:93:1
|
93 | / const_assert_eq!(
94 | | size_of::<Group>(),
95 | | 32 + 4 + 32 * 2 + 4 + 32 * 2 + 4 + 4 + 20 * 32 + 32 + 8 + 16 + 32 + 8 + 1824
96 | | );
| |_^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/group.rs:97:1
|
97 | const_assert_eq!(size_of::<Group>(), 2736);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
Compiling smpl_jwt v0.7.1
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/mango_account_components.rs:49:1
|
49 | / const_assert_eq!(
50 | | size_of::<TokenPosition>(),
51 | | 16 + 2 + 1 + 5 + 16 + 8 + 8 + 128
52 | | );
| |_^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/mango_account_components.rs:53:1
|
53 | const_assert_eq!(size_of::<TokenPosition>(), 184);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/mango_account_components.rs:269:1
|
269 | / const_assert_eq!(
270 | | size_of::<PerpPosition>(),
271 | | 2 + 2 + 4 + 8 + 8 + 16 + 8 + 16 * 2 + 8 * 2 + 8 * 2 + 8 * 5 + 8 + 2 * 16 + 8 + 16 + 88
272 | | );
| |_^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/mango_account_components.rs:273:1
|
273 | const_assert_eq!(size_of::<PerpPosition>(), 304);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/oracle.rs:104:1
|
104 | const_assert_eq!(size_of::<StubOracle>(), 32 + 32 + 16 + 8 + 128);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/oracle.rs:105:1
|
105 | const_assert_eq!(size_of::<StubOracle>(), 216);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/orderbook/nodes.rs:101:1
|
101 | const_assert_eq!(size_of::<InnerNode>(), 4 + 4 + 16 + 4 * 2 + 8 * 2 + 72);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/orderbook/nodes.rs:102:1
|
102 | const_assert_eq!(size_of::<InnerNode>(), NODE_SIZE);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/orderbook/nodes.rs:187:1
|
187 | / const_assert_eq!(
188 | | size_of::<LeafNode>(),
189 | | 4 + 1 + 1 + 1 + 1 + 16 + 32 + 8 + 8 + 8 + 8 + 32
190 | | );
| |_^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/orderbook/nodes.rs:191:1
|
191 | const_assert_eq!(size_of::<LeafNode>(), NODE_SIZE);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/orderbook/nodes.rs:268:1
|
268 | const_assert_eq!(size_of::<AnyNode>(), size_of::<InnerNode>());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/orderbook/nodes.rs:269:1
|
269 | const_assert_eq!(size_of::<AnyNode>(), size_of::<LeafNode>());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/perp_market.rs:172:1
|
172 | / const_assert_eq!(
173 | | size_of::<PerpMarket>(),
174 | | 32 + 2
175 | | + 2
... |
205 | | + 1888
206 | | );
| |_^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0080]: evaluation of constant value failed
--> /Users/0x4ka5h/Documents/intern/osec/mango/dependencies/programs/mango-v4/src/state/perp_market.rs:207:1
|
207 | const_assert_eq!(size_of::<PerpMarket>(), 2808);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
|
= note: this error originates in the macro `const_assert` which comes from the expansion of the macro `const_assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0080`.
error: could not compile `mango-v4` due to 18 previous errors
warning: build failed, waiting for other jobs to finish...
* The terminal process "cargo 'run', '--package', 'mango-rs', '--bin', 'mango-rs'" terminated with exit code: 101.
* Terminal will be reused by tasks, press any key to close it.
[package]
name = "mango-rs"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
mango-v4-client = { path = "../dependencies/lib/client"}