#guest #host

ambient_guest_bridge

Crate for the Ambient runtime that allows code to target either native host code or the API exposed to guest code

16 releases

0.3.1 Oct 25, 2023
0.3.1-rc.1 Oct 24, 2023
0.3.0-rc.2 Sep 29, 2023
0.2.1 May 6, 2023

#18 in #guest

Download history 48/week @ 2024-07-20 50/week @ 2024-07-27 45/week @ 2024-08-03 35/week @ 2024-08-10 36/week @ 2024-08-17 35/week @ 2024-08-24 58/week @ 2024-08-31 24/week @ 2024-09-07 15/week @ 2024-09-14 64/week @ 2024-09-21 68/week @ 2024-09-28 1/week @ 2024-10-05 28/week @ 2024-10-12 17/week @ 2024-10-19 12/week @ 2024-10-26 23/week @ 2024-11-02

80 downloads per month
Used in 20 crates (2 directly)

MIT/Apache

2.5MB
11K SLoC

Ambient guest bridge

This crate makes it possible to write code that can be used either internally in the Ambient runtime, or in a guest crate using ambient_api.

It does this by abstracting over both APIs and providing a common interface that can be targeted by downstream code to allow running that code in either context.

Dependencies

~3–45MB
~757K SLoC