Reorganize project to a workspace

This commit is contained in:
Andrzej Janik 2020-02-09 20:32:21 +01:00
parent 14116ce540
commit cf81615203
7 changed files with 16 additions and 9 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
target/
Cargo.lock
.vscode/
.idea/

7
Cargo.toml Normal file
View file

@ -0,0 +1,7 @@
[workspace]
members = [
"notcuda",
"notcuda_inject",
"notcuda_redirect",
]

2
notcuda/.gitignore vendored
View file

@ -1,2 +0,0 @@
/target
Cargo.lock

View file

@ -1,2 +0,0 @@
/target
Cargo.lock

View file

@ -1,5 +1,5 @@
[package]
name = "notcuda"
name = "notcuda_inject"
version = "0.0.0"
authors = ["Andrzej Janik <vosen@vosen.pl>"]
edition = "2018"
@ -9,6 +9,7 @@ name = "notcuda"
path = "src/bin.rs"
[dependencies]
notcuda_redirect = { path = "../notcuda_redirect" }
detours-sys = "0.1"
clap = "2.33"

View file

@ -65,10 +65,10 @@ fn main() -> Result<(), Box<dyn Error>> {
ptr::null(),
&mut startup_info as *mut _,
&mut proc_info as *mut _,
"nvcuda_redirect.dll".as_ptr() as *const i8,
"notcuda_redirect.dll\0".as_ptr() as *const i8,
Option::None
),
|x| x == 0
|x| x != 0
);
os_call!(ResumeThread(proc_info.hThread), |x| x as i32 != -1);
os_call!(WaitForSingleObject(proc_info.hProcess, INFINITE), |x| x != WAIT_FAILED);

View file

@ -1,2 +0,0 @@
/target
Cargo.lock