1
0
Fork 0

use valgrind_request from crates.io

This commit is contained in:
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"
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.

View File

@ -4,13 +4,13 @@
// 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
// 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)]