thin_trait_object 1.1.2

One pointer wide trait objects which are also FFI safe, allowing traits to be passed to/from and implemented by C ABI code
Documentation
use thin_trait_object::*;

#[thin_trait_object(
    marker_traits(
        SafeMarker,
        // `unsafe` keyword here ensures that "unsafe code" is required
        // to produce UB by implementing the trait
        unsafe UnsafeMarker,
    )
)]
trait Foo: SafeMarker + UnsafeMarker {
    fn fooify(&self);
}

trait SafeMarker {}
unsafe trait UnsafeMarker {}

impl Foo for String {
    fn fooify(&self) {
        println!("Fooified a string: {}", self);
    }
}
impl SafeMarker for String {}
unsafe impl UnsafeMarker for String {}

fn main() {
    BoxedFoo::new("Hello World!".to_string()).fooify();
}