Don’t forget that Rust extern functions are actually extern "C", and are therefore exposing a C-Api.
So, if you want to expose an api to racket, you can use a c-api package for racket.
If you want to expose racket to rust, make the racket api expose a c-api.