You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a project that is trying to use the libusb-sys (https://github.com/dcuddeback/libusb-sys) crate on windows, I was trying to override the usb library requirement since windows doesn't have pkg_config. In libusb-sys, the library is specified as:
links="usb-1.0"
I added the following block to my ~/.cargo/config, escaping as recommended by TOML for table names with periods in them:
If a `links` value has a `.` in the name Cargo would previously panic, but this
alters the code to be more principled about lookup in tables to ensure that we
don't misinterpret the names.
Closesrust-lang#2786
Don't re-look-up tables to avoid dots problem
If a `links` value has a `.` in the name Cargo would previously panic, but this
alters the code to be more principled about lookup in tables to ensure that we
don't misinterpret the names.
Closes#2786
In a project that is trying to use the libusb-sys (https://github.com/dcuddeback/libusb-sys) crate on windows, I was trying to override the usb library requirement since windows doesn't have pkg_config. In libusb-sys, the library is specified as:
I added the following block to my ~/.cargo/config, escaping as recommended by TOML for table names with periods in them:
On trying to build, I got the following error and backtrace
It looks like this may be due to how cargo breaks apart TOML table names then reassembles them to find build override commands, around https://github.com/rust-lang/cargo/blob/5a26b65/src/cargo/ops/cargo_compile.rs#L491-L492
The text was updated successfully, but these errors were encountered: