GuillaumeGomez / rustdoc-stripper

rustdoc-stripper is a tool used to edit/remove rustdoc comments from your code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there reason for `crate-type`?

ignatenkobrain opened this issue · comments

crate-type = ["dylib", "rlib"]

This is in Cargo.toml and I'm working on generator for RPM packages for crates. At this point, we don't allow dynamic / static libraries to be packaged because rust doesn't have stable ABI. My question is why do we need to have this types even specified in toml? Is there some reason behind?

Thanks a lot for understanding!

It's been done quite a long time ago. At the time, you were required to specify which kind of built object you wanted (and you required both for windows if I recall correctly for some forgotten reasons...). I suspect this line being completely useless now.

@GuillaumeGomez thanks for explanation, proposed #49 to remove it.