project-serum / serum-dex

Project Serum Rust Monorepo
https://projectserum.com
Apache License 2.0
627 stars 330 forks source link

Project build failed #231

Closed SypoolProtocol closed 2 years ago

SypoolProtocol commented 2 years ago
error: #[derive] can't be used on a #[repr(packed)] struct that does not derive Copy (error E0133) --> src/state.rs:65:45 65 #[cfg_attr(target_endian = "little", derive(Debug))] ^^^^^

note: the lint level is defined here --> src/lib.rs:1:9 | 1 | #![deny(safe_packed_borrows)] | ^^^^^^^^^^^^^^^^^^^ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #82523 https://github.com/rust-lang/rust/issues/82523 = note: this error originates in the derive macro Debug (in Nightly builds, run with -Z macro-backtrace for more info)

warning: serum_dex (lib) generated 5 warnings error: could not compile serum_dex due to previous error; 5 warnings emitted

SypoolProtocol commented 2 years ago

I turns out serum-quickstart wasn't using the latest serum-dex code