Skip to content

Instantly share code, notes, and snippets.

@chinmaydd
Last active July 16, 2017 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chinmaydd/cb4a9ad754f2f6bde1a725a57a2f66a5 to your computer and use it in GitHub Desktop.
Save chinmaydd/cb4a9ad754f2f6bde1a725a57a2f66a5 to your computer and use it in GitHub Desktop.
UPDATE NOTICE

To all r2pipe.rs and radeco-lib users:

In accordance with the discussion here, the radare2 community has decided to move higher level API functions and structures to a newer repository by the name radare2-r2pipe-api (which will contain APIs for multiple languages). This enables them to keep the core r2pipe logic in tact and develop all abstractions seperately from it.

Both repositories have already been updated to be stable with the above changes.

If you are facing build issues, an ideal way to update your dependencies would be to:

$ cargo clean
$ cargo update
$ cargo build

This would ensure that all your dependencies are up-to-date. Make sure you update your rust regularly since newer versions of some of the repositories use the nightly build. You are recommended to use rustup.rs to install the required toolchains.

What modifications to perform?:

Add the following line in your Cargo.toml:

[dependencies.r2api]
git = "https://github.com/radare/radare2-r2pipe-api"

Add crate usage in your lib.rs:

extern crate r2api;

Substitutions:

// Replace the line below with the updated one
// use r2pipe::structs::LOpInfo;
use r2api::structs::LOpInfo;

and

use r2pipe::r2::R2;
// Add the line below
use r2api::api_trait::R2Api;

Relevant pull requests:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment