!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

707 Members
Rust158 Servers

Load older messages


SenderMessageTime
16 Oct 2022
@qyliss:fairydust.spaceAlyssa RossIt could cause problems if C++ is used by any of your deps00:17:37
@qyliss:fairydust.spaceAlyssa RossI think00:17:43
@qyliss:fairydust.spaceAlyssa Rossdue to ABI incompatibility00:17:47
@charles:computer.surgeryCharles ⚡️oh interesting00:18:00
@qyliss:fairydust.spaceAlyssa Rossmixing C compilers is fine, but not C++ compilers00:18:05
@charles:computer.surgeryCharles ⚡️ what about using the default stdenv and including clang as a buildInput, would that be good enough for what bindgen uses it for? 00:18:56
@charles:computer.surgeryCharles ⚡️maybe that's the actual right thing to do00:19:04
@charles:computer.surgeryCharles ⚡️i suppose i could test this00:19:22
@qyliss:fairydust.spaceAlyssa RossI don't think so, due to peculiarities of how it looks for libclang00:19:33
@charles:computer.surgeryCharles ⚡️hmm00:20:19
@qyliss:fairydust.spaceAlyssa Ross rustPlatform.bindgenHook looks like it does what you want though 00:21:27
@qyliss:fairydust.spaceAlyssa RossYou could just always depend on that00:22:16
@charles:computer.surgeryCharles ⚡️image.png
Download image.png
00:24:50
@charles:computer.surgeryCharles ⚡️i like the empty examples section00:24:53
@charles:computer.surgeryCharles ⚡️ oh interesting you literally just add rustPlatform.bindgenHook to nativeBuildInputs 00:30:22
@qyliss:fairydust.spaceAlyssa Rossyep00:34:06
@charles:computer.surgeryCharles ⚡️thank you for pointing that out to me, i somehow never heard of it until just now01:15:44
17 Oct 2022
@aktaboot:tchncs.deaktaboot joined the room.07:41:02
@aktaboot:tchncs.deaktaboot

how do you usually go about solving that :

error[E0554]: `#![feature]` may not be used on the stable release channel

I understand that I have to use the nightly compiler, but I could not find it 👀

07:57:57
@aktaboot:tchncs.deaktaboot
Feature attributes are only allowed on the nightly release channel. Stable or
beta compilers will not comply.

Erroneous code example:

`
#![feature(lang_items)] // error: `#![feature]` may not be used on the
                        //        stable release channel
`

If you need the feature, make sure to use a nightly release of the compiler
(but be warned that the feature may be removed or altered in the future).
(END)
10:31:20
@aktaboot:tchncs.deaktabootany rustc-nightly builds ? 🤔10:31:47
@linus:schreibt.jetztLinux Hackermannot in nixpkgs10:31:53
@linus:schreibt.jetztLinux Hackermanthere are a couple of approaches to getting nightly builds, one of them is https://github.com/nix-community/fenix10:32:19
@aktaboot:tchncs.deaktabootthanks, will look into it10:32:49
@aktaboot:tchncs.deaktabootdoes that mean that you can't put a package in nixpkgs that can only be built with the nightly rustc ?10:33:26
@linus:schreibt.jetztLinux HackermanI think so10:34:01
@aktaboot:tchncs.deaktabootyeah since hydra won't be able to build it ig10:34:21
@aktaboot:tchncs.deaktabootthanks!10:34:30
@aktaboot:tchncs.deaktaboot🦀10:36:20
@figsoda:matrix.orgfigsoda
In reply to @aktaboot:tchncs.de
does that mean that you can't put a package in nixpkgs that can only be built with the nightly rustc ?
kind of a hack but sometimes RUSTC_BOOTSTRAP=1 works
16:00:57

There are no newer messages yet.


Back to Room ListRoom Version: 6