Recently I've been overhauling the mechanisms for introducing unstable features to both the Rust language and libraries. Part of that work landed for the 1.0.0-alpha release when we started producing warnings about using unstable library APIs, which I'm sure you noticed. Now the transition to the system described in [RFC 507][rfc-507] is nearing completion, so it's time to remind everybody what's happening and how to cope with it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hubot | |
description "Hubot Campfire bot" | |
author "David Wittman <[email protected]>" | |
start on filesystem or runlevel [2345] | |
stop on runlevel [!2345] | |
# Path to Hubot installation | |
env HUBOT_DIR='/opt/hubot/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This assumes you have: | |
# 1) A user called `hubot` in charge of the bot. | |
# 2) A file called /home/hubot/.hubotrc that contains the Hubot credentials. | |
# | |
# To set the adapter either edit bin/hubot to specify what you want or append | |
# `-- -a campfire` to the $DAEMON variable below. | |
# | |
### BEGIN INIT INFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
note: D:\git\rust-GSL-master\target\release\rgsl.o:(.text+0x12d81): undefined reference to `gsl_sf_b | |
essel_InKnu' | |
D:\git\rust-GSL-master\target\release\rgsl.o:(.text+0x12dac): undefined reference to `gsl_sf_bessel_ | |
InKnu_e' | |
D:\git\rust-GSL-master\target\release\rgsl.o:(.text+0x17fe8): undefined reference to `gsl_fft_comple | |
x_radix2_diff_forward' | |
D:\git\rust-GSL-master\target\release\rgsl.o:(.text+0x18008): undefined reference to `gsl_fft_comple | |
x_radix2_diff_transform' | |
D:\git\rust-GSL-master\target\release\rgsl.o:(.text+0x18028): undefined reference to `gsl_fft_comple | |
x_radix2_diff_backward' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cargo rustc -- -C link-args="-m64 -lgsl -lgslcblas" | |
Compiling rustc-serialize v0.3.15 | |
Compiling winapi-build v0.1.0 | |
Compiling winapi v0.2.1 | |
Compiling advapi32-sys v0.1.2 | |
Compiling rand v0.3.9 | |
Compiling num v0.1.25 | |
Compiling GSL v0.4.24 (file:///D:/git/rust-GSL-master) | |
src\types\multifit_solver.rs:211:5: 211:20 warning: struct field is never used: `df`, #[warn(dea | |
de)] on by default |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
outwen@DESKTOP-8LE5Q03 /d/正在处理/rust-GSL-master | |
$ cargo build | |
Compiling GSL v0.4.24 (file:///D:/%E6%AD%A3%E5%9C%A8%E5%A4%84%E7%90%86/rust-GSL-master) | |
src\types\multifit_solver.rs:211:5: 211:20 warning: struct field is never used: `df`, #[warn(dea | |
de)] on by default | |
src\types\multifit_solver.rs:211 df: ::VectorF64, | |
^~~~~~~~~~~~~~~ | |
error: linking with `gcc` failed: exit code: 1 | |
note: "gcc" "-Wl,--enable-long-section-names" "-fno-use-linker-plugin" "-Wl,--nxcompat" "-static | |
gcc" "-m64" "-L" "C:\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib" "-o" "D:\正在处理\rust-GSL-mast |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/r | |
library(inline) | |
library(rbenchmark) | |
## openMPCode example from Rcpp/examples/OpenMP/ by Dirk E. | |
openMPCode <- ' | |
// assign to C++ vector | |
std::vector<double> x = Rcpp::as<std::vector< double > >(xs); |
NewerOlder