All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Fix TRT RTX download link and doc lints (#159)
- Use doc_cfg feature on docs.rs, replace pretty_env_logger (#164)
- [breaking] Share RuntimeConfig with Arc (#161)
- [breaking] Remove deprecated methods (#160)
Removed all deprecated Rust API methods, including the old getter aliases and
NetworkDefinition::add_dynamic_quantize. Use the current getter names andNetworkDefinition::add_dynamic_quantize_v2instead. This is a breaking API change. - Use libclang-21-dev via LIBCLANG_PATH and change nvidia-nvtx to nvtx (#162)
Hotfix release to restore previous version 0.92 of bindgen. bindgen 0.93 broke RustNN's darling.
See what's new in TensorRT RTX 1.7 https://docs.nvidia.com/deeplearning/tensorrt-rtx/latest/index.html#what-s-new-in-nvidia-tensorrt-rtx-1-7
- Add
get_tensorrt_build_version(#146) - Add support for TensorRT RTX 1.7 (#147)
- Add support for building without weight data (#148)
- Add some TRT RTX 1.7 features (without IWeightManager) (#150)
- Add WeightManager (#151)
- Update README.md and remove DESIGN.md (#144)
- Remove AGENTS.md (#153)
- Add .rgignore that filters TRT headers except the newest (#145)
- Remove mock feature docs from CI (#154)
- Update TensorRT Enterprise headers from 11.1 to 11.4 (#149)
This is a hotfix release to fix the -rtx1.5 suffix on crates.io for the previous release.
It should have been -rtx1.6 corresponding to the supported TensorRT RTX version.
- Allow setting GpuAllocator for Runtime (#139)
- Add
Builder::set_gpu_allocator(#140)
- (trtexec-rs) Switching back to RustNN main (#138)
- Fix wrong version suffix from rtx1.5 to rtx1.6 (#141)
See what's new in TensorRT RTX 1.6 https://docs.nvidia.com/deeplearning/tensorrt-rtx/latest/index.html#what-s-new-in-nvidia-tensorrt-rtx-1-6
- (trtexec-rs) --weights-as-inputs for webnn files (#123)
- Implement
Sendfor HostMemory (#127) - Support for build routes (#133)
- Implement deferred weight loading and StreamReaderV2 (#134)
- Implement EngineValidity, EngineInvalidityDiagnostics (#135)
- Remove lifetime from RuntimeCache (#129)
- Use RustNN's new trtx-enterprise feature (#130)
- Bump TensorRT-RTX version to 1.6 (#131)
- Bump TensorRT enterprise to version 11.1 (#132)
- Update doc links to TensorRT RTX documentation (#136)
- Allow long path names under Windows (#128)
0.7.1+rtx1.5 - 2026-06-12
- Make some types
Send(#121)- BuilderConfig
- Builder
- NetworkDefinition
- Runtime
- RuntimeConfig
- RuntimeCache (even Sync)
- ErrorRecorder (even Sync)
- Switch trtexec-rs back to RustNN main (#120)
- Bump to version v0.7.1
0.7.0+rtx1.5 - 2026-06-12
- Add impl for
RotaryEmbeddingLayer(#110) - Add missing
NetworkDefinition::add_XXXmethods (#112) - [breaking] Allow to set constant weight name (#117)
- Add check_network calls to
set_{query,key_value,update}_lengths(#111)
- Reexport all nvinfer1 enums used in API (#118)
- Bump to 0.7.0 (#119)
- Update link to TRT RTX 1.4 release notes (#114)
- Pin tensorrt_rtx to exact version (#113)
- Switch trtexec-rs back to RustNN main (#116)
0.6.0+rtx1.5 - 2026-05-28
- Add support for
ShapeLayer(#89) - Debug for API facing types (#93)
- Add RuntimeConfig, RuntimeCache (#101)
- [breaking] TensorRT RTX 1.5 support, make TRT RTX 1.5 the new default (#105)
- Export
trtx_sys(#103) - Add support for AttentionIOForm, CausalMaskKind (TRT RTX 1.5) (#107)
- Return error instead of panic in
Tensor::dimensionsfor negative nbDims (#90) - [breaking] Error on
falsereturn value forset_{input,output}_tensor_address(#100) - Manage RuntimeConfig, RuntimeCache with Arc/Rc (#102)
- Disable RUST_LOG during autocxx (#95)
- Bump version to 0.6.0+rtx1.5
- Make failed library load emit
warnlog instead oferror(#94)
- Fix link to TRT RTX documentation in README (#97)
- Add README for trtexec-rs (#96)
- Document build failures with libclang >= 22 (#99)
- Update link to Rustdoc format (#106)
- Update actions/cache to v5 (#108)
0.5.0 - 2026-04-30
- trtexec-rs as a Rust port of trtexec (supports also WebNN graphs)
- Support for IProfiler interface
- More methods on ExecutionContext, CudaEngine and some Layers
- Add support for setting NCCL communicator on networks
- Removed
get_prefix from getters (old names deprecated)
- Fixed concurrent dynamic loading (only load libraries once)
- Make sure OnnxParser can't be dropped before build
- Add lifetimes of parent object to BuilderConfig
0.4.0 - 2026-04-09
- Support for TensorRT RTX 1.4 (see https://docs.nvidia.com/deeplearning/tensorrt-rtx/latest/getting-started/release-notes-1/1.4.html)
- Refitter API
- IProgressMonitor, IErrorRecorder, IDebug, IGpuAllocator, IDebugListener exposed
- More layers and layer methods exposed
- trtx now enforces with lifetimes correct usage of API
- autocxx is now used for almost everything, even mock
- mock now uses the same API as real mode, builder API now has limited mock coverage
- fixed one SEGFAULT in
add_comulative(now prevented by lifetimes in API)
0.3.1 - 2026-02-26
- Added missing layer and tensor capabilities needed by RustNN: layer naming/introspection (
set_layer_name,get_layer_name,get_layer_type,get_nb_layers), tensor format control (set_allowed_formats), engine tensor dtype lookup, convolution/deconvolution input setters, and expanded deconvolution controls (stride/padding/dilation/groups). Mock mode now mirrors the new APIs. - Extended FFI bindings with TensorRT
TensorFormatand related enums so the safe API can expose format/weight type choices.
- TensorRT libraries now auto-load on first use (builder, ONNX parser, runtime) and guard against double-loading when using
dlopenmode. - Build script normalizes bundled TensorRT headers (size_t fixes, doxygen cleanup) to improve autocxx generation and rustdoc quality; future header drops are transformed automatically.
- Dependency versions bumped to current releases; crate-level docs refreshed to align with README.
0.3.0 - 2025-02-11
- Dependency-Free Build: Included TensorRT-RTX headers and provided internal typedefs for essential CUDA types. This allows the crate to be built out-of-the-box without requiring a pre-installed CUDA Toolkit or TensorRT-RTX SDK.
- Lazy DLL Loading: Implemented delay-loading for TensorRT-RTX shared libraries. This allows applications to link against trtx-rs and start up even on systems where TensorRT-RTX is not supported while at the same time utilize TensorRT-RTX on system with supported GPUs.
- Network Definition API: The TensorRT-RTX
INetworkDefinitioninterface is now supported, allowing networks to be built programmatically in Rust without ONNX. - Tiny network example: New example (
examples/tiny_network.rs) demonstrating creation of a ReLU-based network from scratch.
- Overhauled FFI Layer: Migrated from manual bindgen headers to an autocxx-based architecture. This automates safe C++ interop for the core TensorRT-RTX API and significantly reduces unsafe boilerplate, while utilizing a specialized C++ shim only for complex virtual method handling (e.g., Loggers).
- CUDA bindings: Integrated the cudarc crate for CUDA memory management and device synchronization.
- Improved mock mode: Overhauled mock implementations to provide stubbed types (e.g., Dims64, nvinfer1::DataType) allowing full compilation on macOS/CI without TensorRT or NVIDIA GPUs.
- Environment discovery: Improved
build.rsto more reliably findTENSORRT_RTX_DIRandCUDA_ROOTacross Windows and Linux.
- Network Definition Interface: Exposed the core TensorRT network building API, enabling the construction of custom graph topologies (inputs, layers, and outputs) directly from Rust.
- CUDA Integration: Migrated CUDA memory and stream management to cudarc to align with modern Rust GPU tooling.
- Improved Portability: Expanded the mock mode to include stubbed TensorRT types, allowing the library to be compiled non-NVIDIA platforms (e.g., macOS).