cargo-nuget icon indicating copy to clipboard operation
cargo-nuget copied to clipboard

Cargo-nuget doesn't deal well with rust libraries/projects with hyphens in the name

Open qdot opened this issue 4 years ago • 1 comments

Just tried this on a rust crate where there's a hyphen in the project name, meaning the library name has to be specified to use an underscore. AFAICT there's no way to specify alternative library names in cargo-nuget, so this caused packing to fail, when the generated library wasn't found because it didn't match the project name.

It'd be nice to have a way to specify alternative library names, even if it's just another CLI arg.

qdot avatar Nov 19 '20 07:11 qdot

Hey @qdot! :wave:

I haven't worked on this project in a while, but this sounds like something we should be handling transparently so that kebab-case crate names are converted into snake_case when we attempt to locate the output.

KodrAus avatar Jan 08 '21 08:01 KodrAus