Skip to content

Commit

Permalink
fix: Fix no-std compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedey committed Nov 22, 2024
1 parent 3dffba7 commit d6ad289
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
5 changes: 5 additions & 0 deletions sbor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,10 @@ pub(crate) mod internal_prelude {
pub use crate::prelude::*;
// These are mostly used for more advanced use cases,
// so aren't included in the general prelude
pub use crate::basic::*;
pub use crate::decoder::*;
pub use crate::encoder::*;
pub use crate::payload_validation::*;
pub use crate::schema::*;
pub use crate::vec_traits::*;
}
12 changes: 1 addition & 11 deletions sbor/src/value.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
use crate::decode::*;
use crate::decoder::*;
use crate::encode::*;
use crate::encoder::*;
use crate::path::SborPathBuf;
use crate::rust::fmt::Debug;
use crate::rust::string::String;
use crate::rust::vec::Vec;
use crate::value_kind::*;
use crate::*;
use crate::internal_prelude::*;
#[cfg(feature = "fuzzing")]
use arbitrary::Arbitrary;

Expand Down Expand Up @@ -526,7 +517,6 @@ pub trait ValueVisitor<X: CustomValueKind, Y: CustomValue<X>> {

#[cfg(test)]
mod tests {
use super::*;
use crate::internal_prelude::*;

#[derive(Categorize, Encode)]
Expand Down
5 changes: 1 addition & 4 deletions sbor/src/vec_traits.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use crate::{
internal_prelude::*, validate_payload_against_schema, CustomExtension, CustomSchema,
Decoder as _, Describe, Encoder as _, ValidatableCustomExtension, VecDecoder, VecEncoder,
};
use crate::internal_prelude::*;

pub trait VecEncode<X: CustomValueKind>: for<'a> Encode<X, VecEncoder<'a, X>> {}
impl<X: CustomValueKind, T: for<'a> Encode<X, VecEncoder<'a, X>> + ?Sized> VecEncode<X> for T {}
Expand Down

0 comments on commit d6ad289

Please sign in to comment.