diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-06-15 17:31:16 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-06-18 16:57:46 +0200 |
commit | ac817be5fd5756bcd017e41321cf5731cd291c54 (patch) | |
tree | 11d6e77bfe8841d9f0de426e6e7274a9f7f8672b /net-proxy | |
parent | cargo.eclass: Optimize GIT_CRATES check (diff) | |
download | gentoo-ac817be5fd5756bcd017e41321cf5731cd291c54.tar.gz gentoo-ac817be5fd5756bcd017e41321cf5731cd291c54.tar.bz2 gentoo-ac817be5fd5756bcd017e41321cf5731cd291c54.zip |
cargo.eclass: Support separating crate names/versions via `@`
Support specifying crate names and versions separated by `@` character
rather than `-`. Since `@` are not valid in crate names, this
makes splitting the tokens trivial and free of regular expressions.
Effectively, the `@` variant is roughly 180% faster:
```
* CRATES with '@' separator
real 952 it/s
user 952 it/s
* CRATES with '-' separator
real 339 it/s
user 339 it/s
```
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'net-proxy')
0 files changed, 0 insertions, 0 deletions