doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
611 stars 84 forks source link

Can't build from master branch (1e56f73): use of unstable library feature 'str_split_once': newly added #83

Closed ewen-lbh closed 2 years ago

ewen-lbh commented 2 years ago

As #80 was fixed in 1.4.2, which hasn't been released to the AUR yet, I tried installing the new release through cargo, but the build errored:

$ cargo install --git https://github.com/doy/rbw
    Updating git repository `https://github.com/doy/rbw`
  Installing rbw v1.4.3 (https://github.com/doy/rbw#1e56f733)
    Updating crates.io index
   Compiling libc v0.2.119
   Compiling cfg-if v1.0.0
   Compiling proc-macro2 v1.0.36
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.86
   Compiling version_check v0.9.4
   Compiling autocfg v1.1.0
   Compiling typenum v1.15.0
   Compiling spin v0.5.2
   Compiling memchr v2.4.1
   Compiling log v0.4.14
   Compiling subtle v2.4.1
   Compiling once_cell v1.9.0
   Compiling smallvec v1.8.0
   Compiling cc v1.0.73
   Compiling parking_lot_core v0.9.1
   Compiling pin-project-lite v0.2.8
   Compiling scopeguard v1.1.0
   Compiling futures-core v0.3.21
   Compiling bytes v1.1.0
   Compiling itoa v1.0.1
   Compiling untrusted v0.7.1
   Compiling futures-task v0.3.21
   Compiling serde_derive v1.0.136
   Compiling libm v0.2.2
   Compiling base64ct v1.0.1
   Compiling fnv v1.0.7
   Compiling serde v1.0.136
   Compiling futures-util v0.3.21
   Compiling opaque-debug v0.3.0
   Compiling futures-channel v0.3.21
   Compiling pin-utils v0.1.0
   Compiling const-oid v0.6.2
   Compiling cpufeatures v0.2.1
   Compiling httparse v1.6.0
   Compiling rustls v0.20.4
   Compiling futures-io v0.3.21
   Compiling hashbrown v0.11.2
   Compiling tinyvec_macros v0.1.0
   Compiling slab v0.4.5
   Compiling matches v0.1.9
   Compiling futures-sink v0.3.21
   Compiling bitflags v1.3.2
   Compiling try-lock v0.2.3
   Compiling percent-encoding v2.1.0
   Compiling ppv-lite86 v0.2.16
   Compiling unicode-width v0.1.9
   Compiling base64 v0.13.0
   Compiling ryu v1.0.9
   Compiling encoding_rs v0.8.30
   Compiling httpdate v1.0.2
   Compiling unicode-bidi v0.3.7
   Compiling serde_json v1.0.79
   Compiling unicode-segmentation v1.9.0
   Compiling tower-service v0.3.1
   Compiling openssl-probe v0.1.5
   Compiling regex-syntax v0.6.25
   Compiling vec_map v0.8.2
   Compiling async-trait v0.1.52
   Compiling ansi_term v0.12.1
   Compiling strsim v0.8.0
   Compiling byteorder v1.4.3
   Compiling paw-raw v1.0.0
   Compiling anyhow v1.0.55
   Compiling humantime v2.1.0
   Compiling remove_dir_all v0.5.3
   Compiling block-padding v0.2.1
   Compiling termcolor v1.1.2
   Compiling fastrand v1.7.0
   Compiling ipnet v2.3.1
   Compiling boxfnonce v0.1.1
   Compiling mime v0.3.16
   Compiling base32 v0.4.0
   Compiling arrayvec v0.7.2
   Compiling lazy_static v1.4.0
   Compiling autocfg v0.1.8
   Compiling lock_api v0.4.6
   Compiling generic-array v0.14.5
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling num-traits v0.2.14
   Compiling indexmap v1.8.0
   Compiling num-integer v0.1.44
   Compiling num-iter v0.1.42
   Compiling memoffset v0.6.5
   Compiling pem-rfc7468 v0.2.4
   Compiling http v0.2.6
   Compiling tinyvec v1.5.1
   Compiling form_urlencoded v1.0.1
   Compiling rustls-pemfile v0.2.1
   Compiling heck v0.3.3
   Compiling ring v0.16.20
   Compiling tracing-core v0.1.22
   Compiling num-bigint-dig v0.7.0
   Compiling rustls-native-certs v0.6.1
   Compiling want v0.3.0
   Compiling tracing v0.1.31
   Compiling aho-corasick v0.7.18
   Compiling unicode-normalization v0.1.19
   Compiling quote v1.0.15
   Compiling http-body v0.4.4
   Compiling getrandom v0.2.5
   Compiling mio v0.8.0
   Compiling signal-hook-registry v1.4.0
   Compiling socket2 v0.4.4
   Compiling num_cpus v1.13.1
   Compiling atty v0.2.14
   Compiling term_size v0.3.2
   Compiling dirs-sys v0.3.6
   Compiling tempfile v3.3.0
   Compiling daemonize v0.4.1
   Compiling region v3.0.0
   Compiling nix v0.23.1
error[E0658]: use of unstable library feature 'str_split_once': newly added
  --> /home/ewen/.cargo/registry/src/github.com-1ecc6299db9ec823/region-3.0.0/src/os/linux.rs:32:56
   |
32 |     let (line, _) = self.proc_maps.get(self.offset..)?.split_once('\n')?;
   |                                                        ^^^^^^^^^^
   |
   = note: see issue #74773 <https://github.com/rust-lang/rust/issues/74773> for more information

error: aborting due to previous error

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

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `rbw v1.4.3 (https://github.com/doy/rbw#1e56f733)`, intermediate artifacts can be found at `/tmp/cargo-installQLkRUt`

Caused by:
  build failed
doy commented 2 years ago

split_once has been stable since rust 1.52, almost a year ago - i'd recommend updating your rust compiler.

ewen-lbh commented 2 years ago

split_once has been stable since rust 1.52, almost a year ago - i'd recommend updating your rust compiler.

Well, that's embarrassing -- seems like pacman does not update rustc

Sorry about this.