Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiled on Termux #110

Closed
JARVIS-AI opened this issue Feb 20, 2020 · 3 comments
Closed

Compiled on Termux #110

JARVIS-AI opened this issue Feb 20, 2020 · 3 comments

Comments

@JARVIS-AI
Copy link

JARVIS-AI commented Feb 20, 2020

As I tried to compile it on Android 9 with Last Termux and last rust and cargo
Cargo It's fine and rust is working

Android : 9
Rust : 1.40.0

The error was this :
I think its need some changes in Cargo.toml

~/Gits/genact master
❯ cargo run
 Downloading crates ...
  Downloaded lazy_static v1.0.0
  Downloaded rand v0.4.2
  Downloaded yansi v0.3.4
  Downloaded humantime v1.0.0
  Downloaded ctrlc v3.1.0
  Downloaded url v1.6.0
  Downloaded chrono v0.4.0
  Downloaded regex v0.2.6
  Downloaded clap v2.29.4
  Downloaded nix v0.9.0
  Downloaded percent-encoding v1.0.1
  Downloaded quick-error v1.2.1
  Downloaded matches v0.1.6
  Downloaded num v0.1.42
  Downloaded bitflags v0.9.1
  Downloaded strsim v0.7.0
  Downloaded void v1.0.2
  Downloaded vec_map v0.8.0
  Downloaded thread_local v0.3.5
  Downloaded memchr v2.0.1
  Downloaded idna v0.1.4
  Downloaded unicode-width v0.1.4
  Downloaded utf8-ranges v1.0.0
  Downloaded aho-corasick v0.6.4
  Downloaded cfg-if v0.1.2
  Downloaded atty v0.2.6
  Downloaded bitflags v1.0.1
  Downloaded textwrap v0.9.0
  Downloaded regex-syntax v0.4.2
  Downloaded time v0.1.39
  Downloaded libc v0.2.36
  Downloaded ansi_term v0.10.2
  Downloaded num-integer v0.1.36
  Downloaded unicode-bidi v0.3.4
  Downloaded pbr v1.0.0
  Downloaded unreachable v1.0.0
  Downloaded num-traits v0.2.0
  Downloaded num-iter v0.1.35
  Downloaded unicode-normalization v0.1.5
  Downloaded kernel32-sys v0.2.2
  Downloaded winapi-build v0.1.1
  Downloaded winapi v0.2.8
   Compiling libc v0.2.36
   Compiling void v1.0.2
   Compiling num-traits v0.2.0
   Compiling winapi-build v0.1.1
   Compiling matches v0.1.6
   Compiling bitflags v0.9.1
   Compiling unicode-width v0.1.4
   Compiling cfg-if v0.1.2
   Compiling winapi v0.2.8
   Compiling unicode-normalization v0.1.5
   Compiling lazy_static v1.0.0
   Compiling bitflags v1.0.1
   Compiling percent-encoding v1.0.1
   Compiling quick-error v1.2.1
   Compiling regex-syntax v0.4.2
   Compiling strsim v0.7.0
   Compiling utf8-ranges v1.0.0
   Compiling vec_map v0.8.0
   Compiling ansi_term v0.10.2
   Compiling yansi v0.3.4
   Compiling unreachable v1.0.0
   Compiling unicode-bidi v0.3.4
   Compiling kernel32-sys v0.2.2
   Compiling textwrap v0.9.0
   Compiling time v0.1.39
   Compiling memchr v2.0.1
   Compiling atty v0.2.6
   Compiling nix v0.9.0
   Compiling rand v0.4.2
   Compiling humantime v1.0.0
   Compiling num-integer v0.1.36
   Compiling thread_local v0.3.5
   Compiling idna v0.1.4
   Compiling aho-corasick v0.6.4
   Compiling clap v2.29.4
   Compiling num-iter v0.1.35
   Compiling regex v0.2.6
   Compiling url v1.6.0
error[E0713]: borrow may still be in use when destructor runs
   --> /data/data/com.termux/files/home/.cargo/registry/src/github.com-1ecc6299db9ec823/url-1.6.0/src/form_urlencoded.rs:261:40
    |
259 | impl<'a> Target for ::UrlQuery<'a> {
    |      -- lifetime `'a` defined here
260 |     fn as_mut_string(&mut self) -> &mut String { &mut self.url.serialization }
261 |     fn finish(self) -> &'a mut ::Url { self.url }
    |                                        ^^^^^^^^ - here, drop of `self` needs exclusive access to `*self.url`, because the type `UrlQuery<'_>` implements the `Drop` trait
    |                                        |
    |                                        returning this value requires that `*self.url` is borrowed for `'a`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0713`.
error: could not compile `url`.
warning: build failed, waiting for other jobs to finish...
error: build failed

In cargo.toml the url dependency is : 1.6

@svenstaro
Copy link
Owner

It should work fine now, please retest.

@JARVIS-AI
Copy link
Author

Completely fine, thanks
Was it url 1.6.0 end of life problem ? that makes it drop stat i think ?!

@JARVIS-AI
Copy link
Author

If you like I can add info about compiling it on android too in the readme if you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants