Reverted back to memflow 0.1

pull/7/head
ko1N 4 years ago
parent e679a403e1
commit 4fb47386f4

@ -16,7 +16,8 @@ categories = [ "api-bindings", "memory-management", "os" ]
crate-type = ["lib", "cdylib"]
[dependencies]
memflow = { git = "https://github.com/memflow/memflow", branch = "next", features = ["inventory", "serde_derive"] }
memflow = { version = "0.1", features = ["inventory", "serde_derive"] }
memflow-derive = { version = "0.1" }
log = { version = "0.4", default-features = false }
simple_logger = "1.0"
leechcore-sys = { path = "../leechcore-sys" }

@ -6,10 +6,10 @@ use std::path::Path;
use std::ptr;
use std::sync::{Arc, Mutex};
use log::{error, info, Level};
use log::{error, info};
use memflow::derive::connector;
use memflow::prelude::v1::*;
use memflow::*;
use memflow_derive::connector;
use leechcore_sys::*;
@ -283,13 +283,8 @@ impl PhysicalMemory for PciLeech {
}
/// Creates a new PciLeech Connector instance.
#[connector(name = "pcileech", ty = "PciLeech")]
pub fn create_connector(log_level: Level, args: &ConnectorArgs) -> Result<PciLeech> {
simple_logger::SimpleLogger::new()
.with_level(log_level.to_level_filter())
.init()
.ok();
#[connector(name = "pcileech")]
pub fn create_connector(args: &ConnectorArgs) -> Result<PciLeech> {
let device = args
.get("device")
.or_else(|| args.get_default())

Loading…
Cancel
Save