Skip to content

Commit

Permalink
meta: Move injector to root package
Browse files Browse the repository at this point in the history
  • Loading branch information
sammko committed Mar 7, 2022
1 parent 45038f4 commit 9fad38d
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 24 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: check
args: --workspace

test:
name: Test Suite
Expand All @@ -31,6 +32,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
args: --workspace

fmt:
name: Rustfmt
Expand Down Expand Up @@ -63,4 +65,4 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
args: --workspace -- -D warnings
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 20 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
[profile.release]
strip = true
[package]
name = "bakatsugi"
version = "0.1.0"
edition = "2021"

[workspace]

members = [
"bakatsugi-injector",
"bakatsugi-stage2",
"bakatsugi-payload",
"bakatsugi-protocol",
]

[dependencies]
bakatsugi-payload = { path = "bakatsugi-payload" }
bakatsugi-stage2 = { path = "bakatsugi-stage2", artifact = "cdylib" }
bakatsugi-protocol = { path = "bakatsugi-protocol" }
anyhow = "1.0.53"
goblin = "0.5.1"
nix = "0.23.1"
proc-maps = "0.2.0"
regex = "1.5.4"
ctor = "0.1.21"
rand = "0.8.4"
clap = { version = "3.1.2", features = ["derive"] }

[profile.release]
strip = true
17 changes: 0 additions & 17 deletions bakatsugi-injector/Cargo.toml

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion bakatsugi-injector/src/main.rs → src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::path::PathBuf;

use anyhow::Result;
use bakatsugi_injector::do_inject;
use bakatsugi::do_inject;
use clap::Parser;
use nix::{libc::pid_t, unistd::Pid};

Expand Down

0 comments on commit 9fad38d

Please sign in to comment.