[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 mailing

Re: [rust-dev] Once_fns

2014-05-01 Thread Valerii Hiora
;once 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:1

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 i

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 scr

[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 cou

Re: [rust-dev] Nightly docs for Dash

2014-06-16 Thread Valerii Hiora
Hi Vladimir, > It removes the left side navigation panel from docs and adds TOC generation. Looks nice, I've added TOC generation too (so far I'm not using dash-rust and plan to publish the code after cleaning up a bit). One of the reason is that dash-rust actually shows much more informatio

[rust-dev] iOS cross compilation

2014-06-16 Thread Valerii Hiora
Hi, So finally Rust can cross-compile for iOS (armv7 only for now). BTW, it also means that Rust now can be used both for iOS and Android low-level development. Short instructions are available here: https://github.com/mozilla/rust/wiki/Doc-building-for-ios Unfortunately LLVM patch for s

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: O

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 func

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

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:

Re: [rust-dev] Tools for auto-extracting FFI for C libraries?

2015-01-01 Thread Valerii Hiora
Hi Tom, > Is anyone aware of work on a tool to automatically generate an FFI > for C libraries? https://github.com/crabtw/rust-bindgen -- Valerii signature.asc Description: OpenPGP digital signature ___ Rust-dev mailing list Rust-dev@mozilla.o

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

2015-01-01 Thread Valerii Hiora
Hi Tomi, > The prologue problem was fixed by adding "morestack: false," to the > linux ARM target specification, similar to how it is in the iOS > target. Right, my bad, that should be enough. > My device does not really benefit from the segmented stack, since it > has only 64MB RAM Segm