|
|
|
|
|
by Guvante
2374 days ago
|
|
That is why there are two versions available. The default matches the behavior you describe and is the default because for small projects it is the right decision. However sometimes you are a dependency and you want to give up this restriction to gain the ability to add things without having to bump your major version number. By far the most common example is error enums which don't necessarily need all of their downstream crates to handle every error, they likely are bucketing most of them anyway and non_exhaustive ensures they support that. |
|