Re: [gentoo-dev] [PATCH 4/5] cargo.eclass: Support separating crate names/versions via slash

2023-06-16 Thread Sam James
Michał Górny writes: > On Fri, 2023-06-16 at 17:48 +0300, Denis Lisov wrote: >> Hello Michał, >> >> On Fri, Jun 16, 2023 at 3:09 PM Michał Górny wrote: >> > Support specifying crate names and versions separated by forward slashes >> > rather than hyphens. Since slashes are not valid in crate

Re: [gentoo-dev] [PATCH 4/5] cargo.eclass: Support separating crate names/versions via slash

2023-06-16 Thread Michał Górny
On Fri, 2023-06-16 at 17:48 +0300, Denis Lisov wrote: > Hello Michał, > > On Fri, Jun 16, 2023 at 3:09 PM Michał Górny wrote: > > Support specifying crate names and versions separated by forward slashes > > rather than hyphens. Since slashes are not valid in crate names, this > > makes

Re: [gentoo-dev] [PATCH 4/5] cargo.eclass: Support separating crate names/versions via slash

2023-06-16 Thread Denis Lisov
Hello Michał, On Fri, Jun 16, 2023 at 3:09 PM Michał Górny wrote: > Support specifying crate names and versions separated by forward slashes > rather than hyphens. Since slashes are not valid in crate names, this > makes splitting the tokens trivial and free of regular expressions. >

[gentoo-dev] [PATCH 4/5] cargo.eclass: Support separating crate names/versions via slash

2023-06-16 Thread Michał Górny
Support specifying crate names and versions separated by forward slashes rather than hyphens. Since slashes are not valid in crate names, this makes splitting the tokens trivial and free of regular expressions. Effectively, the slash variant is roughly 180% faster: ``` * CRATES with slashes