profile
viewpoint

llogiq/bytecount 132

Counting occurrences of a given byte or UTF-8 characters in a slice of memory – fast

llogiq/compact_arena 68

A crate with indexed arenas with small memory footprint

Geal/mutant 12

Mutation testing for Rust

llogiq/awesome-rust 9

A curated list of awesome Rust code and resources.

Aleph-Alpha/aleph-alpha-tokenizer 4

A rustic language tokenizer library inspired by huggingface's tokenizers

llogiq/arraymap 4

Adds a trait to map functions over arrays

llogiq/bsdiff-rs 4

A Rust BSDiff port

llogiq/arraymapbench 2

A benchmark of various map methods

llogiq/acon-rs 0

ACON parser and encoder

llogiq/advisory-db 0

Security advisory database for Rust crates published through crates.io

PR opened emberian/this-week-in-rust

C/QotW + notable changes
+27 -22

0 comment

1 changed file

pr created time in 11 hours

create barnchllogiq/this-week-in-rust

branch : twir-350

created branch time in 11 hours

delete branch llogiq/this-week-in-rust

delete branch : twir-349

delete time in 11 hours

push eventllogiq/binary_range_search

Andre Bogus

commit sha a6b415d5445cf2c1af35b00927ff425305823a5f

fix Cargo.toml typo

view details

push time in a day

create barnchllogiq/binary_range_search

branch : master

created branch time in 2 days

created repositoryllogiq/binary_range_search

Binary Search in a slice for a range of values

created time in 2 days

push eventllogiq/optional

dependabot-preview[bot]

commit sha 0940aa43100e274a006ef4545db8a989f01507cf

Bump serde_json from 1.0.56 to 1.0.57 Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.56 to 1.0.57. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.56...v1.0.57) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

view details

llogiq

commit sha ba28c70e8e4c31befcf5e8ad7898704f96ecf5c5

Merge pull request #87 from llogiq/dependabot/cargo/serde_json-1.0.57 Bump serde_json from 1.0.56 to 1.0.57

view details

push time in 7 days

PR merged llogiq/optional

Bump serde_json from 1.0.56 to 1.0.57 dependencies

Bumps serde_json from 1.0.56 to 1.0.57. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/serde-rs/json/releases">serde_json's releases</a>.</em></p> <blockquote> <h2>v1.0.57</h2> <ul> <li>Allow serde_json::Deserializer to be instantiated without consuming the serde_json::​de::Read impl (<a href="https://github-redirect.dependabot.com/serde-rs/json/issues/684">#684</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/serde-rs/json/commit/4354fc3eb2232ee0ba9a9a23acce107a980a6dc0"><code>4354fc3</code></a> Release 1.0.57</li> <li><a href="https://github.com/serde-rs/json/commit/a5b1f59df8d0554d05e3b0b5c6d9baf3a9f0a517"><code>a5b1f59</code></a> Clean up rustdoc representation of the &mut R Read impl</li> <li><a href="https://github.com/serde-rs/json/commit/7b86e66c0168a111fc6962a02e67a4ff56cb06d1"><code>7b86e66</code></a> Move Read &mut impl after other Read impls</li> <li><a href="https://github.com/serde-rs/json/commit/a1e006aa874e0e45037aaa29c4784dffb8c4f519"><code>a1e006a</code></a> Merge pull request 684 from tinou98/read-mut</li> <li><a href="https://github.com/serde-rs/json/commit/4003c504c502df61fa60ebc44118c948861132ba"><code>4003c50</code></a> Add Read implementation for &mut Read</li> <li><a href="https://github.com/serde-rs/json/commit/fdc177d9cd2ced46b69aa77003d198e3d9663cf4"><code>fdc177d</code></a> Raise preserve_order required Rust version to 1.32</li> <li><a href="https://github.com/serde-rs/json/commit/b10247881662948201cf6c549e74b253a52350bc"><code>b102478</code></a> Suppress match_like_matches_macro clippy lint</li> <li>See full diff in <a href="https://github.com/serde-rs/json/compare/v1.0.56...v1.0.57">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

</details>

+4 -4

0 comment

2 changed files

dependabot-preview[bot]

pr closed time in 7 days

push eventllogiq/flamer

dependabot-preview[bot]

commit sha f25454d792657fea62a2e28bfd0be47f5019c751

