Skip to content

Rhai depends on unmaintained crate "instant" #891

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

Open
VorpalBlade opened this issue Jul 3, 2024 · 6 comments · May be fixed by #968
Open

Rhai depends on unmaintained crate "instant" #891

VorpalBlade opened this issue Jul 3, 2024 · 6 comments · May be fixed by #968

Comments

@VorpalBlade
Copy link

According to https://crates.io/crates/instant:

This crate is no longer maintained. Please consider creating a fork or using web-time instead. Or reach out if you are interested in taking over its maintenance.

rhai should probably switch?

@schungx
Copy link
Collaborator

schungx commented Jul 3, 2024

Hhhhmmm.... good catch.

Not sure if web-time would be a drop-in replacement...

As instant is primarily used only in WASM and I don't usually build for WASM... Somebody needs to test it out and let me know if everything is fine if we replace instant with web-time...

@VorpalBlade
Copy link
Author

VorpalBlade commented Jul 3, 2024

As instant is primarily used only in WASM and I don't usually build for WASM... Somebody needs to test it out and let me know if everything is fine if we replace instant with web-time...

Same, I was just adding rhai to a new project and was auditing the recursive dependencies it pulled in and noticed this. Since I don't target wasm I don't have any reason to work on this.

@0byteme
Copy link
Contributor

0byteme commented Aug 1, 2024

As instant is primarily used only in WASM and I don't usually build for WASM... Somebody needs to test it out and let me know if everything is fine if we replace instant with web-time...

If use web-time instead of instant, will it cause a breaking change?

@schungx
Copy link
Collaborator

schungx commented Aug 1, 2024

As instant is primarily used only in WASM and I don't usually build for WASM... Somebody needs to test it out and let me know if everything is fine if we replace instant with web-time...

If use web-time instead of instant, will it cause a breaking change?

Not sure... I haven't used web-time before... can somebody test it out?

@0byteme 0byteme mentioned this issue Aug 5, 2024
@TrueDoctor
Copy link

Could we make pulling in time optional? We are currently thinking about adding Rhai support to graphite: GraphiteEditor/Graphite#2460 but in our case we don't need time support at all so it would be great if we could just disable this altogether

@TrueDoctor TrueDoctor linked a pull request Mar 20, 2025 that will close this issue
@schungx
Copy link
Collaborator

schungx commented Mar 21, 2025

Try no_time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants