DzenanJupic / rustube

A YouTube video downloader, originally inspired by pytube, written in Rust.
Apache License 2.0
227 stars 41 forks source link

Cargo install doesn't work #10

Closed Lyamc closed 3 years ago

Lyamc commented 3 years ago

I'm just going to git clone this and then build it, but I thought I should let you know that if you just run the cargo install commands, it does not install:

cargo +nightly install rustube-cli
    Updating crates.io index
  Installing rustube-cli v0.2.4
   Compiling proc-macro2 v1.0.26
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.68
   Compiling winapi-x86_64-pc-windows-gnu v0.4.0
   Compiling winapi v0.3.9
   Compiling autocfg v1.0.1
   Compiling version_check v0.9.3
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.92
   Compiling log v0.4.14
   Compiling memchr v2.3.4
   Compiling pin-project-lite v0.2.6
   Compiling ntapi v0.3.6
   Compiling bytes v1.0.1
   Compiling serde_derive v1.0.125
   Compiling smallvec v1.6.1
   Compiling scopeguard v1.1.0
   Compiling lazy_static v1.4.0
   Compiling serde v1.0.125
   Compiling itoa v0.4.7
   Compiling futures-core v0.3.13
   Compiling proc-macro-hack v0.5.19
   Compiling matches v0.1.8
   Compiling percent-encoding v2.1.0
   Compiling tinyvec_macros v0.1.0
   Compiling ryu v1.0.5
   Compiling const_fn v0.4.6
   Compiling fnv v1.0.7
   Compiling hashbrown v0.9.1
   Compiling serde_json v1.0.64
   Compiling strsim v0.10.0
   Compiling pin-utils v0.1.0
   Compiling crc32fast v1.2.1
   Compiling ident_case v1.0.1
   Compiling futures-task v0.3.13
   Compiling native-tls v0.2.7
   Compiling futures-sink v0.3.13
   Compiling httparse v1.3.5
   Compiling slab v0.4.2
   Compiling try-lock v0.2.3
   Compiling adler v1.0.2
   Compiling rustversion v1.0.4
   Compiling tower-service v0.3.1
   Compiling encoding_rs v0.8.28
   Compiling httpdate v0.3.2
   Compiling bitflags v1.2.1
   Compiling unicode-segmentation v1.7.1
   Compiling convert_case v0.4.0
   Compiling ipnet v2.3.0
   Compiling base64 v0.13.0
   Compiling mime v0.3.16
   Compiling unicode-width v0.1.8
   Compiling anyhow v1.0.40
   Compiling regex-syntax v0.6.23
   Compiling vec_map v0.8.2
   Compiling os_str_bytes v2.4.0
   Compiling instant v0.1.9
   Compiling standback v0.2.17
   Compiling time v0.2.26
   Compiling proc-macro-error-attr v1.0.4
   Compiling cookie v0.14.4
   Compiling proc-macro-error v1.0.4
   Compiling lock_api v0.4.3
   Compiling tracing-core v0.1.17
   Compiling unicode-bidi v0.3.4
   Compiling futures-channel v0.3.13
   Compiling tinyvec v1.2.0
   Compiling tokio v1.4.0
   Compiling indexmap v1.6.2
   Compiling miniz_oxide v0.4.4
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling form_urlencoded v1.0.1
   Compiling http v0.2.3
   Compiling futures-util v0.3.13
   Compiling textwrap v0.12.1
   Compiling heck v0.3.2
   Compiling tracing v0.1.25
   Compiling unicode-normalization v0.1.17
   Compiling want v0.3.0
   Compiling aho-corasick v0.7.15
   Compiling num_cpus v1.13.0
   Compiling http-body v0.4.1
   Compiling quote v1.0.9
   Compiling idna v0.2.2
   Compiling regex v1.4.5
   Compiling flate2 v1.0.20
   Compiling miow v0.3.7
   Compiling parking_lot_core v0.8.3
   Compiling schannel v0.1.19
   Compiling socket2 v0.4.0
   Compiling winreg v0.7.0
   Compiling winapi-util v0.1.5
   Compiling time v0.1.44
   Compiling atty v0.2.14
   Compiling parking_lot v0.11.1
   Compiling termcolor v1.1.2
   Compiling darling_core v0.12.2
   Compiling chrono v0.4.19
   Compiling mio v0.7.11
   Compiling tokio-macros v1.1.0
   Compiling time-macros-impl v0.1.1
   Compiling pin-project-internal v1.0.6
   Compiling thiserror-impl v1.0.24
   Compiling clap_derive v3.0.0-beta.2
   Compiling derivative v2.2.0
   Compiling derive_more v0.99.13
   Compiling darling_macro v0.12.2
   Compiling time-macros v0.1.1
   Compiling darling v0.12.2
   Compiling serde_with_macros v1.4.1
   Compiling thiserror v1.0.24
   Compiling pin-project v1.0.6
   Compiling clap v3.0.0-beta.2
   Compiling tokio-util v0.6.5
   Compiling tokio-native-tls v0.3.0
   Compiling async-compression v0.3.7
   Compiling tokio-stream v0.1.5
   Compiling h2 v0.3.2
   Compiling url v2.2.1
   Compiling serde_urlencoded v0.7.0
   Compiling serde_qs v0.8.3
   Compiling publicsuffix v1.5.6
   Compiling cookie_store v0.12.0
   Compiling serde_with v1.8.0
   Compiling hyper v0.14.5
   Compiling hyper-tls v0.5.0
   Compiling reqwest v0.11.2
   Compiling rustube v0.2.5
error[E0658]: use of unstable library feature 'str_split_once': newly added
   --> C:\Users\Lyam\.cargo\registry\src\github.com-1ecc6299db9ec823\rustube-0.2.5\src\descrambler\cipher.rs:187:14
    |
187 |             .split_once(':')
    |              ^^^^^^^^^^
    |
    = note: see issue #74773 <https://github.com/rust-lang/rust/issues/74773> for more information
    = help: add `#![feature(str_split_once)]` to the crate attributes to enable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `rustube`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `rustube-cli v0.2.4`, intermediate artifacts can be found at `C:\Users\Lyam\AppData\Local\Temp\cargo-installMVWamh`

Caused by:
  build failed
DzenanJupic commented 3 years ago

@Lyamc thank you for the report. The split_once feature is about to get stabilized. That's already the case in the latest nightly, so I removed the feature-gate.

Running rustup update before downloading should solve your problem.

Lyamc commented 3 years ago

Yeah it looks like I just happened to try to build it at the worst time haha. Thanks!