Bump syn from 1.0.34 to 1.0.36 Bumps [syn](https://github.com/dtolnay/syn) from 1.0.34 to 1.0.36. - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/1.0.34...1.0.36) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

view details

llogiq

commit sha 9eeeda8f97263e2468ddd1e179f5c1ba2248f964

Merge pull request #89 from llogiq/dependabot/cargo/syn-1.0.36 Bump syn from 1.0.34 to 1.0.36

view details

push time in 7 days

PR merged llogiq/flamer

Bump syn from 1.0.34 to 1.0.36 dependencies

Bumps syn from 1.0.34 to 1.0.36. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/syn/releases">syn's releases</a>.</em></p> <blockquote> <h2>1.0.36</h2> <ul> <li>Add Lit::span, Lit::set_span (<a href="https://github-redirect.dependabot.com/dtolnay/syn/issues/874">#874</a>)</li> </ul> <h2>1.0.35</h2> <ul> <li>Fix parsing of Expr::Field in non-full mode (<a href="https://github-redirect.dependabot.com/dtolnay/syn/issues/870">#870</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/dtolnay/syn/commit/8b460ba0294625a5b9069ad361cdac5d30689a7d"><code>8b460ba</code></a> Release 1.0.36</li> <li><a href="https://github.com/dtolnay/syn/commit/cfc7c8a42d41e2d29d7131165f5507d4f9eb3af4"><code>cfc7c8a</code></a> Revert "Pin CI to nightly-2020-07-21 to avoid <a href="https://github-redirect.dependabot.com/rust-lang/rust/issues/74614">rust-lang/rust#74614</a>"</li> <li><a href="https://github.com/dtolnay/syn/commit/1b73cc2b607731a8abfd70def3b7b948469d15e4"><code>1b73cc2</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/syn/issues/874">#874</a> from dtolnay/litspan</li> <li><a href="https://github.com/dtolnay/syn/commit/5448714b789139faef98145207f8c5478845f8a0"><code>5448714</code></a> Add Lit::span, Lit::set_span</li> <li><a href="https://github.com/dtolnay/syn/commit/2fa9c2562b04ce0b3026d98256bccda1f70fd0e3"><code>2fa9c25</code></a> Pin CI to nightly-2020-07-21 to avoid <a href="https://github-redirect.dependabot.com/rust-lang/rust/issues/74614">rust-lang/rust#74614</a></li> <li><a href="https://github.com/dtolnay/syn/commit/ba2b69a32471f0ca86981dc4f8ea88b0e9e58da5"><code>ba2b69a</code></a> Release 1.0.35</li> <li><a href="https://github.com/dtolnay/syn/commit/b1147936d43319355b2d8f98d083cdf91b54c87f"><code>b114793</code></a> Fix double parse of dot token in non-full mode</li> <li><a href="https://github.com/dtolnay/syn/commit/ff578f1d52dc90aaa630670b1e2b8cfc73e3eff3"><code>ff578f1</code></a> Remove support note from readme</li> <li><a href="https://github.com/dtolnay/syn/commit/0af800cecb933cb22b162dc9a0f6f58e0f0257c4"><code>0af800c</code></a> Quote no longer requires recursion</li> <li><a href="https://github.com/dtolnay/syn/commit/3721a202977a5119b76dc42c4f6041dc63d8946c"><code>3721a20</code></a> Update test suite to nightly-2020-07-16</li> <li>Additional commits viewable in <a href="https://github.com/dtolnay/syn/compare/1.0.34...1.0.36">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

</details>

+4 -4

0 comment

2 changed files

dependabot-preview[bot]

pr closed time in 7 days

create barnchllogiq/this-week-in-rust

branch : twir-349

created branch time in 7 days

PR opened emberian/this-week-in-rust

C/QotW + notable changes
+22 -34

0 comment

1 changed file

pr created time in 7 days

delete branch llogiq/this-week-in-rust

delete branch : twir-348

delete time in 7 days

push eventllogiq/pdf-extract

Andre Bogus

commit sha 967465342b927c6de8638f7932941d3e518e1a77

fix missing unicode map entries

view details

push time in 13 days

push eventllogiq/pdf-extract

Andre Bogus

commit sha 0aa2bbc170b0b6eaf2743e86d754a3c970fb67c3

fix missing unicode map entries

view details

push time in 13 days

push eventllogiq/pdf-extract

Andre Bogus

commit sha 1751be6fe9dd71929fdbf2668b6acd992efb9ad5

fix missing unicode map entries

view details

push time in 13 days

push eventllogiq/pdf-extract

Andre Bogus

commit sha ad5c042754b2d11583cef9179a3f199fee1b5172

fix missing unicode map entries

view details

push time in 13 days

PR opened emberian/this-week-in-rust

C/QotW + notable changes
+31 -26

0 comment

1 changed file

pr created time in 14 days

delete branch llogiq/this-week-in-rust

delete branch : twir-347

delete time in 14 days

create barnchllogiq/this-week-in-rust

branch : twir-348

created branch time in 14 days

push eventllogiq/pdf-extract

Andre Bogus

commit sha 9a739b36b987ce261341fce2ec2fc87f91fae378

fix missing unicode map entries

view details

push time in 14 days

push eventllogiq/pdf-extract

Andre Bogus

commit sha 902fc372bf5ffd2251fbe5917778c9aeb154ce17

fix missing unicode map entries

view details

push time in 14 days

push eventllogiq/pdf-extract

Andre Bogus

commit sha 6dec3ade0d0720fbcc8717dc8728babd06a23693

fix missing unicode map entries

view details

push time in 14 days

issue commentrust-lang/cargo

Add cargo:rustc-dynamic-link-search for setting LD_LIBRARY_PATH during cargo run/cargo test

I just came upon the exact same problem in a project that uses ndarray-linalg and thus blas-src. Now our tests failed on CI because it wouldn't dynamically load netlib or openblas, whichever we tried. Adding the library paths manually or installing them in /usr/lib would fix the problem, but the former seems like a bit of a hack and the latter may be a problem for deployment later.

Manishearth

comment created time in 15 days

push eventllogiq/pdf-extract

Andre Bogus

commit sha 0374f70362a16feaed000a98cf2c6bcff5fd0fde

fix missing unicode map entries

view details

push time in 16 days

push eventllogiq/pdf-extract

Andre Bogus

commit sha a2aa030ad8f11d769aef3a4a35f608e9109d50ee

fix missing unicode map entries

view details

push time in 16 days

PR opened jrmuizel/pdf-extract

fix missing unicode map entries

We get a panic from the current version on files which appear to miss some character values for German umlauts. (e.g. 252 = ü). This should fix the issue, but frankly I'm unsure if it's the right thing to do.

+8 -1

0 comment

1 changed file

pr created time in 19 days

create barnchllogiq/pdf-extract

branch : missing-unicode

created branch time in 19 days

fork llogiq/pdf-extract

A rust library for extracting content from pdfs

fork in 19 days

push eventllogiq/flamer

dependabot-preview[bot]

commit sha 14cba1c83bd1921ff7cb8692ca539d21ec6979d3

Bump quote from 1.0.4 to 1.0.7 Bumps [quote](https://github.com/dtolnay/quote) from 1.0.4 to 1.0.7. - [Release notes](https://github.com/dtolnay/quote/releases) - [Commits](https://github.com/dtolnay/quote/compare/1.0.4...1.0.7) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

view details

llogiq

commit sha 74dc7c006ae231efc9909ca974bd797a066f8112

Merge pull request #84 from llogiq/dependabot/cargo/quote-1.0.7 Bump quote from 1.0.4 to 1.0.7

view details

push time in 21 days

PR merged llogiq/flamer

Bump quote from 1.0.4 to 1.0.7 dependencies

Bumps quote from 1.0.4 to 1.0.7. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/quote/releases">quote's releases</a>.</em></p> <blockquote> <h2>1.0.7</h2> <ul> <li>Add fast path to improve compile time of generated code when using <code>quote!</code> with the default span (<a href="https://github-redirect.dependabot.com/dtolnay/quote/issues/159">#159</a>)</li> </ul> <h2>1.0.6</h2> <ul> <li>Support <code>Cow</code> used as an ident fragment inside <code>format_ident!</code> (<a href="https://github-redirect.dependabot.com/dtolnay/quote/issues/158">#158</a>, thanks <a href="https://github.com/randomPoison">@randomPoison</a>)</li> </ul> <h2>1.0.5</h2> <ul> <li>Documentation improvements</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/dtolnay/quote/commit/9de44cd86e7feae4abba33c3392a2c37725527f9"><code>9de44cd</code></a> Release 1.0.7</li> <li><a href="https://github.com/dtolnay/quote/commit/c00eda5d49c34dc204d326466cd63a1e62669aa3"><code>c00eda5</code></a> Add quote_spanned smoke test to test suite</li> <li><a href="https://github.com/dtolnay/quote/commit/2f191555c9009320f507e210208fa14b2df4c529"><code>2f19155</code></a> Add rt function for pushing group</li> <li><a href="https://github.com/dtolnay/quote/commit/2ab07d2b8d510f5b6391fb6c51ac552c16b63654"><code>2ab07d2</code></a> Rustfmt does not like blank lines between inner attrs</li> <li><a href="https://github.com/dtolnay/quote/commit/acb1c1b3f63d16ba29fd1b73d951ec3a662acdfd"><code>acb1c1b</code></a> Generate more concise code for empty quote</li> <li><a href="https://github.com/dtolnay/quote/commit/e50913ee82055b102a6881188cba1ef768fe6d32"><code>e50913e</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/quote/issues/159">#159</a> from dtolnay/nospan</li> <li><a href="https://github.com/dtolnay/quote/commit/c1557b179c60c5fa5992023cd97e8ef7b757add5"><code>c1557b1</code></a> Fast path for quote with default span</li> <li><a href="https://github.com/dtolnay/quote/commit/2b24cb1cbfcc76e8dc57c32fa31b033e2c13d8f9"><code>2b24cb1</code></a> Update test suite with proc-macro2 1.0.18</li> <li><a href="https://github.com/dtolnay/quote/commit/d67d687aebbc7d6f1692951a15ffff5cb2c33673"><code>d67d687</code></a> Release 1.0.6</li> <li><a href="https://github.com/dtolnay/quote/commit/d5069f4b513d3713243f930effb35f1f4a22117b"><code>d5069f4</code></a> Touch up PR 158</li> <li>Additional commits viewable in <a href="https://github.com/dtolnay/quote/compare/1.0.4...1.0.7">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

</details>

+5 -5

0 comment

2 changed files

dependabot-preview[bot]

pr closed time in 21 days

pull request commentrust-unofficial/patterns

New idiom: Out of the Box Dynamic Dispatch

Moved the file and rebased. @lambda-fairy r?

llogiq

comment created time in 21 days

push eventllogiq/patterns

Tyler Mandry

commit sha ef9409aa719b43f1187f642471583f2be5877ead

Mention --cap-lints on #[deny(warnings)] page

view details

kellerkindt

commit sha 5ebfc0cdc5e5e98b0174c2ee46ba83b6eb021cee

Show call of default()

view details

Ben

commit sha 9327f4647877d0a5cc68c539b0d79f17f6415691

Add TODOs for module and FFI topics

view details

Ben

commit sha a18cbf48a65c037d6c2b44e410129f5211d22f48

Clarify that a topic is currently stubbed

view details

Chris Wong

commit sha 6234dd0047695023d44f9406c18d1bad5fab85fd

Merge pull request #95 from Ben-PH/TODOs TODO's

view details

Chris Wong

commit sha 5f1d9962c66489b629850ee75567ef766e3a9bd7

Merge pull request #93 from kellerkindt/patch-1 Show call of default()

view details

Chris Wong

commit sha 63b3c6545ece47d0396cdb684dc706ada18bfa35

Merge pull request #85 from tmandry/patch-1 Mention --cap-lints on #[deny(warnings)] page

view details

Andre Bogus

commit sha 399c38ee2b2a3f34ca594bc3c5e5af1d86516168

New idiom: Out of the Box Dynamic Dispatch

view details

push time in 21 days

push eventllogiq/patterns

Andre Bogus

commit sha 093c36100242ed6f45077c46c9b3a45710a7a607

New idiom: Out of the Box Dynamic Dispatch

view details

push time in 21 days

pull request commentrust-unofficial/patterns

New idiom: Out of the Box Dynamic Dispatch

@pickfire I've noted in the "see also" section that Option.as_ref() solves most of the same problem for us.

llogiq

comment created time in 21 days

Pull request review commentrust-unofficial/patterns

New idiom: Out of the Box Dynamic Dispatch

+# On-Stack Dynamic Dispatch

I don't think that will be necessary.

llogiq

comment created time in 21 days

delete branch llogiq/flamer

delete branch : dependabot/cargo/syn-1.0.34

delete time in 21 days

push eventllogiq/flamer

dependabot-preview[bot]

commit sha f33442426dfc39f6aecddf5c1b1d5c26d1bc0dba

Bump syn from 1.0.20 to 1.0.34 Bumps [syn](https://github.com/dtolnay/syn) from 1.0.20 to 1.0.34. - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/1.0.20...1.0.34) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

view details

llogiq

commit sha 7d6cb46254f0e7ae5aa3d4f6cf70472fb80b9029

Merge pull request #87 from llogiq/dependabot/cargo/syn-1.0.34 Bump syn from 1.0.20 to 1.0.34

view details

push time in 21 days

PR merged llogiq/flamer

Bump syn from 1.0.20 to 1.0.34 dependencies

Bumps syn from 1.0.20 to 1.0.34. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/syn/releases">syn's releases</a>.</em></p> <blockquote> <h2>1.0.33</h2> <ul> <li>Parse <code>tuple.0.0</code> as an indexing expression (<a href="https://github-redirect.dependabot.com/rust-lang/rust/pull/71322">rust-lang/rust#71322</a>)</li> <li>Add <code>Parse</code> impls for optional of proc-macro2 types: <code>Option<TokenTree></code>, <code>Option<Punct></code>, <code>Option<Literal></code>, <code>Option<Group></code></li> </ul> <h2>1.0.32</h2> <ul> <li>Fix parsing $:item macro_rules metavariables containing outer attributes (<a href="https://github-redirect.dependabot.com/dtolnay/syn/issues/852">#852</a>)</li> </ul> <h2>1.0.31</h2> <ul> <li> <p>Add <a href="https://docs.rs/syn/1.0.31/syn/enum.Expr.html#method.parse_without_eager_brace"><code>Expr::parse_without_eager_brace</code></a> to parse expressions in ambiguous syntactic position.</p> <p>Rust grammar has an ambiguity where braces sometimes turn a path expression into a struct initialization and sometimes do not. In the following code, the expression <code>S {}</code> is one expression. Presumably there is an empty struct <code>struct S {}</code> defined somewhere which it is instantiating.</p> <pre lang="rust"><code>let _ = S {}; <p>// parsed by rustc as: <code>(S {})</code> </code></pre></p> <p>We would want to parse the above using <code>Expr::parse</code> after the <code>=</code> token.</p> <p>But in the following, <code>S {}</code> is <em>not</em> a struct init expression.</p> <pre lang="rust"><code>if *S {} {} <p>// parsed by rustc as: // // if (<em>S) { // /</em> empty block <em>/ // } // { // /</em> another empty block */ // } </code></pre></p> <p>For that reason we would want to parse if-conditions using <code>Expr::parse_without_eager_brace</code> after the <code>if</code> token. Same for similar syntactic positions such as the condition expr after a <code>while</code> token or the expr at the top of a <code>match</code>.</p> <p>The Rust grammar's choices around which way this ambiguity is resolved at various syntactic positions is fairly arbitrary. Really either parse behavior could work in most positions, and language designers just decide each case based on which is more likely to be what the programmer had in mind most of the time.</p> <pre lang="rust"><code>if return S {} {} <p>// parsed by rustc as: // // if (return (S {})) { // } // // but could equally well have been this other arbitrary choice: // // if (return S) { </code></pre></p> </li> </ul> <!-- raw HTML omitted --> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/dtolnay/syn/commit/2f88d8fc7f038024e9f5e6779f6c5c953090ae9f"><code>2f88d8f</code></a> Release 1.0.34</li> <li><a href="https://github.com/dtolnay/syn/commit/4913b10addc2d2243e4abb916317993bf8c117bd"><code>4913b10</code></a> Add example expansion to parse_macro_input documentation</li> <li><a href="https://github.com/dtolnay/syn/commit/d5bdf68749ee3338397496ed21937e07bd2d63cb"><code>d5bdf68</code></a> Update test suite to nightly-2020-07-11</li> <li><a href="https://github.com/dtolnay/syn/commit/5d540a2dd044a4d24c7c60546606235a7f78e3e2"><code>5d540a2</code></a> Update test suite to nightly-2020-06-27</li> <li><a href="https://github.com/dtolnay/syn/commit/f3f73c7cd6403028baf1e6f8020e795b08fbc902"><code>f3f73c7</code></a> Merge pull request 859 from aaronabramov/patch-1</li> <li><a href="https://github.com/dtolnay/syn/commit/fb2597cfcacf72e6ca1c71cef92256ddcf17acfa"><code>fb2597c</code></a> Add <code>extra-traits</code> feature docs in file.rs</li> <li><a href="https://github.com/dtolnay/syn/commit/ab00f4841e5cdd463891fd4612cf1230bd69f613"><code>ab00f48</code></a> Release 1.0.33</li> <li><a href="https://github.com/dtolnay/syn/commit/575e43ab682a1e78eaa36d26173564cea4a81e3e"><code>575e43a</code></a> Optimize token peek impls</li> <li><a href="https://github.com/dtolnay/syn/commit/ab9eb76f4f87fd764d4b03fc87727bf07c21b1db"><code>ab9eb76</code></a> Add Parse impls for Option of individual token</li> <li><a href="https://github.com/dtolnay/syn/commit/1dc916f664905214dc06fcd0fed5980f9f828c16"><code>1dc916f</code></a> Swap impl_token macro args</li> <li>Additional commits viewable in <a href="https://github.com/dtolnay/syn/compare/1.0.20...1.0.34">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

</details>

+8 -8

0 comment

2 changed files

dependabot-preview[bot]

pr closed time in 21 days

PR opened emberian/this-week-in-rust

C/QotW & notable changes
+27 -47

0 comment

1 changed file

pr created time in 21 days

delete branch llogiq/this-week-in-rust

delete branch : twir-346

delete time in 21 days

create barnchllogiq/this-week-in-rust

branch : twir-347

created branch time in 21 days

delete branch Aleph-Alpha/aleph-alpha-tokenizer

delete branch : 0.3.1

delete time in 23 days

push eventAleph-Alpha/aleph-alpha-tokenizer

Andre Bogus

commit sha 0d6e983fda80810e241ab42ddf06909f8ee29b7d

version 0.3.1 This version adds a `TokenID` implementation for `f32`. It also fixes a bug where non-ascii spaces would lead to an index within a character.

view details

llogiq

commit sha e6dc15ff0243b747dfad9e181badd166085c937f

Merge pull request #3 from Aleph-Alpha/0.3.1 version 0.3.1

view details

push time in 23 days

PR merged Aleph-Alpha/aleph-alpha-tokenizer

version 0.3.1

This version adds a TokenID implementation for f32.

It also fixes a bug where non-ascii spaces would lead to an index within a character.

+30 -50

0 comment

2 changed files

llogiq

pr closed time in 23 days

push eventAleph-Alpha/aleph-alpha-tokenizer

Andre Bogus

commit sha 0d6e983fda80810e241ab42ddf06909f8ee29b7d

version 0.3.1 This version adds a `TokenID` implementation for `f32`. It also fixes a bug where non-ascii spaces would lead to an index within a character.

view details

push time in 23 days

PR opened Aleph-Alpha/aleph-alpha-tokenizer

version 0.3.1

This version adds a TokenID implementation for f32.

It also fixes a bug where non-ascii spaces would lead to an index within a character.

+48 -50

0 comment

2 changed files

pr created time in 23 days

pull request commentrust-unofficial/patterns

New idiom: Out of the Box Dynamic Dispatch

@lambda-fairy @Manishearth anyone?

llogiq

comment created time in a month

PR opened emberian/this-week-in-rust

C/QotW + notable changes
+47 -76

0 comment

1 changed file

pr created time in a month

delete branch llogiq/this-week-in-rust

delete branch : twir-345

delete time in a month

create barnchllogiq/this-week-in-rust

branch : twir-346

created branch time in a month

push eventllogiq/optional

dependabot-preview[bot]

commit sha ef7d846d62e6b84b594834f408842a45e2b3975f

Bump serde_json from 1.0.54 to 1.0.56 Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.54 to 1.0.56. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.54...v1.0.56) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

view details

llogiq

commit sha edf854f64c10c811bf281549e6327916f83be149

Merge pull request #86 from llogiq/dependabot/cargo/serde_json-1.0.56 Bump serde_json from 1.0.54 to 1.0.56

view details

push time in a month

PR merged llogiq/optional

Bump serde_json from 1.0.54 to 1.0.56 dependencies

Bumps serde_json from 1.0.54 to 1.0.56. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/serde-rs/json/releases">serde_json's releases</a>.</em></p> <blockquote> <h2>v1.0.56</h2> <ul> <li>Improve compiler diagnostic on missing commas inside <code>json!</code> macro invocation (<a href="https://github-redirect.dependabot.com/rust-lang/rust/issues/73777">rust-lang/rust#73777</a>)</li> </ul> <h2>v1.0.55</h2> <ul> <li>Fix missing build script required for using <code>float_roundtrip</code> (<a href="https://github.com/serde-rs/json/releases/tag/v1.0.54">https://github.com/serde-rs/json/releases/tag/v1.0.54</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/serde-rs/json/commit/ae8d93d8f3808411ff426940124e821a784854c4"><code>ae8d93d</code></a> Release 1.0.56</li> <li><a href="https://github.com/serde-rs/json/commit/2f39790daf4f659432b230d5a155a875965929a1"><code>2f39790</code></a> Adjust wording of 'Using derive' link</li> <li><a href="https://github.com/serde-rs/json/commit/53ddaf9f7e673cce407106dc21db25d7a8123e64"><code>53ddaf9</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/serde-rs/json/issues/685">#685</a> from rimutaka/master</li> <li><a href="https://github.com/serde-rs/json/commit/fcddb9a41cbeda18448052de4dd7e29a5be1785a"><code>fcddb9a</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/serde-rs/json/issues/688">#688</a> from dtolnay/missingcomma</li> <li><a href="https://github.com/serde-rs/json/commit/9357569b1c56b12025c83f4840805bcbc678becd"><code>9357569</code></a> Trigger missing comma rustc suggestion</li> <li><a href="https://github.com/serde-rs/json/commit/0443daa488427c09ad38f76618f45178df245bde"><code>0443daa</code></a> Prevent type ascription misdiagnosis</li> <li><a href="https://github.com/serde-rs/json/commit/4a948df6f6bdefe561bed320b02ffa0a63a3e749"><code>4a948df</code></a> Add ui test of missing comma between object entries</li> <li><a href="https://github.com/serde-rs/json/commit/8daa85b9087f73170c97eadb3d46a07087552f27"><code>8daa85b</code></a> Linked ReadMe to Using Derive page.</li> <li><a href="https://github.com/serde-rs/json/commit/631ce805fbf56adf2f4347e9740f28c3f4002d95"><code>631ce80</code></a> Ignore unnested_or_patterns suggesting unstable code</li> <li><a href="https://github.com/serde-rs/json/commit/3aae67892485dc258a2335b829baddb77b29aa9d"><code>3aae678</code></a> Release 1.0.55</li> <li>Additional commits viewable in <a href="https://github.com/serde-rs/json/compare/v1.0.54...v1.0.56">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

</details>

+4 -4

0 comment

2 changed files

dependabot-preview[bot]

pr closed time in a month

push eventllogiq/optional

dependabot-preview[bot]

commit sha 92d46cf0587c453e429e6b3252974f37a17b0dff

Bump serde from 1.0.110 to 1.0.114 Bumps [serde](https://github.com/serde-rs/serde) from 1.0.110 to 1.0.114. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.114) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

view details

llogiq

commit sha 74fc7763771380cb3aca4cab545d59a6cfc4d21a

Merge pull request #85 from llogiq/dependabot/cargo/serde-1.0.114 Bump serde from 1.0.110 to 1.0.114

view details

push time in a month

PR merged llogiq/optional

Bump serde from 1.0.110 to 1.0.114 dependencies

Bumps serde from 1.0.110 to 1.0.114. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/serde-rs/serde/releases">serde's releases</a>.</em></p> <blockquote> <h2>v1.0.114</h2> <ul> <li>Improve <code>packed</code> repr matching to support deriving Serialize for structs having <code>repr(C, packed)</code> (<a href="https://github-redirect.dependabot.com/serde-rs/serde/issues/1813">#1813</a>, thanks <a href="https://github.com/TannerRogalsky">@TannerRogalsky</a>)</li> </ul> <h2>v1.0.113</h2> <ul> <li>Improve diagnostic when a serde trait is not implemented (<a href="https://github-redirect.dependabot.com/serde-rs/serde/issues/1827">#1827</a>, thanks <a href="https://github.com/taiki-e">@taiki-e</a>)</li> </ul> <h2>v1.0.112</h2> <ul> <li>Support <code>serde(flatten)</code> on map types where the Serializer only works with serialize_entry (<a href="https://github-redirect.dependabot.com/serde-rs/serde/issues/1837">#1837</a>)</li> </ul> <h2>v1.0.111</h2> <ul> <li>Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of <code>#[derive(Deserialize)] struct S<'a> { field: $field }</code> (<a href="https://github-redirect.dependabot.com/serde-rs/serde/issues/1821">#1821</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/serde-rs/serde/commit/9c6f0c3a0e1347e4b18d71b40e8873b229b47255"><code>9c6f0c3</code></a> Release 1.0.114</li> <li><a href="https://github.com/serde-rs/serde/commit/a9f8ea0a1e8ba1206f8c28d96b924606847b85a9"><code>a9f8ea0</code></a> Simplify search for packed repr attr</li> <li><a href="https://github.com/serde-rs/serde/commit/04faac962a706ee3785fa6d02705f393c64bd762"><code>04faac9</code></a> Remove error_on_line_overflow rustfmt setting</li> <li><a href="https://github.com/serde-rs/serde/commit/7e5701ad2bdd4a9408e0ba2b2428b64559424c3d"><code>7e5701a</code></a> add alignment specific packed repr tests</li> <li><a href="https://github.com/serde-rs/serde/commit/1cd10a7d09b04fda63e1224b222b9ebe40631602"><code>1cd10a7</code></a> Improved packed repr matching.</li> <li><a href="https://github.com/serde-rs/serde/commit/d5e6436b287eb1b9f97a8b49e90458a6c2a3605a"><code>d5e6436</code></a> Add tests validating Serialize derivation for packed structs.</li> <li><a href="https://github.com/serde-rs/serde/commit/8ff11dc234ae1198ae9156a1c47011fbb16b4808"><code>8ff11dc</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/serde-rs/serde/issues/1841">#1841</a> from dtolnay/lenhint</li> <li><a href="https://github.com/serde-rs/serde/commit/6b3777b6170bf6ead1cbc60ad108f0a2588fba2e"><code>6b3777b</code></a> Remove len hint specialization</li> <li><a href="https://github.com/serde-rs/serde/commit/7350b58f5cfca07b87ef24ae5e553c92f7377931"><code>7350b58</code></a> Release 1.0.113</li> <li><a href="https://github.com/serde-rs/serde/commit/7351e0e55aaa3e77626d5fea6d85373c14a6b67a"><code>7351e0e</code></a> Link to feature announcements where available</li> <li>Additional commits viewable in <a href="https://github.com/serde-rs/serde/compare/v1.0.110...v1.0.114">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

</details>

+5 -5

0 comment

2 changed files

dependabot-preview[bot]

pr closed time in a month

issue openedbheisler/cargo-criterion

Building benchmarks with external libraries

For example, Cargo.toml:

[package]
name = "tchbench"
version = "0.1.0"
authors = ["Andre Bogus <andre.bogus@aleph-alpha.de>"]
edition = "2018"

[dependencies]
tch = "0.1.7"
criterion = "0.3.2"

[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false

And benches/bench.rs:

use criterion::{black_box, criterion_group, criterion_main, Criterion};
use tch::Tensor;

fn bench_norm(c: &mut Criterion) {
    let t = &Tensor::of_slice(&[0_f32, 0.1f32, 0.5f32, 0.9f32]);
    c.bench_function("norm", |b| b.iter(|| black_box(t).norm()));
}

criterion_group! {
    name = benches;
    config = Criterion::default().sample_size(10);
    targets = bench_norm
}

criterion_main!(benches);

Running with cargo bench works, whereas running with cargo criterion fails with

/path/to/bench/target/release/deps/bench-6d8fcb9c538c7b9c: error while loading shared libraries: libtorch_cpu.so: cannot open shared object file: No such file or directory
Error: Non-Criterion.rs benchmark target bench exited with error code Some(127)

created time in a month

PR opened emberian/this-week-in-rust

C/QotW and notable changes
+76 -65

0 comment

1 changed file

pr created time in a month

delete branch llogiq/this-week-in-rust

delete branch : twir-344

delete time in a month

create barnchllogiq/this-week-in-rust

branch : twir-345

created branch time in a month

issue commentrust-lang/regex

Matches: `skip_bytes` or `skip_until` method

Let's say I write an iterator that want to find certain things outside of the regions that a Matches returns. There is also another token that when found will invalidate all the Match results until a third token is found (I cannot go into too many details, but let's imagine we're finding quotes and then don't care what they contain).

Then on finding the start token, we want to update the Matches position to the next item after the end token. For now I do it like this:

while match_start < next_token {
      match = matches.next();
      if let Some(m) = match {
             match_start = m.start();
      } else {
             break;
      }
}

As far as I'm aware, none of PCRE, RE2, Oniguruma, Perl or python regexes have anything similar. I could alternatively construct a new Matcher with the reduced substring, but that would require me to keep track of the start position and possibly incur other overhead.

llogiq

comment created time in a month

issue openedrust-lang/regex

Matches: `skip_bytes` or `skip_until` method

If I want to ignore matches in a certain region of my text, I currently need to loop until .next() returns None or the .start() of the returned Match is outside the region. I believe that the regex crate could include a faster implementation of that operation that text-processing code could benefit from.

created time in a month

PR opened emberian/this-week-in-rust

C/QotW + notable changes
+65 -62

0 comment

1 changed file

pr created time in a month

push eventllogiq/this-week-in-rust

Andre Bogus

commit sha 80d0ef34a2bd50801db6416f2257f8c292ec873f

C/QotW + notable changes

view details

push time in a month

delete branch llogiq/this-week-in-rust

delete branch : twir-343

delete time in a month

create barnchllogiq/this-week-in-rust

branch : twir-344

created branch time in a month

pull request commentrust-unofficial/patterns

New idiom: Out of the Box Dynamic Dispatch

It's been a while since there was any movement on this. Is there something I should do or is this good to merge?

llogiq

comment created time in a month

delete branch Aleph-Alpha/aleph-alpha-tokenizer

delete branch : 0.3.0

delete time in 2 months

push eventAleph-Alpha/aleph-alpha-tokenizer

Andre Bogus

commit sha 80b07179f5cdb2366bfb2708c24091534bc901b2

version 0.3.0 * fix a typo in the unknown token string representation * offsets returned from the `Model` are now character-, not byte-based * add a fuzz test * fix benchmark run without `huggingface` feature * updated benchmark numbers * update the optional `tokenizers` dependency to 0.10.1 * added CHANGELOG.md

view details

llogiq

commit sha ee1c7dda5e2fca0649ca96ea66d9ee5904a70925

Merge pull request #2 from Aleph-Alpha/0.3.0 version 0.3.0

view details

push time in 2 months

PR merged Aleph-Alpha/aleph-alpha-tokenizer

version 0.3.0
  • fix a typo in the unknown token string representation
  • offsets returned from the Model are now character-, not byte-based
  • add a fuzz test
  • fix benchmark run without huggingface feature
  • updated benchmark numbers
  • update the optional tokenizers dependency to 0.10.1
  • added CHANGELOG.md
+140 -40

0 comment

8 changed files

llogiq

pr closed time in 2 months

PR opened Aleph-Alpha/aleph-alpha-tokenizer

version 0.3.0
  • fix a typo in the unknown token string representation
  • offsets returned from the Model are now character-, not byte-based
  • add a fuzz test
  • fix benchmark run without huggingface feature
  • updated benchmark numbers
  • update the optional tokenizers dependency to 0.10.1
  • added CHANGELOG.md
+140 -40

0 comment

8 changed files

pr created time in 2 months

create barnchAleph-Alpha/aleph-alpha-tokenizer

branch : 0.3.0

created branch time in 2 months

PR opened emberian/this-week-in-rust

C/QotW + notable changes
+56 -27

0 comment

1 changed file

pr created time in 2 months

create barnchllogiq/this-week-in-rust

branch : twir-343

created branch time in 2 months

PR opened emberian/this-week-in-rust

C/QotW + notable changes
+31 -34

0 comment

1 changed file

pr created time in 2 months

push eventllogiq/optional

dependabot-preview[bot]

commit sha b1c5f0f48317579b02b34214c5a6d4d6f0125a22

Bump serde_json from 1.0.52 to 1.0.54 Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.52 to 1.0.54. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.52...v1.0.54) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

view details

llogiq

commit sha 15cf0a8d4cf9a398797cd4fd49e628264f50cc5f

Merge pull request #82 from llogiq/dependabot/cargo/serde_json-1.0.54 Bump serde_json from 1.0.52 to 1.0.54

view details

push time in 2 months

PR merged llogiq/optional

Bump serde_json from 1.0.52 to 1.0.54 dependencies

Bumps serde_json from 1.0.52 to 1.0.54. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/serde-rs/json/releases">serde_json's releases</a>.</em></p> <blockquote> <h2>v1.0.54</h2> <ul> <li> <p>Add <a href="https://github.com/serde-rs/json/blob/v1.0.54/Cargo.toml#L58-L65"><code>float_roundtrip</code></a> feature to enable a slower but higher precision float parser based on <a href="https://github.com/Alexhuszagh/rust-lexical">lexical</a>.</p> <p>Enabling <code>float_roundtrip</code> will use sufficient precision when parsing fixed precision floats from JSON to ensure that they maintain accuracy when round-tripped through JSON. This comes at an approximately 2x performance cost for parsing floats compared to the default best-effort precision.</p> <p>Unlike <code>arbitrary_precision</code>, the new <code>float_roundtrip</code> feature makes f64 -> JSON -> f64 produce output identical to the input. <code>arbitrary_precision</code> is for making JSON -> serde_json::Number -> JSON produce output identical to the input.</p> <pre lang="toml"><code>serde_json = { version = "1.0.54", features = ["float_roundtrip"] } </code></pre> </li> </ul> <h2>v1.0.53</h2> <ul> <li>Reduce unhelpful indentation in the {:#?} format of serde_json::Value</li> <li>Remove some unnecessary runtime checks from Serializer::collect_str</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/serde-rs/json/commit/310c55cf6d9b7cd4fb6f71f398ea896f5f3c9e82"><code>310c55c</code></a> Release 1.0.54</li> <li><a href="https://github.com/serde-rs/json/commit/3d8b046d0247da886a60de0d1b1aa8ba1524cfe5"><code>3d8b046</code></a> Exclude single_precision flag unless needed</li> <li><a href="https://github.com/serde-rs/json/commit/2e8a58bbff117adb023cbc3340ca765536216e59"><code>2e8a58b</code></a> Exclude lexical code when built without float_roundtrip</li> <li><a href="https://github.com/serde-rs/json/commit/07bbec9508059aa7c9ca04803620b9580f65fe39"><code>07bbec9</code></a> Extend CI with more feature combinations</li> <li><a href="https://github.com/serde-rs/json/commit/43598d82f4c851ceb36a2441cb5e6f44b453c252"><code>43598d8</code></a> Gate some tests behind float_roundtrip feature</li> <li><a href="https://github.com/serde-rs/json/commit/9e7680a5c2f4cdb95ede6c142f5477822b50b1e8"><code>9e7680a</code></a> Wire up non-float_roundtrip parsing in long number case</li> <li><a href="https://github.com/serde-rs/json/commit/b8d4153cc00c95574e598810e30fac6f2a683fe8"><code>b8d4153</code></a> Restore best-effort float parse codepath</li> <li><a href="https://github.com/serde-rs/json/commit/3ae24a5f743700a3dff02abdca34995f4d9cb6be"><code>3ae24a5</code></a> Contrast float_roundtrip and arbitrary_precision</li> <li><a href="https://github.com/serde-rs/json/commit/7e5a529c1217da1820a5c1fcc070a623d869f545"><code>7e5a529</code></a> Call out performance cost of float_roundtrip</li> <li><a href="https://github.com/serde-rs/json/commit/91ac26a692b9d8057bdc795085a21e83e36f8c13"><code>91ac26a</code></a> Introduce float_roundtrip cargo cfg</li> <li>Additional commits viewable in <a href="https://github.com/serde-rs/json/compare/v1.0.52...v1.0.54">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

</details>

+4 -4

0 comment

2 changed files

dependabot-preview[bot]

pr closed time in 2 months

delete branch llogiq/this-week-in-rust

delete branch : twir-341

delete time in 2 months

create barnchllogiq/this-week-in-rust

branch : twir-342

created branch time in 2 months

PR opened emberian/this-week-in-rust

C/QotW + notable changes
+37 -44

0 comment

1 changed file

pr created time in 2 months

create barnchllogiq/this-week-in-rust

branch : twir-341

created branch time in 2 months

delete branch llogiq/this-week-in-rust

delete branch : twir-340

delete time in 2 months

pull request commentllogiq/llogiq.github.io

fix typo: treat -> trait

"can have a little ... as a treat" is a meme.

christiantakle

comment created time in 2 months

push eventllogiq/llogiq.github.io

Andre Bogus

commit sha 9430301e8c095049a6d6dc031ecb9ab0e291f077

fix typo and link

view details

push time in 2 months

push eventllogiq/llogiq.github.io

Andre Bogus

commit sha dc8e9642f97cdde502f3ab36bbbde64bc8a92012

fix title

view details

push time in 2 months

push eventllogiq/llogiq.github.io

Andre Bogus

commit sha b82898218c89c26ade43af3d6611273c4341efff

new post

view details

push time in 2 months

pull request commentrust-lang/rust-clippy

check for misplaced headers in missing_safety/error_doc

Yeah, not duplicating this would be nice. However, we don't need to unindent here, just check if there's an unindented header, so our code can do less.

llogiq

comment created time in 2 months

PR opened rust-lang/rust-clippy

check for misplaced headers in missing_safety/error_doc

This fixes #5593.

changelog: none

+47 -3

0 comment

3 changed files

pr created time in 2 months

create barnchrust-lang/rust-clippy

branch : fix-5593

created branch time in 2 months

issue commentrust-lang/rust-clippy

needless_doctest_main reports wrong line if there are imports

(fix was wrongly marked closed by github)

matthiaskrgr

comment created time in 2 months

issue closedrust-lang/rust-clippy

needless_doctest_main reports wrong line if there are imports

/// # Examples
///
/// ```
/// use std::path::PathBuf;
/// use std::vec;
///
/// fn main() {
/// }
///
/// ```

fn main() {
    println!("Hello, world!");
}

It looks like the lint assumes the fn main() will always be in the first line of the code block..?

warning: needless `fn main` in doctest
 --> src/main.rs:4:4
  |
4 | /// use std::path::PathBuf;
  |    ^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(clippy::needless_doctest_main)]` on by default

This causes strange looking warnings.

clippy 0.0.212 (fc5d0cc 2020-02-24)

closed time in 2 months

matthiaskrgr

issue openedXAMPPRocky/octocrab

Search Pull Requests

The github page allows searching pull requests by organization (see for example the weekly PRs link in this week in rust).

This allows a more fine grained query (as opposed to getting all queries and filtering them after the fact) and may help conserve bandwidth. It does need an authenticated user, though, as far as I know.

created time in 2 months

issue commentrust-lang/rust-clippy

Add lint on `&[char]`

As a counterpoint, sometimes using [char] is the way to go when interfacing with scripting languages, though.

SoniEx2

comment created time in 2 months

PR opened emberian/this-week-in-rust

C/QotW + notable changes
+41 -22

0 comment

1 changed file

pr created time in 2 months

delete branch llogiq/this-week-in-rust

delete branch : twir-339

delete time in 2 months

create barnchllogiq/this-week-in-rust

branch : twir-340

created branch time in 2 months

push eventllogiq/llogiq.github.io

Andre Bogus

commit sha 503d9cead2041b09d79eb754f561477fc9f22225

link LogRocket blogs

view details

push time in 2 months

issue commentrust-lang/rust-clippy

lint iterator.map(|x| x)

Note that this will apply type adjustments on x where applicable. However, the redundant_closure lint already has a check for adjustments which can be copied to this new lint.

matthiaskrgr

comment created time in 2 months

Pull request review commentrust-lang/rust

Implement total_cmp for f32, f64

 impl f64 {     pub fn from_ne_bytes(bytes: [u8; 8]) -> Self {         Self::from_bits(u64::from_ne_bytes(bytes))     }++    /// Returns an ordering between self and other values.+    /// Unlike the standard partial comparison between floating point numbers,+    /// this comparison always produces an ordering in accordance to+    /// the totalOrder predicate as defined in IEEE 754 (2008 revision)+    /// floating point standard. The values are ordered in following order:+    /// - Negative quiet NaN+    /// - Negative signaling NaN+    /// - Negative infinity+    /// - Negative numbers+    /// - Negative subnormal numbers+    /// - Negative zero+    /// - Positive zero+    /// - Positive subnormal numbers+    /// - Positive numbers+    /// - Positive infinity+    /// - Positive signaling NaN+    /// - Positive quiet NaN+    ///+    /// # Example+    /// ```+    /// #![feature(total_cmp)]+    /// struct GoodBoy {+    ///     name: String,+    ///     weight: f64,+    /// }+    ///+    /// let mut bois = vec![+    ///     GoodBoy { name: "Pucci".to_owned(), weight: 0.1 },+    ///     GoodBoy { name: "Woofer".to_owned(), weight: 99.0 },+    ///     GoodBoy { name: "Yapper".to_owned(), weight: 10.0 },+    ///     GoodBoy { name: "Chonk".to_owned(), weight: f64::INFINITY },+    ///     GoodBoy { name: "Abs. Unit".to_owned(), weight: f64::NAN },+    ///     GoodBoy { name: "Floaty".to_owned(), weight: -5.0 },+    /// ];+    ///+    /// bois.sort_by(|a, b| a.weight.total_cmp(&b.weight));+    /// # assert!(bois.into_iter().map(|b| b.weight)+    /// #     .zip([-5.0, 0.1, 10.0, 99.0, f64::INFINITY, f64::NAN].iter())+    /// #     .all(|(a, b)| a.to_bits() == b.to_bits()))+    /// ```+    #[must_use = "method returns a new number and does not mutate the original value"]+    #[unstable(feature = "total_cmp", issue = "none")]+    #[inline]+    pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {+        let mut left = self.to_bits() as i64;+        let mut right = other.to_bits() as i64;++        // In case of negatives, flip all the bits expect the sign+        // to achieve a similar layout as two's complement integers+        //+        // Why does this work? IEEE 754 floats consist of three fields:+        // Sign bit, exponent and mantissa. The set of exponent and mantissa+        // fields as a whole have the property that their bitwise order is+        // equal to the numeric magnitude where the magnitude is defined.+        // The magnitude is not normally defined on NaN values, but+        // IEEE 754 totalOrder defines the NaN values also to follow the+        // bitwise order. This leads to order explained in the doc comment.+        // However, the representation of magnitude is the same for negative+        // and positive numbers – only the sign bit is different.+        // To easily compare the floats as signed integers, we need to+        // flip the exponent and mantissa bits in case of negative numbers.+        // We effectively convert the numbers to "two's complement" form.+        if left < 0 {

You can get rid of the branches: left ^= (((left >> 63) as u64) >> 1) as i64; (and right similarly).

golddranks

comment created time in 2 months

PR opened emberian/this-week-in-rust

C/QotW + notable changes
+28 -36

0 comment

1 changed file

pr created time in 3 months

delete branch llogiq/this-week-in-rust

delete branch : twir-338

delete time in 3 months

more