Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update rust crates #4885

Merged
merged 5 commits into from
Jan 31, 2025
Merged

fix(deps): update rust crates #4885

merged 5 commits into from
Jan 31, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 13, 2025

This PR contains the following updates:

Package Type Update Change
git2 dependencies minor 0.19.0 -> 0.20.0
indicatif dependencies patch 0.17.9 -> 0.17.11
js-sys (source) dependencies patch 0.3.76 -> 0.3.77
prettyplease build-dependencies patch 0.2.25 -> 0.2.29
rand (source) dependencies minor 0.8.5 -> 0.9.0
roaring dependencies patch 0.10.9 -> 0.10.10
similar-asserts dependencies patch 1.6.0 -> 1.6.1
trybuild dev-dependencies patch 1.0.101 -> 1.0.103
wasm-bindgen (source) dependencies patch 0.2.99 -> 0.2.100

Release Notes

rust-lang/git2-rs (git2)

v0.20.0

Compare Source

0.19.0...0.20.0

Added
  • Debug is now implemented for transport::Service
    #​1074
  • Added Repository::commondir
    #​1079
  • Added Repository::merge_base_octopus
    #​1088
  • Restored impls for PartialOrd, Ord, and Hash for bitflags types that were inadvertently removed in a prior release.
    #​1096
  • Added CheckoutBuilder::disable_pathspec_match
    #​1107
  • Added PackBuilder::write
    #​1110
Changed
  • ❗ Updated to libgit2 1.9.0
    #​1111
  • ❗ Removed the ssh_key_from_memory Cargo feature, it was unused.
    #​1087
  • ❗ Errors from Tree::walk are now correctly reported to the caller.
    #​1098
  • ❗ The trace_set callback now takes a &[u8] instead of a &str.
    #​1071
  • Error::last_error now returns Error instead of Option<Error>.
    #​1072
Fixed
  • Fixed OdbReader::read return value.
    #​1061
  • When a credential helper executes a shell command, don't pop open a console window on Windows.
    #​1075
console-rs/indicatif (indicatif)

v0.17.11

Compare Source

What's Changed

v0.17.10

Compare Source

What's Changed

With some great performance improvements from @​jaheba.

dtolnay/prettyplease (prettyplease)

v0.2.29

