Quoting [email protected] (2024-10-23 20:28:04) > > SemVer explicitly do not support stability across major releases, which > > implies that no stability is promised about a feature having same API > > across major releases. > > Are you talking about the availability/unavailability of certain features? If > yes, all of debcargo-conf's packages involved in the 2->3 transition depend > on the default feature, so it would be enough to Provide > librust-lazy-regex+default-dev. If not I'd appreciate it if you could > elaborate on > > > Individual packages are still free to not care about SemVer but then need > > to fully admit that by depending on the core crate, without features. > > It may be my inexperience talking, but it is unclear to me how features are > involved here. How does "depending on the core crate, without features" > equate to fully admitting that a package does not care about SemVer (if not > for the availability/unavailability of features)? I don't understand what > features add to this, logically.
a) "lazy-regex v2" represent an API. b) "lazy-regex v2 feature 'default'" represent a subset of a) c) "lazy-regex v3 represents a *different* API. d) "lazy-regex v3 feature 'default'" represents a subset of b) Since a) and c) are different, b) and d) are also different: They are subsets of different APIs. It is normal for a Debian package to provide and depend on API or ABI. It is technically possible to offer or depend on some open-ended ranges of APIs/ABIs, e.g. "the subset called 'default' of any API from v2 to eternity". I am arguing that if the Rust team wants to bind to "whatever API lazy-regex throws at it for any arbitrary major version of the crate", then I will not take part of that nonsense, but also I don't see that I am stopping you from such practice: Simply declare an equally nonsense dependency *without* including feature - e.g. like this: Depends: librust-lazy-regex-dev (>= 2) Hope that helps, - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ * Sponsorship: https://ko-fi.com/drjones [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: signature

