#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

Download history 9/week @ 2024-08-26 8/week @ 2024-09-16 39/week @ 2024-09-23 33/week @ 2024-09-30 4/week @ 2024-10-07 3/week @ 2024-10-14 3/week @ 2024-10-21 6/week @ 2024-11-18 3/week @ 2024-11-25 14/week @ 2024-12-02 29/week @ 2024-12-09

52 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
~158K SLoC