Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

improve Rust bindings#718

Open
LorenzSchueler wants to merge 1 commit intoipsilon:masterfrom
LorenzSchueler:rust-bindings-slice
Open

improve Rust bindings#718
LorenzSchueler wants to merge 1 commit intoipsilon:masterfrom
LorenzSchueler:rust-bindings-slice

Conversation

@LorenzSchueler
Copy link

  • make ExecutionTxContext a new type (instead of alias) which holds slices instead of pointers and lengths
  • change type of input and code fields of ExecutionMessage from Option<Vec<u8>> to Option<&[u8]> thereby eliminating allocations
  • no not call alloc and dealloc directly but convert between *mut T, usize and Box<[T]>
  • make into_ffi_pointer safe as there is no unsafe operation involved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant