From e47cb809f477672322044731cbe549853fa4b6fc Mon Sep 17 00:00:00 2001 From: edef Date: Tue, 30 Aug 2016 13:43:51 -0400 Subject: [PATCH] use valgrind_request from crates.io --- Cargo.toml | 6 +++--- src/debug/valgrind.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b956741..e0bab9a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,10 +11,9 @@ libc = "0.2.14" kernel32-sys = "0.2.2" winapi = "0.2.6" -[dependencies.valgrind] +[dependencies.valgrind_request] optional = true -git = "https://github.com/edef1c/libvalgrind" -rev = "9ef793e9549aabfd2d969615180b69d29ce28d88" +version = "1.0.0" [dev-dependencies] simd = "0.1" @@ -22,6 +21,7 @@ simd = "0.1" [features] default = ["alloc", "valgrind"] alloc = [] +valgrind = ["valgrind_request"] # These apply only to tests within this library; assembly at -O0 is completely # unreadable, so use -O1. diff --git a/src/debug/valgrind.rs b/src/debug/valgrind.rs index 07eac7a..ccfee58 100644 --- a/src/debug/valgrind.rs +++ b/src/debug/valgrind.rs @@ -4,13 +4,13 @@ // http://apache.org/licenses/LICENSE-2.0> or the MIT license , at your option. This file may not be // copied, modified, or distributed except according to those terms. -extern crate valgrind; +extern crate valgrind_request; use stack; -use self::valgrind::{stack_register, stack_deregister}; +use self::valgrind_request::{stack_register, stack_deregister}; #[derive(Debug)] -pub struct StackId(self::valgrind::Value); +pub struct StackId(self::valgrind_request::Value); impl StackId { #[inline(always)]