trillium-rs / trillium

Trillium is a composable toolkit for building internet applications with async rust
https://trillium.rs
Apache License 2.0
339 stars 18 forks source link

Bug report for `trillium-testing`: after adding as dependency project does not compile #678

Open DreamTexX opened 3 weeks ago

DreamTexX commented 3 weeks ago

Describe the bug After adding trillium-testing as a dependency (or test dependency) the project does not compile anymore.

To Reproduce Steps to reproduce the behavior:

  1. Add trillium-testing v0.7.0 to the project
  2. Run "cargo test"

Log

error[E0432]: unresolved import `concurrent_queue::ForcePushError`
  --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/async-channel-2.3.0/src/lib.rs:50:41
   |
50 | use concurrent_queue::{ConcurrentQueue, ForcePushError, PopError, PushError};
   |                                         ^^^^^^^^^^^^^^ no `ForcePushError` in the root

error[E0599]: no method named `force_push` found for struct `ConcurrentQueue` in the current scope
   --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/async-channel-2.3.0/src/lib.rs:313:34
    |
313 |         match self.channel.queue.force_push(msg) {
    |                                  ^^^^^^^^^^ method not found in `ConcurrentQueue<T>`

error: could not compile `async-channel` (lib) due to 2 previous errors
jbr commented 2 weeks ago

This does not seem like a trillium issue directly, but might be resolved by running cargo update? I'll take a look at async channel to see if there is more info over there and update this issue accordingly