rune-rs / rune

An embeddable dynamic programming language for Rust.
https://rune-rs.github.io
Apache License 2.0
1.7k stars 85 forks source link

rune_modules 0.13.3: Incorrect dependencies between features #734

Closed VorpalBlade closed 1 month ago

VorpalBlade commented 1 month ago
$ cargo new dummy
$ cd dummy
$ cargo add rune_modules --features=process
$ cargo build
[...]
   Compiling rune-modules v0.13.3
error[E0432]: unresolved import `tokio`
  --> /home/arvid/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rune-modules-0.13.3/src/process.rs:38:5
   |
38 | use tokio::process;
   |     ^^^^^ use of undeclared crate or module `tokio`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `rune-modules` (lib) due to 1 previous error

Seems that the process feature should depend on the tokio feature.

Also, does this mean I can't use smol as my runtime instead of tokio if I want to use the process module?