#traits #compiler #emulator #mocking #sapio #ecosystem #ctv

sapio-ctv-emulator-trait

Emulator Trait for mocking out CTV with other logic, trait separate to avoid pulling in tokio to compiler

3 unstable releases

0.2.4 Jan 16, 2024
0.2.0 Nov 4, 2021
0.1.2 Mar 23, 2021

#4 in #sapio

Download history 3/week @ 2023-12-18 27/week @ 2024-01-15 24/week @ 2024-02-19 49/week @ 2024-02-26 32/week @ 2024-03-04 8/week @ 2024-03-11 10/week @ 2024-03-25 62/week @ 2024-04-01

96 downloads per month
Used in 7 crates (5 directly)

MPL-2.0 license

48KB
968 lines

Sapio CTV Emulator Trait

This emulator trait crate is a base that exports a trait definition and some helper structs that are needed across the sapio ecosystem.

Defining the trait in its own crate allows us to use trait objects in our compiler internals without needing to have the compiler directly depend on e.g. networking primitives.


lib.rs:

trait definition for any ctv emulator

Dependencies

~13MB
~152K SLoC