amritghimire / jira-terminal

The application that can be used for personal usage to manage jira from terminal.
http://amritghimire.com/jira-terminal/
GNU Affero General Public License v3.0
138 stars 15 forks source link

cargo install jira-terminal failed #21

Closed songtianyi closed 3 years ago

songtianyi commented 3 years ago
error[E0658]: use of unstable library feature 'str_split_once': newly added
  --> /Users/songtianyi/.cargo/registry/src/github.com-1ecc6299db9ec823/jira-terminal-1.4.0/src/jira/new_issue.rs:59:58
   |
59 |                 if let Some((key, value)) = custom_field.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[E0658]: use of unstable library feature 'str_split_once': newly added
   --> /Users/songtianyi/.cargo/registry/src/github.com-1ecc6299db9ec823/jira-terminal-1.4.0/src/jira/new_issue.rs:108:26
    |
108 |         let split = main.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 2 previous errors

For more information about this error, try `rustc --explain E0658`.
error: failed to compile `jira-terminal v1.4.0`, intermediate artifacts can be found at `/var/folders/db/wkkn_2bs71s7gj97hh1rw40c0000gn/T/cargo-installbiQt2Y`

Caused by:
  could not compile `jira-terminal`
songtianyi commented 3 years ago

I switch the toolchain to the latest stable, build succeeds.