0byteme

Results 7 comments of 0byteme

> Also I wonder if it is possible to write tests for WASM... I'm not sure if I can write tests for WASM, but I'll try it. BTW, I have...

If we add `web-time` with optional = `true` then we can't pass the `cargo build --target wasm32-unknown-unknown --no-default-features` compile; Otherwise if we set optional = `false`, we can't pass `cargo...

> `[target.'cfg(not(feature = "no_time"))'.dependencies]` > > Why did you change it to no_time instead? Before it is pulled in only for wasm which doesnt have `Instant`. You are correct. I...

I'm pretty sure the issue is related to `once_cell` and `web_time`. I've created an [example](https://github.com/misssonder/oncecell-with-webtime-example) to reproduce the problem. Can run `cargo c --features time` or `cargo c` to see...

It's not supported to be pulled if I don't add features `time` in [this](https://github.com/misssonder/oncecell-with-webtime-example/blob/main/Cargo.toml#L13), but it still failed.

It turn out that `feature = ...` in `target.'cfg(...)'.dependencies` is not supported for selecting dependencies and will not work as expected. So actually `rhai` will always pull `instant` whenever it's...

> 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...