These are chat archives for rust-lang/rust

9th
Jan 2018
Moggers
@Moggers
Jan 09 2018 00:45
Why do I have to explicitly derive Clone for a struct which is just a tuple of even just a u32?
Tuấn-Anh Nguyễn
@ubolonton
Jan 09 2018 01:01
Maybe in case that u32 has special meaning, like a handle to some managed resource, coming from a FFI?
Moggers
@Moggers
Jan 09 2018 01:01
I guess
Is this maintained?
Is there any other freertos shim for rust thats maintained?
Peter Atashian
@retep998
Jan 09 2018 02:22
@Moggers For example, SOCKET which represents a socket is merely a typedef to an integer, so it's important that structs containing it provide manual Clone impls
David Harvey-Macaulay
@alteous
Jan 09 2018 04:55
Paz.
Clvtor
@clvtor
Jan 09 2018 12:22
I have problem with when plugin build is ON. This is link to build log.
https://privatebin.net/?b9d92743bdd569e0#EY+e0VrRHQd27CZcG+tFcXbkZ1Nd7Ab+ng5PiSCL0RA=
As I can figure out, the problem is that it cannot find sys/cdefs.h which on my system is in: /usr/include/i386-linux-gnu/sys/cdefs.h
Am I on the right trace of problem? And what to do next to build succesfuly?
Clvtor
@clvtor
Jan 09 2018 14:12
after installing g++-multilib they built mean_miner_cpp.osuccessfully , but stuck on other.
https://privatebin.net/?7b5c7e9bf2e0c8f9#JZPlRcvzlUdnOWeHMoloRsbN25Rno71k0Zq7RQpY20E=
Please help with building with cuckoo, (OS is Ubuntu 16.04.3 on VirtualBox, but same error is on Debian 9, both 32 bit)
Clvtor
@clvtor
Jan 09 2018 14:32
This message was deleted
Alexandre Bury
@gyscos
Jan 09 2018 14:33
brand logo?
Are you sure this is the correct channel?
Steve Klabnik
@steveklabnik
Jan 09 2018 14:34
i've never heard of this crate before
Ed Page
@epage
Jan 09 2018 14:35
Is anyone else seeing release builds on i686-pc-windows-msvc failing to link due to issues with GetLastError?
Clvtor
@clvtor
Jan 09 2018 14:37
possibly as an idea, I'm not designer-illustrator, but smallcap 'g' also can be source for building logo. :)
Following is not my idea not I have any rights, but is very nice.
26232551_1142480732550067_3622580248485854502_o_cr.jpg
Alexandre Bury
@gyscos
Jan 09 2018 14:38
@clvtor would that be a logo for the rust language itself?
Alexandre Bury
@gyscos
Jan 09 2018 14:40
It's a nice font indeed, but why specifically a g?
Clvtor
@clvtor
Jan 09 2018 14:40
Sry, I'm on wrong chanel. :(
Tom Cumming
@tomcumming
Jan 09 2018 14:55
lol
Sherab Giovannini
@Shaddy
Jan 09 2018 20:01
@epage could be related with this? ogham/rust-ansi-term#31
your project seems to be using ansi_term as well, could be the issue
Ed Page
@epage
Jan 09 2018 20:09
Though it is a link error on the same platform, I'm guessing its not ansi_term
  1. The errors though are coming from serde_yaml and std::sys::common::backtrace which probably don't use ansi_term
  2. The error is for GetLastError and not for any ansi term entry points unlike the linked issue
Sherab Giovannini
@Shaddy
Jan 09 2018 20:16
yep you're right, in your case it is because of the GetLastError referenced inside serde => backtrace
you may try with backtrace 0.3.5 which has winapi updated to 0.3
Peter Atashian
@retep998
Jan 09 2018 20:21
I commented on the ansi_term issue with the reason it is broken
Sherab Giovannini
@Shaddy
Jan 09 2018 20:21
oh, hi Peter, thanks for your great job in winapi :D
you guys have made a complete microsoft namespace rewrite with much more sense than C++ api itself
Peter Atashian
@retep998
Jan 09 2018 20:23
I didn't come up with any namespaces. I just have modules directly corresponding to headers.
Sherab Giovannini
@Shaddy
Jan 09 2018 20:26
for types yes, but the internal api's are also binded to its namespace
you don't include winioctl.h when you want to call DeviceIoControl but do Windows.h
Peter Atashian
@retep998
Jan 09 2018 20:26
the modules directly correspond to what headers the definitions are actually defined in
Sherab Giovannini
@Shaddy
Jan 09 2018 20:26
anyway, moving from 0.2 to 0.3 was great and having all the features in one crate it is also
Peter Atashian
@retep998
Jan 09 2018 20:27
not which headers you're supposed to include when writing C/C++ code
Diggory Blake
@Diggsey
Jan 09 2018 20:27
basically, winapi is great because it doesn't have all of the back-compat baggage that the C/C++ API has to deal with :P
Sherab Giovannini
@Shaddy
Jan 09 2018 20:27
yes, it is a mapping of windows 10 sdk headers, but
EXACTLY
thats exactly what I meant xD
Peter Atashian
@retep998
Jan 09 2018 20:28
I mean, I've still bound a lot of back-compat baggage
Diggory Blake
@Diggsey
Jan 09 2018 20:28
@retep998 jeez take a compliment -.-
Peter Atashian
@retep998
Jan 09 2018 20:28
functions from win16 that only still exist for the sake of porting ancient software
Sorry, I'm not very good at taking compliments
Sherab Giovannini
@Shaddy
Jan 09 2018 20:31
win16 shouldn't exist as x86_64 doesn't support 16-bit virtualization
Peter Atashian
@retep998
Jan 09 2018 20:32
Sure, but some APIs from the win16 era still exit on 64bit Windows
For example functions like OpenFile
Sherab Giovannini
@Shaddy
Jan 09 2018 20:36
in which library? kernel32 doesn't export any OpenFile
using W10 x64
Peter Atashian
@retep998
Jan 09 2018 21:24
1017 3F8 0005A720 OpenFile
kernel32.dll definitely exports OpenFile on Windows 10 64-bit
and it's in the kernel32.lib import library and in the headers