22name = " usls"
33edition = " 2021"
44version = " 0.2.0-alpha.1"
5- rust-version = " 1.87 "
5+ rust-version = " 1.88 "
66description = " A Rust library integrated with ONNXRuntime, providing a collection of ML models."
77repository = " https://github.com/jamjamjon/usls"
88authors = [" Jamjamjon <xxyydzml@outlook.com>" ]
@@ -19,7 +19,7 @@ image = { version = "0.25", default-features = false, features = [
1919] }
2020imageproc = { version = " 0.25" , default-features = false , features = [" rayon" ], optional = true }
2121ab_glyph = { version = " 0.2.32" , optional = true }
22- ndarray = { version = " 0.16.1 " , features = [" rayon" ] }
22+ ndarray = { version = " 0.17 " , features = [" rayon" ] }
2323half = { version = " 2.7.1" , features = [" bytemuck" , " num-traits" ] }
2424indicatif = { version = " 0.18" , default-features = false }
2525tracing = { version = " 0.1" }
@@ -39,8 +39,9 @@ tempfile = { version = "3.23.0" }
3939fast_image_resize = { version = " 5.5.0" , default-features = false , features = [" image" , " rayon" ] }
4040minifb = { version = " 0.28.0" , optional = true }
4141video-rs = { version = " 0.10.5" , features = [" ndarray" ], optional = true }
42- ndarray-npy = { version = " 0.9.1" , optional = true }
43- ort = { version = " =2.0.0-rc.10" , default-features = false , features = [
42+ ndarray-npy = { version = " 0.10" , optional = true }
43+ ort = { version = " =2.0.0-rc.11" , default-features = false , features = [
44+ " tls-rustls" ,
4445 " copy-dylibs" ,
4546 " half" ,
4647 " std" ,
@@ -60,7 +61,6 @@ lru = { version = "0.16.2", default-features = false }
6061clap = { version = " 4.5" , features = [" derive" ] }
6162tracing-subscriber = { version = " 0.3.18" , features = [" env-filter" , " chrono" , " fmt" , " ansi" ] }
6263
63-
6464[profile .dev ]
6565opt-level = 0
6666incremental = true
@@ -78,42 +78,9 @@ strip = true
7878[features ]
7979default = [" ort-download-binaries" , " vision" , " annotator" ]
8080
81- # Video / Stream processing
82- video = [" dep:video-rs" ]
83-
84- # Viewer
85- viewer = [" dep:minifb" ]
86-
87- # Annotator
88- annotator = [" dep:ab_glyph" , " dep:imageproc" ]
89-
90- # Additional image formats (optional for faster compilation)
91- image-gif = [" image/gif" ]
92- image-bmp = [" image/bmp" ]
93- image-ico = [" image/ico" ]
94- image-avif = [" image/avif" ]
95- image-tiff = [" image/tiff" ]
96- image-dds = [" image/dds" ]
97- image-exr = [" image/exr" ]
98- image-ff = [" image/ff" ]
99- image-hdr = [" image/hdr" ]
100- image-pnm = [" image/pnm" ]
101- image-qoi = [" image/qoi" ]
102- image-tga = [" image/tga" ]
103- image-all-formats = [" image/default-formats" ]
104-
105- # Hugging Face hub support (for downloading models from Hugging Face)
106- hf-hub = [" dep:hf-hub" ]
107-
108- # Model Zoo
109- vision = []
110- vlm = [" vision" , " dep:tokenizers" , " dep:ndarray-npy" ]
111- mot = []
112- all-models = [" vision" , " vlm" , " mot" ]
113-
11481# ONNXRuntime loading strategies
11582ort-download-binaries = [" ort/download-binaries" ]
116- ort-load-dynamic = [" ort/load-dynamic" ]
83+ ort-load-dynamic = [" ort/load-dynamic" ]
11784
11885# Cuda features (Internal use)
11986cuda-runtime = [" dep:cudarc" ]
@@ -153,24 +120,6 @@ rocm = ["ort/rocm"]
153120tvm = [" ort/tvm" ]
154121vitis = [" ort/vitis" ]
155122xnnpack = [" ort/xnnpack" ]
156- tensorrt = [" ort/tensorrt" ]
157- tensorrt-full = [" tensorrt" , " cuda-runtime-build" ]
158- tensorrt-cuda-11040 = [" tensorrt" , " cuda-runtime-11040" ]
159- tensorrt-cuda-11050 = [" tensorrt" , " cuda-runtime-11050" ]
160- tensorrt-cuda-11060 = [" tensorrt" , " cuda-runtime-11060" ]
161- tensorrt-cuda-11070 = [" tensorrt" , " cuda-runtime-11070" ]
162- tensorrt-cuda-11080 = [" tensorrt" , " cuda-runtime-11080" ]
163- tensorrt-cuda-12000 = [" tensorrt" , " cuda-runtime-12000" ]
164- tensorrt-cuda-12010 = [" tensorrt" , " cuda-runtime-12010" ]
165- tensorrt-cuda-12020 = [" tensorrt" , " cuda-runtime-12020" ]
166- tensorrt-cuda-12030 = [" tensorrt" , " cuda-runtime-12030" ]
167- tensorrt-cuda-12040 = [" tensorrt" , " cuda-runtime-12040" ]
168- tensorrt-cuda-12050 = [" tensorrt" , " cuda-runtime-12050" ]
169- tensorrt-cuda-12060 = [" tensorrt" , " cuda-runtime-12060" ]
170- tensorrt-cuda-12080 = [" tensorrt" , " cuda-runtime-12080" ]
171- tensorrt-cuda-12090 = [" tensorrt" , " cuda-runtime-12090" ]
172- tensorrt-cuda-13000 = [" tensorrt" , " cuda-runtime-13000" ]
173- tensorrt-cuda-13010 = [" tensorrt" , " cuda-runtime-13010" ]
174123cuda = [" ort/cuda" ]
175124cuda-full = [" cuda" , " cuda-runtime-build" ]
176125cuda-11040 = [" cuda" , " cuda-runtime-11040" ]
@@ -189,6 +138,77 @@ cuda-12080 = ["cuda", "cuda-runtime-12080"]
189138cuda-12090 = [" cuda" , " cuda-runtime-12090" ]
190139cuda-13000 = [" cuda" , " cuda-runtime-13000" ]
191140cuda-13010 = [" cuda" , " cuda-runtime-13010" ]
141+ tensorrt = [" ort/tensorrt" ]
142+ tensorrt-full = [" tensorrt" , " cuda-runtime-build" ]
143+ tensorrt-cuda-11040 = [" tensorrt" , " cuda-runtime-11040" ]
144+ tensorrt-cuda-11050 = [" tensorrt" , " cuda-runtime-11050" ]
145+ tensorrt-cuda-11060 = [" tensorrt" , " cuda-runtime-11060" ]
146+ tensorrt-cuda-11070 = [" tensorrt" , " cuda-runtime-11070" ]
147+ tensorrt-cuda-11080 = [" tensorrt" , " cuda-runtime-11080" ]
148+ tensorrt-cuda-12000 = [" tensorrt" , " cuda-runtime-12000" ]
149+ tensorrt-cuda-12010 = [" tensorrt" , " cuda-runtime-12010" ]
150+ tensorrt-cuda-12020 = [" tensorrt" , " cuda-runtime-12020" ]
151+ tensorrt-cuda-12030 = [" tensorrt" , " cuda-runtime-12030" ]
152+ tensorrt-cuda-12040 = [" tensorrt" , " cuda-runtime-12040" ]
153+ tensorrt-cuda-12050 = [" tensorrt" , " cuda-runtime-12050" ]
154+ tensorrt-cuda-12060 = [" tensorrt" , " cuda-runtime-12060" ]
155+ tensorrt-cuda-12080 = [" tensorrt" , " cuda-runtime-12080" ]
156+ tensorrt-cuda-12090 = [" tensorrt" , " cuda-runtime-12090" ]
157+ tensorrt-cuda-13000 = [" tensorrt" , " cuda-runtime-13000" ]
158+ tensorrt-cuda-13010 = [" tensorrt" , " cuda-runtime-13010" ]
159+ nvrtx = [" ort/nvrtx" ]
160+ nvrtx-full = [" nvrtx" , " cuda-runtime-build" ]
161+ nvrtx-cuda-11040 = [" nvrtx" , " cuda-runtime-11040" ]
162+ nvrtx-cuda-11050 = [" nvrtx" , " cuda-runtime-11050" ]
163+ nvrtx-cuda-11060 = [" nvrtx" , " cuda-runtime-11060" ]
164+ nvrtx-cuda-11070 = [" nvrtx" , " cuda-runtime-11070" ]
165+ nvrtx-cuda-11080 = [" nvrtx" , " cuda-runtime-11080" ]
166+ nvrtx-cuda-12000 = [" nvrtx" , " cuda-runtime-12000" ]
167+ nvrtx-cuda-12010 = [" nvrtx" , " cuda-runtime-12010" ]
168+ nvrtx-cuda-12020 = [" nvrtx" , " cuda-runtime-12020" ]
169+ nvrtx-cuda-12030 = [" nvrtx" , " cuda-runtime-12030" ]
170+ nvrtx-cuda-12040 = [" nvrtx" , " cuda-runtime-12040" ]
171+ nvrtx-cuda-12050 = [" nvrtx" , " cuda-runtime-12050" ]
172+ nvrtx-cuda-12060 = [" nvrtx" , " cuda-runtime-12060" ]
173+ nvrtx-cuda-12080 = [" nvrtx" , " cuda-runtime-12080" ]
174+ nvrtx-cuda-12090 = [" nvrtx" , " cuda-runtime-12090" ]
175+ nvrtx-cuda-13000 = [" nvrtx" , " cuda-runtime-13000" ]
176+ nvrtx-cuda-13010 = [" nvrtx" , " cuda-runtime-13010" ]
177+
178+
179+ # Video / Stream processing
180+ video = [" dep:video-rs" ]
181+
182+ # Viewer
183+ viewer = [" dep:minifb" ]
184+
185+ # Annotator
186+ annotator = [" dep:ab_glyph" , " dep:imageproc" ]
187+
188+ # Additional image formats (optional for faster compilation)
189+ image-gif = [" image/gif" ]
190+ image-bmp = [" image/bmp" ]
191+ image-ico = [" image/ico" ]
192+ image-avif = [" image/avif" ]
193+ image-tiff = [" image/tiff" ]
194+ image-dds = [" image/dds" ]
195+ image-exr = [" image/exr" ]
196+ image-ff = [" image/ff" ]
197+ image-hdr = [" image/hdr" ]
198+ image-pnm = [" image/pnm" ]
199+ image-qoi = [" image/qoi" ]
200+ image-tga = [" image/tga" ]
201+ image-all-formats = [" image/default-formats" ]
202+
203+ # Hugging Face hub support (for downloading models from Hugging Face)
204+ hf-hub = [" dep:hf-hub" ]
205+
206+ # Model Zoo
207+ vision = []
208+ vlm = [" vision" , " dep:tokenizers" , " dep:ndarray-npy" ]
209+ mot = []
210+ all-models = [" vision" , " vlm" , " mot" ]
211+
192212
193213
194214[[example ]]
0 commit comments