0

cargo add command is pretty verbose in listing crate features whenever a new crate is added:

cargo add tokio
   Updating crates.io index
     Adding tokio v1.21.0 to dependencies.
            Features:
            - bytes
            - fs
            - full
            - io-std
            - io-util
            - libc
            - macros
            - memchr
            - mio
            - net
            - num_cpus
            - once_cell
            - parking_lot
            - process
            - rt
            - rt-multi-thread
            - signal
            - signal-hook-registry
            - stats
            - sync
            - test-util
            - time
            - tokio-macros
            - tracing
            - winapi

I would like to find a way to list these features *after* a crate has already been added to Cargo.toml.

Is it possible?

It's a bit inconvenient to remove and add a dependency just to see what features it has.

Ken White
  • 123,280
  • 14
  • 225
  • 444
BinaryButterfly
  • 18,137
  • 13
  • 50
  • 91

0 Answers0