use valgrind_request from crates.io

pull/1/head
edef 2016-08-30 13:43:51 -04:00
parent 2d8cefcabc
commit e47cb809f4
2 changed files with 6 additions and 6 deletions

View File

@ -11,10 +11,9 @@ libc = "0.2.14"
kernel32-sys = "0.2.2" kernel32-sys = "0.2.2"
winapi = "0.2.6" winapi = "0.2.6"
[dependencies.valgrind] [dependencies.valgrind_request]
optional = true optional = true
git = "https://github.com/edef1c/libvalgrind" version = "1.0.0"
rev = "9ef793e9549aabfd2d969615180b69d29ce28d88"
[dev-dependencies] [dev-dependencies]
simd = "0.1" simd = "0.1"
@ -22,6 +21,7 @@ simd = "0.1"
[features] [features]
default = ["alloc", "valgrind"] default = ["alloc", "valgrind"]
alloc = [] alloc = []
valgrind = ["valgrind_request"]
# These apply only to tests within this library; assembly at -O0 is completely # These apply only to tests within this library; assembly at -O0 is completely
# unreadable, so use -O1. # unreadable, so use -O1.

View File

@ -4,13 +4,13 @@
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or // http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be // http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms. // copied, modified, or distributed except according to those terms.
extern crate valgrind; extern crate valgrind_request;
use stack; use stack;
use self::valgrind::{stack_register, stack_deregister}; use self::valgrind_request::{stack_register, stack_deregister};
#[derive(Debug)] #[derive(Debug)]
pub struct StackId(self::valgrind::Value); pub struct StackId(self::valgrind_request::Value);
impl StackId { impl StackId {
#[inline(always)] #[inline(always)]