#traits #emulator #compiler #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


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
~159K SLoC