Is there a cdylib testing framework?

I'm just curious if anyone's created a testing framework specifically for testing dynamic libraries. With cargo test we currently have to test the rlib rather than the cdylib which isn't quite the same.

It's not a blocker, just curious if anyone knew of examples of people testing the cdylib itself.

I have something that I've been using for my own projects. It's a modified version of the trybuild crate. Just split it out into it's own project now: https://github.com/Jarcho/test-cdylib.

Edit: Uploaded to crates.io

2 Likes