async-tensorrt 0.9.1

Async TensorRT for Rust.
Documentation
use cpp::cpp;

cpp! {{
    // Simple wrapper function for all destroyable TensorRT classes. Their
    // destroy methods are all deprecated but still required to correctly
    // free resources so we need them anyway. This function will make sure
    // that any deprecation warnings are ignored.
    template<typename T>
    void destroy(T* destroyable) {
        #pragma GCC diagnostic push
        #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
        #if NV_TENSORRT_MAJOR >= 10
        delete destroyable;
        #else
        destroyable->destroy();
        #endif
        #pragma GCC diagnostic pop
    }
}}