diff --git a/app/rust/Cargo.toml b/app/rust/Cargo.toml index d4e292d..67e5862 100644 --- a/app/rust/Cargo.toml +++ b/app/rust/Cargo.toml @@ -55,6 +55,7 @@ panic = "abort" [features] clippy = [] +derive-debug = [] [patch.crates-io] # decaf377 = { path = "../decaf377" } diff --git a/app/rust/src/lib.rs b/app/rust/src/lib.rs index e68d1ca..50343f3 100644 --- a/app/rust/src/lib.rs +++ b/app/rust/src/lib.rs @@ -27,7 +27,6 @@ use poseidon377 as _; use educe as _; use arrayref as _; -// pub(crate) mod addr; pub(crate) mod address; mod bolos; pub mod constants; @@ -73,7 +72,7 @@ pub fn is_expert_mode() -> bool { unsafe { app_mode_expert() > 0 } } -#[cfg(any(test, fuzzing))] +#[cfg(any(test, feature = "fuzzing"))] pub fn is_expert_mode() -> bool { true } diff --git a/app/rust/src/parser/parameters.rs b/app/rust/src/parser/parameters.rs index 24895a3..16e78eb 100644 --- a/app/rust/src/parser/parameters.rs +++ b/app/rust/src/parser/parameters.rs @@ -13,10 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. ********************************************************************************/ -use crate::{ - effect_hash::{create_personalized_state, EffectHash}, - ParserError, -}; +use crate::effect_hash::{create_personalized_state, EffectHash}; use super::bytes::BytesC; diff --git a/app/rust/src/parser/plans/action.rs b/app/rust/src/parser/plans/action.rs index 047d016..b8184b1 100644 --- a/app/rust/src/parser/plans/action.rs +++ b/app/rust/src/parser/plans/action.rs @@ -20,6 +20,7 @@ use crate::constants::ACTION_DATA_QTY; #[repr(u8)] pub enum ActionType { Spend = 0, + Output = 1, } #[repr(C)] diff --git a/app/rust/src/utils.rs b/app/rust/src/utils.rs index a8fb30d..9dd301c 100644 --- a/app/rust/src/utils.rs +++ b/app/rust/src/utils.rs @@ -2,7 +2,6 @@ mod apdu_unwrap; mod big_int; pub mod prf; use crate::ParserError; -pub use apdu_unwrap::*; // pub use big_int::BigInt; #[cfg(test)] use std::vec::Vec;