#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 18/week @ 2024-06-24 25/week @ 2024-07-01 21/week @ 2024-07-15 17/week @ 2024-07-29 7/week @ 2024-08-05 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

84 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
~155K SLoC