svenstaro/miniserve

Update in termux

Closed this issue ยท 4 comments

I don't use rust but when I updated it I got compilation errors

Please post the error output and the compiled version!

Please post the error output and the compiled version!

v0.17.0

Compiling clap v3.0.0-beta.4
error[E0658]: arbitrary expressions in key-value attributes are unstable
 --> /home/builder/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-3.0.0-beta.4/src/lib.rs:8:10
  |
8 | #![doc = include_str!("../README.md")]
  |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #78835 <https://github.com/rust-lang/rust/issues/78835> for more information

error: aborting due to previous error

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

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
make: *** [Makefile:3: local] Error 101
Error: Process completed with exit code 2.

https://github.com/termux/termux-packages/pull/7553/checks#step:3:1086

I don't know about termux build system but this version requires rustc >= v1.54

The current rust version used by termux seems to be 1.53.

Someone changed the rust version and it compiled without changes and works fine ๐Ÿ˜