bevy
bevy copied to clipboard
Update web-time requirement from 0.2 to 1.0
Updates the requirements on web-time to permit the latest version.
Changelog
Sourced from web-time's changelog.
[1.0.0] - 2024-01-14
Added
- V1 release.
[0.2.4] - 2023-12-24
Added
- Added
webmodule containing a platform-specific extension trait toSystemTime, allowing conversion from and tostd::time::SystemTime.Changed
- Improve performance of
SystemTimeby usingDurationinternally.[0.2.3] - 2023-10-23
Changed
- Improve accuracy of
Instant::now().[0.2.2] - 2023-10-08
Fixed
- Time conversion for
Instant.[0.2.1] - 2023-10-07 [YANKED]
Changed
- Bump MSRV to v1.60.
Removed
- Unnecessary
once_celldependency.[0.2.0] - 2023-03-28
Added
- Export
TryFromFloatSecsErrorwithout breaking MSRV.[0.1.0] - 2023-03-27
Added
- Initial commit.
... (truncated)
Commits
6431f16Prepare new releaseac5bcf3Fix doc lintingdca3d82Usetarget_os = "unknown"2305125Fix deployment URLe8f0aacPrepare new release821a55dShow propercfgs on documentation84d07eaAddSystemTimeExt1d43b5dImprove changelog internal readability8df95b9Improve performance ofSystemTimeby usingDurationinternally77f6203Fix wrong references to branch name- Additional commits viewable in compare view
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.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Blocking this on a winit update so we can minimize our duplicate dependencies.
Hi, author here :wave:!
I think the library is just being stabilized.
Indeed.
Though I'm concerned about daxpedda/web-time@dca3d82.
Whats the concern here exactly?
web-timeis duplicated, sincewinitdepends on 0.2, which is why the CI is failing. rust-windowing/winit#3392 has been merged so that duplicate will be fixed soon, but for now this PR is blocked.
The problem will also be interoperability. E.g.ControlFlow::WaitUntil will be a bit tougher to work with if you don't use the same dependency version.
So it should be perfectly fine to just wait for the next Winit release before updating.
Though I'm concerned about daxpedda/web-time@dca3d82.
Whats the concern here exactly?
I just wasn't sure what that commit was doing. Could you give a small explanation? I don't know much about the cfg attributes that were modified.
web-timeis duplicated, sincewinitdepends on 0.2, which is why the CI is failing. rust-windowing/winit#3392 has been merged so that duplicate will be fixed soon, but for now this PR is blocked.The problem will also be interoperability. E.g.
ControlFlow::WaitUntilwill be a bit tougher to work with if you don't use the same dependency version. So it should be perfectly fine to just wait for the next Winit release before updating.
Ok, sounds good.
Though I'm concerned about daxpedda/web-time@dca3d82.
Whats the concern here exactly?
I just wasn't sure what that commit was doing. Could you give a small explanation? I don't know much about the
cfgattributes that were modified.
web-time targets the wasm32-unknown-unknown target exclusively. Ergo it does not target wasm32-unknown-emscripten or wasm32-wasi. The reason is that both those targets have their own working std::time implementation and don't require web-time in the first place.
Previously this was expressed as cfg(all(target_family = "wasm", not(any(target_os = "emscripten", target_os = "wasi")))), which basically says all Wasm targets that aren't Emscripten or Wasi.
daxpedda/web-time@dca3d82 changes this to cfg(all(target_family = "wasm", target_os = "unknown")), which says all Wasm targets that have an unknown target OS, which corresponds to wasm32-unknown-unknown exclusively.
This has no actual downstream effect, but it does protect against a potential new target, e.g. wasm32-unknown-newshinyos. For more on cfg in general see The Rust Reference.
web-timetargets thewasm32-unknown-unknowntarget exclusively. Ergo it does not targetwasm32-unknown-emscriptenorwasm32-wasi. The reason is that both those targets have their own workingstd::timeimplementation and don't requireweb-timein the first place.Previously this was expressed as
cfg(all(target_family = "wasm", not(any(target_os = "emscripten", target_os = "wasi")))), which basically says all Wasm targets that aren't Emscripten or Wasi.daxpedda/web-time@dca3d82 changes this to
cfg(all(target_family = "wasm", target_os = "unknown")), which says all Wasm targets that have anunknowntarget OS, which corresponds towasm32-unknown-unknownexclusively.This has no actual downstream effect, but it does protect against a potential new target, e.g.
wasm32-unknown-newshinyos. For more oncfgin general see The Rust Reference.
Thank you, that makes a lot more sense!
Superseded by #12294.