Skip to content

Commit

Permalink
Bump the rust-dependencies group across 1 directory with 6 updates (#…
Browse files Browse the repository at this point in the history
…4061)

* Bump the rust-dependencies group across 1 directory with 6 updates

Bumps the rust-dependencies group with 6 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [indexmap](https://github.com/indexmap-rs/indexmap) | `2.6.0` | `2.7.0` |
| [rustc-hash](https://github.com/rust-lang/rustc-hash) | `2.0.0` | `2.1.0` |
| [time](https://github.com/time-rs/time) | `0.3.36` | `0.3.37` |
| [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) | `0.2.95` | `0.2.97` |
| [wasm-bindgen-test](https://github.com/rustwasm/wasm-bindgen) | `0.3.45` | `0.3.47` |
| [syn](https://github.com/dtolnay/syn) | `2.0.89` | `2.0.90` |



Updates `indexmap` from 2.6.0 to 2.7.0
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md)
- [Commits](indexmap-rs/indexmap@2.6.0...2.7.0)

Updates `rustc-hash` from 2.0.0 to 2.1.0
- [Changelog](https://github.com/rust-lang/rustc-hash/blob/master/CHANGELOG.md)
- [Commits](rust-lang/rustc-hash@v2.0.0...v2.1.0)

Updates `time` from 0.3.36 to 0.3.37
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](time-rs/time@v0.3.36...v0.3.37)

Updates `wasm-bindgen` from 0.2.95 to 0.2.97
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](rustwasm/wasm-bindgen@0.2.95...0.2.97)

Updates `wasm-bindgen-test` from 0.3.45 to 0.3.47
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits)

Updates `syn` from 2.0.89 to 2.0.90
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](dtolnay/syn@2.0.89...2.0.90)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: rustc-hash
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: time
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: wasm-bindgen
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: wasm-bindgen-test
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>

* Remove `time` sondness workarounds for tests

* fix lockfile

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: raskad <[email protected]>
  • Loading branch information
dependabot[bot] and raskad authored Dec 3, 2024
1 parent 3fb646a commit 26681a0
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 73 deletions.
85 changes: 43 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ clap = "4.5.21"
colored = "2.1.0"
fast-float2 = "0.2.3"
hashbrown = "0.15.2"
indexmap = { version = "2.6.0", default-features = false }
indexmap = { version = "2.7.0", default-features = false }
indoc = "2.0.5"
jemallocator = "0.5.4"
num-bigint = "0.4.6"
Expand All @@ -62,13 +62,13 @@ phf = { version = "0.11.2", default-features = false }
pollster = "0.4.0"
regex = "1.11.1"
regress = { version = "0.10.1", features = ["utf16"] }
rustc-hash = { version = "2.0.0", default-features = false }
rustc-hash = { version = "2.1.0", default-features = false }
serde_json = "1.0.133"
serde = "1.0.215"
static_assertions = "1.1.0"
textwrap = "0.16.0"
thin-vec = "0.2.13"
time = { version = "0.3.36", default-features = false, features = ["local-offset", "large-dates", "wasm-bindgen", "parsing", "formatting", "macros"] }
time = { version = "0.3.37", default-features = false, features = ["local-offset", "large-dates", "wasm-bindgen", "parsing", "formatting", "macros"] }
tinystr = "0.7.5"
log = "0.4.22"
simple_logger = "5.0.0"
Expand All @@ -80,17 +80,17 @@ color-eyre = "0.6.3"
comfy-table = "7.1.3"
serde_repr = "0.1.19"
bus = "2.4.1"
wasm-bindgen = { version = "0.2.95", default-features = false }
wasm-bindgen = { version = "0.2.97", default-features = false }
getrandom = { version = "0.2.15", default-features = false }
console_error_panic_hook = "0.1.7"
wasm-bindgen-test = "0.3.45"
wasm-bindgen-test = "0.3.47"
smol = "2.0.2"
futures-util = "0.3.31"
isahc = "1.7.2"
rustyline = { version = "15.0.0", default-features = false }
dhat = "0.3.3"
quote = "1.0.37"
syn = { version = "2.0.89", default-features = false }
syn = { version = "2.0.90", default-features = false }
proc-macro2 = "1.0"
synstructure = "0.13"
measureme = "12.0.0"
Expand Down
9 changes: 1 addition & 8 deletions core/engine/src/builtins/date/tests.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::{js_string, run_test_actions, JsNativeErrorKind, TestAction};
use boa_macros::js_str;
use indoc::indoc;
use time::{macros::format_description, util::local_offset, OffsetDateTime};
use time::{macros::format_description, OffsetDateTime};

// NOTE: Javascript Uses 0-based months, where time uses 1-based months.
// Many of the assertions look wrong because of this.
Expand Down Expand Up @@ -33,13 +33,6 @@ fn from_local(
second: u8,
millisecond: u16,
) -> OffsetDateTime {
// Safety: This is needed during tests because cargo is running tests in multiple threads.
// It is safe because tests do not modify the environment.
#[cfg(test)]
unsafe {
local_offset::set_soundness(local_offset::Soundness::Unsound);
}

let t = time::Date::from_calendar_date(year, month_from_u8(month), date)
.unwrap()
.with_hms_milli(hour, minute, second, millisecond)
Expand Down
10 changes: 0 additions & 10 deletions core/engine/src/context/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ use crate::{
};
use time::{OffsetDateTime, UtcOffset};

#[cfg(test)]
use time::util::local_offset;

/// [`Host Hooks`] customizable by the host code or engine.
///
/// Every hook contains on its `Requirements` section the spec requirements
Expand Down Expand Up @@ -191,13 +188,6 @@ pub trait HostHooks {

/// Returns the offset of the local timezone to the `utc` timezone in seconds.
fn local_timezone_offset_seconds(&self, unix_time_seconds: i64) -> i32 {
// Safety: This is needed during tests because cargo is running tests in multiple threads.
// It is safe because tests do not modify the environment.
#[cfg(test)]
unsafe {
local_offset::set_soundness(local_offset::Soundness::Unsound);
}

OffsetDateTime::from_unix_timestamp(unix_time_seconds)
.ok()
.and_then(|t| UtcOffset::local_offset_at(t).ok())
Expand Down
1 change: 0 additions & 1 deletion tests/tester/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ phf = { workspace = true, features = ["macros"] }
comfy-table.workspace = true
serde_repr.workspace = true
bus.workspace = true
time.workspace = true

[features]
default = ["boa_engine/intl_bundled", "boa_engine/experimental", "boa_engine/annex-b"]
Expand Down
6 changes: 0 additions & 6 deletions tests/tester/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,6 @@ const DEFAULT_TEST262_DIRECTORY: &str = "test262";
fn main() -> Result<()> {
color_eyre::install()?;

// Safety: This is needed because we run tests in multiple threads.
// It is safe because tests do not modify the environment.
unsafe {
time::util::local_offset::set_soundness(time::util::local_offset::Soundness::Unsound);
}

// initializes the monotonic clock.
START
.set(Instant::now())
Expand Down

0 comments on commit 26681a0

Please sign in to comment.