Compare Source

  • Preserve semicolon on braced statement-position macros (#​103)

v0.2.28

Compare Source

v0.2.27

Compare Source

  • Avoid trailing '.' on non-macro float literals (#​89)

v0.2.26

Compare Source

  • Synthesize parentheses for precedence (#​88)
rust-random/rand (rand)

v0.9.0

Compare Source

Security and unsafe
  • Policy: "rand is not a crypto library" (#​1514)
  • Remove fork-protection from ReseedingRng and ThreadRng. Instead, it is recommended to call ThreadRng::reseed on fork. (#​1379)
  • Use zerocopy to replace some unsafe code (#​1349, #​1393, #​1446, #​1502)
Dependencies
Features
  • Support std feature without getrandom or rand_chacha (#​1354)
  • Enable feature small_rng by default (#​1455)
  • Remove implicit feature rand_chacha; use std_rng instead. (#​1473)
  • Rename feature serde1 to serde (#​1477)
  • Rename feature getrandom to os_rng (#​1537)
  • Add feature thread_rng (#​1547)
API changes: rand_core traits
  • Add fn RngCore::read_adapter implementing std::io::Read (#​1267)
  • Add trait CryptoBlockRng: BlockRngCore; make trait CryptoRng: RngCore (#​1273)
  • Add traits TryRngCore, TryCryptoRng (#​1424, #​1499)
  • Rename fn SeedableRng::from_rng -> try_from_rng and add infallible variant fn from_rng (#​1424)
  • Rename fn SeedableRng::from_entropy -> from_os_rng and add fallible variant fn try_from_os_rng (#​1424)
  • Add bounds Clone and AsRef to associated type SeedableRng::Seed (#​1491)
API changes: Rng trait and top-level fns
  • Rename fn rand::thread_rng() to rand::rng() and remove from the prelude (#​1506)
  • Remove fn rand::random() from the prelude (#​1506)
  • Add top-level fns random_iter, random_range, random_bool, random_ratio, fill (#​1488)
  • Re-introduce fn Rng::gen_iter as random_iter (#​1305, #​1500)
  • Rename fn Rng::gen to random to avoid conflict with the new gen keyword in Rust 2024 (#​1438)
  • Rename fns Rng::gen_range to random_range, gen_bool to random_bool, gen_ratio to random_ratio (#​1505)
  • Annotate panicking methods with #[track_caller] (#​1442, #​1447)
API changes: RNGs
  • Fix <SmallRng as SeedableRng>::Seed size to 256 bits (#​1455)
  • Remove first parameter (rng) of ReseedingRng::new (#​1533)
API changes: Sequences
  • Split trait SliceRandom into IndexedRandom, IndexedMutRandom, SliceRandom (#​1382)
  • Add IndexedRandom::choose_multiple_array, index::sample_array (#​1453, #​1469)
API changes: Distributions: renames
  • Rename module rand::distributions to rand::distr (#​1470)
  • Rename distribution Standard to StandardUniform (#​1526)
  • Move distr::Slice -> distr::slice::Choose, distr::EmptySlice -> distr::slice::Empty (#​1548)
  • Rename trait distr::DistString -> distr::SampleString (#​1548)
  • Rename distr::DistIter -> distr::Iter, distr::DistMap -> distr::Map (#​1548)
API changes: Distributions
  • Relax Sized bound on Distribution<T> for &D (#​1278)
  • Remove impl of Distribution<Option<T>> for StandardUniform (#​1526)
  • Let distribution StandardUniform support all NonZero* types (#​1332)
  • Fns {Uniform, UniformSampler}::{new, new_inclusive} return a Result (instead of potentially panicking) (#​1229)
  • Distribution Uniform implements TryFrom instead of From for ranges (#​1229)
  • Add UniformUsize (#​1487)
  • Remove support for generating isize and usize values with StandardUniform, Uniform (except via UniformUsize) and Fill and usage as a WeightedAliasIndex weight (#​1487)
  • Add impl DistString for distributions Slice<char> and Uniform<char> (#​1315)
  • Add fn Slice::num_choices (#​1402)
  • Add fn p() for distribution Bernoulli to access probability (#​1481)
API changes: Weighted distributions
  • Add pub module rand::distr::weighted, moving WeightedIndex there (#​1548)
  • Add trait weighted::Weight, allowing WeightedIndex to trap overflow (#​1353)
  • Add fns weight, weights, total_weight to distribution WeightedIndex (#​1420)
  • Rename enum WeightedError to weighted::Error, revising variants (#​1382) and mark as #[non_exhaustive] (#​1480)
API changes: SIMD
  • Switch to std::simd, expand SIMD & docs (#​1239)
Reproducibility-breaking changes
  • Make ReseedingRng::reseed discard remaining data from the last block generated (#​1379)
  • Change fn SmallRng::seed_from_u64 implementation (#​1203)
  • Allow UniformFloat::new samples and UniformFloat::sample_single to yield high (#​1462)
  • Fix portability of distribution Slice (#​1469)
  • Make Uniform for usize portable via UniformUsize (#​1487)
  • Fix IndexdRandom::choose_multiple_weighted for very small seeds and optimize for large input length / low memory (#​1530)
Reproducibility-breaking optimisations
  • Optimize fn sample_floyd, affecting output of rand::seq::index::sample and rand::seq::SliceRandom::choose_multiple (#​1277)
  • New, faster algorithms for IteratorRandom::choose and choose_stable (#​1268)
  • New, faster algorithms for SliceRandom::shuffle and partial_shuffle (#​1272)
  • Optimize distribution Uniform: use Canon's method (single sampling) / Lemire's method (distribution sampling) for faster sampling (breaks value stability; #​1287)
  • Optimize fn sample_single_inclusive for floats (+~20% perf) (#​1289)
Other optimisations
  • Improve SmallRng initialization performance (#​1482)
  • Optimise SIMD widening multiply (#​1247)
Other
Documentation
  • Improve ThreadRng related docs (#​1257)
  • Docs: enable experimental --generate-link-to-definition feature (#​1327)
  • Better doc of crate features, use doc_auto_cfg (#​1411, #​1450)
RoaringBitmap/roaring-rs (roaring)

v0.10.10

Compare Source

What's Changed

Full Changelog: RoaringBitmap/roaring-rs@v0.10.9...v0.10.10

mitsuhiko/similar-asserts (similar-asserts)

v1.6.1

Compare Source

  • Maintenance release with some clippy fixes.
dtolnay/trybuild (trybuild)

v1.0.103

Compare Source

  • Fix unindentation of multiline note (#​301)

v1.0.102

Compare Source

  • Detect compilation failure more reliably for filepaths containing .. (#​300)
rustwasm/wasm-bindgen (wasm-bindgen)

v0.2.100

Compare Source

Released 2025-01-12

Added
  • Add attributes to overwrite return (``unchecked_return_type) and parameter types (unchecked_param_type), descriptions (return_descriptionandparam_description) as well as parameter names (js_name`) for exported functions and methods. See the guide for more details.
    #​4394

  • Add a copy_to_uninit() method to all TypedArrays. It takes &mut [MaybeUninit<T>] and returns &mut [T].
    #​4340

  • Add test coverage support for Node.js.
    #​4348

  • Support importing memory and using wasm_bindgen::module() in Node.js.
    #​4349

  • Add --list, --ignored, --exact and --nocapture to wasm-bindgen-test-runner, analogous to cargo test.
    #​4356

  • Add bindings to Date.to_locale_time_string_with_options.
    #​4384

  • #[wasm_bindgen] now correctly applies #[cfg(...)]s in structs.
    #​4351

Changed
  • Optional parameters are now typed as T | undefined | null to reflect the actual JS behavior.
    #​4188

  • Adding getter, setter, and constructor methods to enums now results in a compiler error. This was previously erroneously allowed and resulted in invalid JS code gen.
    #​4278

  • Handle stuck and failed WebDriver processes when re-trying to start them.
    #​4340

  • Align test output closer to native cargo test.
    #​4358

  • Error if URL in <WEBDRIVER>_REMOTE can't be parsed instead of just ignoring it.
    #​4362

  • Remove WASM_BINDGEN_THREADS_MAX_MEMORY and WASM_BINDGEN_THREADS_STACK_SIZE. The maximum memory size can be set via -Clink-arg=--max-memory=<size>. The stack size of a thread can be set when initializing the thread via the default function.
    #​4363

  • console.*() calls in tests are now always intercepted by default. To show them use --nocapture. When shown they are always printed in-place instead of after test results, analogous to cargo test.
    #​4356

Fixed
  • Fixed using JavaScript keyword as identifiers not being handled correctly.
    #​4329

    • Using JS keywords as struct and enum names will now error at compile time, instead of causing invalid JS code gen.
    • Using JS keywords that are not valid to call or access properties on will now error at compile time, instead of causing invalid JS code gen if used as:
      1. The first part of a js_namespace on imports.
      2. The name of an imported type or constant if the type or constant does not have a js_namespace or module attribute.
      3. The name of an imported function if the function is not a method and does not have a js_namespace or module attribute.
    • Using JS keywords on imports in places other than the above will no longer cause the keywords to be escaped as _{keyword}.
  • Fixed passing large arrays into Rust failing because of internal memory allocations invalidating the memory buffer.
    #​4353

  • Pass along an ignore attribute to unsupported tests.
    #​4360

  • Use OS provided temporary directory for tests instead of Cargo's target directory.
    #​4361

  • Error if URL in <WEBDRIVER>_REMOTE can't be parsed.
    #​4362

  • Internal functions are now removed instead of invalidly imported if they are unused.
    #​4366

  • Fixed no_std support for all APIs in web-sys.
    #​4378

  • Prevent generating duplicate exports for closure conversions.
    #​4380



Configuration

📅 Schedule: Branch creation - "before 9am on monday" in timezone Europe/Gibraltar, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@github-actions github-actions bot added A-Linter Area: linter A-Tooling Area: internal tools L-JavaScript Language: JavaScript and super languages labels Jan 13, 2025
Copy link
Contributor

github-actions bot commented Jan 13, 2025

Parser conformance results on

js/262

Test result main count This PR count Difference
Total 50225 50225 0
Passed 48969 48969 0
Failed 1256 1256 0
Panics 0 0 0
Coverage 97.50% 97.50% 0.00%

jsx/babel

Test result main count This PR count Difference
Total 40 40 0
Passed 37 37 0
Failed 3 3 0
Panics 0 0 0
Coverage 92.50% 92.50% 0.00%

symbols/microsoft

Test result main count This PR count Difference
Total 6637 6637 0
Passed 2229 2229 0
Failed 4408 4408 0
Panics 0 0 0
Coverage 33.58% 33.58% 0.00%

ts/babel

Test result main count This PR count Difference
Total 791 791 0
Passed 698 698 0
Failed 93 93 0
Panics 0 0 0
Coverage 88.24% 88.24% 0.00%

ts/microsoft

Test result main count This PR count Difference
Total 18658 18658 0
Passed 14306 14306 0
Failed 4352 4352 0
Panics 0 0 0
Coverage 76.67% 76.67% 0.00%

Copy link

codspeed-hq bot commented Jan 13, 2025

CodSpeed Performance Report

Merging #4885 will not alter performance

Comparing renovate/rust-crates (6800133) with main (c3f21f8)

Summary

✅ 95 untouched benchmarks

@renovate renovate bot force-pushed the renovate/rust-crates branch from 0375782 to 41f11b9 Compare January 19, 2025 16:30
@github-actions github-actions bot added the A-Formatter Area: formatter label Jan 19, 2025
@renovate renovate bot force-pushed the renovate/rust-crates branch from 41f11b9 to e15530e Compare January 20, 2025 01:36
@github-actions github-actions bot added A-CLI Area: CLI A-Diagnostic Area: diagnostocis labels Jan 20, 2025
@renovate renovate bot force-pushed the renovate/rust-crates branch 2 times, most recently from 6c7eab0 to 116fca7 Compare January 27, 2025 14:15
Copy link
Contributor Author

renovate bot commented Jan 27, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path crates/biome_grit_patterns/Cargo.toml --package [email protected] --precise 0.9.0
    Updating crates.io index
error: failed to select a version for the requirement `rand = "^0.8"`
candidate versions found which didn't match: 0.9.0
location searched: crates.io index
required by package `quickcheck v1.0.3`
    ... which satisfies dependency `quickcheck = "^1.0.3"` (locked to 1.0.3) of package `biome_rowan v0.5.7 (/tmp/renovate/repos/github/biomejs/biome/crates/biome_rowan)`
    ... which satisfies path dependency `biome_rowan` (locked to 0.5.7) of package `biome_analyze v0.5.7 (/tmp/renovate/repos/github/biomejs/biome/crates/biome_analyze)`

@github-actions github-actions bot added the L-Grit Language: GritQL label Jan 27, 2025
@renovate renovate bot force-pushed the renovate/rust-crates branch 2 times, most recently from 77375eb to 2c415f8 Compare January 28, 2025 17:10
@renovate renovate bot force-pushed the renovate/rust-crates branch from 2c415f8 to 6bc7695 Compare January 31, 2025 17:20
Copy link
Contributor Author

renovate bot commented Jan 31, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@github-actions github-actions bot removed the L-Grit Language: GritQL label Jan 31, 2025
@github-actions github-actions bot added A-Parser Area: parser L-CSS Language: CSS labels Jan 31, 2025
@github-actions github-actions bot added the L-JSON Language: JSON and super languages label Jan 31, 2025
@ematipico ematipico merged commit 3c11251 into main Jan 31, 2025
4 checks passed
@ematipico ematipico deleted the renovate/rust-crates branch January 31, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CLI Area: CLI A-Diagnostic Area: diagnostocis A-Formatter Area: formatter A-Linter Area: linter A-Parser Area: parser A-Tooling Area: internal tools L-CSS Language: CSS L-JavaScript Language: JavaScript and super languages L-JSON Language: JSON and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant