Skip to content

Expose IHostMemory#24

Merged
theHamsta merged 3 commits intorustnn:mainfrom
theHamsta:expose-ihostmemory
Feb 27, 2026
Merged

Expose IHostMemory#24
theHamsta merged 3 commits intorustnn:mainfrom
theHamsta:expose-ihostmemory

Conversation

@theHamsta
Copy link
Contributor

@theHamsta theHamsta commented Feb 20, 2026

On top of #15 .

Follow up for #15

  • issue IHostMemory should neither be leaked nor cloned. #17 to expose IHostMemory directly. We don't want to copy engines. Since we implement Deref<&[u8]>/AsRef<&[u8]> for it, it behaves API-wise like the Vec<u8> from the mock side.
  • give IBuilderConfig its own file

Fixes #17

@theHamsta theHamsta changed the title Expose ihostmemory Expose IHostMemory Feb 20, 2026
@theHamsta theHamsta force-pushed the expose-ihostmemory branch 2 times, most recently from a182431 to f32a9b0 Compare February 26, 2026 17:54
@theHamsta theHamsta force-pushed the expose-ihostmemory branch 2 times, most recently from c8aece0 to d1da54f Compare February 27, 2026 15:39
@theHamsta theHamsta closed this Feb 27, 2026
@theHamsta theHamsta reopened this Feb 27, 2026
This avoids needing to copy the engine memory
to a vector.

Fixes rustnn#17
@theHamsta theHamsta requested a review from mtavenrath February 27, 2026 16:17
@theHamsta theHamsta merged commit 1a64bd5 into rustnn:main Feb 27, 2026
6 checks passed
@theHamsta theHamsta deleted the expose-ihostmemory branch February 27, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IHostMemory should neither be leaked nor cloned.

1 participant