[rust-dev] Once_fns

2014-05-01 Thread Valerii Hiora
Hi, Which is current state of once functions? In the doc https://github.com/mozilla/rust/wiki/Doc-under-construction-FAQit mentioned as experimental feature, which might not be enabled in 1.0. But it is Compiler shows a warning ___ Rust-dev

Re: [rust-dev] Once_fns

2014-05-01 Thread Valerii Hiora
functions are experimental and likely to be removed, which raises question how likely considering wiki page was last edited 9 months ago. Is better to avoid them at all or it's still safe use them as experimental feature? -- Valerii On Thu, May 1, 2014 at 11:15 AM, Valerii Hiora valerii.hi

Re: [rust-dev] *c_char and *c_uchar

2014-05-10 Thread Valerii Hiora
Hi Christophe, i can not use : let ppDb : **mut () = RawPtr::null(); unsafe { res=sqlite3_open(filename.as_ptr(), ppDb); because as_ptr() returns an *u8 and c_char is a i8, so i have to use extern { fn sqlite3_open(filename: *c_uchar, ppDb : **mut ()) - c_int; } as_ptr() is a bad idea as

Re: [rust-dev] How do I bootstrap rust form armhf?

2014-06-06 Thread Valerii Hiora
I'm trying to run rustc on an arm board, but obviously there's no precompiled stage0 to build the compiler. Is there a procedure to cross-compile stage0 on other host machine where I do have rustc? Disclaimer: haven't tried anything like this, but just a couple of hints: - configure

[rust-dev] Nightly docs for Dash

2014-06-13 Thread Valerii Hiora
Hi, Being a big fan of offline documentation I've prepared a fresh docset for Dash (zeal, helm-dash, any other compatible software). Here is the link for subscription: dash-feed://https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fnet.vhbit.rust-doc%2FRustNightly.xml It's a beta and has a

Re: [rust-dev] 0.11.0 prerelease testing

2014-06-30 Thread Valerii Hiora
Hi Alex, The source also supports a number of other platforms such as Android and iOS now. Unfortunately iOS build is failing now because of LLVM bug and as patch for it hasn't yet landed, I believe it shouldn't be mentioned in release notes. -- Valerii signature.asc Description:

Re: [rust-dev] adding a new cross-compile target

2014-07-20 Thread Valerii Hiora
Hi Rob, make: *** No rule to make target `powerpc64-bgq-linux/rt/arch/powerpc64/morestack.o', needed by `powerpc64-bgq-linux/rt/libsmorestack.a'. Stop. I don't know how to go about debugging this. Any ideas? There is no way to debug this - you have to implement a couple of functions

Re: [rust-dev] [ANN] Rust ported to DragonFlyBSD

2014-07-30 Thread Valerii Hiora
Hi, Also when using the --target approach, I always had to wait for hours until it finished the Linux (host) build before it started to build the target. Yep, `--target` approach can be extremely exhausting. One pretty useful dirty trick in this case is to build it once for host and play a

Re: [rust-dev] target json documentation

2014-12-09 Thread Valerii Hiora
Hi Kashyap, I've used it here - https://github.com/ckkashyap/unix/blob/master/kernel/Makefile and it appears that the compiler does honor the contents of the json file that is passed. Corey Richardson can help you with that. -- Valerii signature.asc Description: OpenPGP digital

Re: [rust-dev] Problems cross-compiling to ARM9

2014-12-30 Thread Valerii Hiora
Hi Tomi, Anyone have any idea if that's a larger problem, or simply something nobody has written the small handcoded ASMs needed for ARMv5 or v4? If latter, I might be able to wrap my head around this. The problem you've got is related to segmented stack support. It need fix on 2 levels: