Skip to content

Commit

Permalink
Make traits crate public
Browse files Browse the repository at this point in the history
  • Loading branch information
ark0f committed Sep 26, 2023
1 parent aefa730 commit cbe6963
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core-backend/src/funcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ impl From<u32> for SysCallReturnValue {
}
}

pub trait SysCallContext: Sized {
pub(crate) trait SysCallContext: Sized {
fn from_args(args: &[Value]) -> Result<(Self, &[Value]), HostError>;
}

pub trait SysCall<Ext, T = ()> {
pub(crate) trait SysCall<Ext, T = ()> {
type Context: SysCallContext;

fn execute(
Expand All @@ -177,7 +177,7 @@ pub trait SysCall<Ext, T = ()> {
) -> Result<(u64, T), HostError>;
}

pub trait SysCallBuilder<Ext, Args: ?Sized, R, S> {
pub(crate) trait SysCallBuilder<Ext, Args: ?Sized, R, S> {
fn build(self, args: &[Value]) -> Result<S, HostError>;
}

Expand Down

0 comments on commit cbe6963

Please sign in to comment.