unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Hamzeh Nasajpour" <h.nasajpour@pantherx.org>
To: "SuarezMiguelC via" <help-guix@gnu.org>
Subject: rust packaging with specific version of rust
Date: Mon, 19 Oct 2020 12:00:58 +0330	[thread overview]
Message-ID: <6c52b5f9-97ed-4041-949b-065f75f60181@www.fastmail.com> (raw)

Hi,

I'm not expert in `rust`. I need to work with a library that has some dependencies to rust and I had to package a few libraries in GuixSD. Anyway now I faced with an error in building one rust package:
```
error[E0658]: use of unstable library feature 'inner_deref': newly added
  --> src/http_client/mod.rs:54:25
   |
54 |         self.auth_token.as_deref()
   |                         ^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50264

error[E0658]: use of unstable library feature 'inner_deref': newly added
  --> src/http_client/mod.rs:68:43
   |
68 |         self.imp.get(url, self.auth_token.as_deref()).as_result()
   |                                           ^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50264

error[E0658]: use of unstable library feature 'inner_deref': newly added
  --> src/http_client/mod.rs:72:44
   |
72 |         self.imp.post(url, self.auth_token.as_deref(), body).as_result()
   |                                            ^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/50264
...
```

Based on the following document the  `as_deref()` method is available since rust version `1.40.0`.
https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref

Now how can I build/install my rust package with this specific version? is it possible? or is there anything that I forget? Please help. 


Regards,
Hamzeh


             reply	other threads:[~2020-10-19  8:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-19  8:30 Hamzeh Nasajpour [this message]
2020-10-19  9:06 ` rust packaging with specific version of rust Arun Isaac
2020-10-21 11:11   ` Hamzeh Nasajpour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6c52b5f9-97ed-4041-949b-065f75f60181@www.fastmail.com \
    --to=h.nasajpour@pantherx.org \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).