2021年3月31日星期三

How to use a crate with a hyphen (-) in the name? [duplicate]

This crate's name is:

name = "rtsp-types"  

How can I use it on my project?

I added to the Cargo.toml:

[dependencies]  rtsp-types = { path = "../rtsp-types" }  

however I can't do

use rtsp-types   

because of the - symbol.

https://stackoverflow.com/questions/66897171/how-to-use-a-crate-with-a-hyphen-in-the-name April 01, 2021 at 09:03AM

没有评论:

发表评论