Skip to content

Commit

Permalink
Split deucalion into workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ff14wed committed Jul 4, 2024
1 parent 6c072da commit 6f85738
Show file tree
Hide file tree
Showing 18 changed files with 96 additions and 70 deletions.
72 changes: 3 additions & 69 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,70 +1,4 @@
[package]
name = "deucalion"
version = "1.0.0"
authors = ["ff14wed"]
edition = "2021"
build = "build.rs"
license = "GPL-3.0"
description = "High-performance Windows library for capturing decoded FFXIV packets."
homepage = "https://github.com/ff14wed/deucalion"
repository = "https://github.com/ff14wed/deucalion"
readme = "README.md"
keywords = ["ffxiv", "windows", "dll-injection", "dll"]
[workspace]
resolver = "2"

[package.metadata.winres]
OriginalFilename = "deucalion.dll"
CompanyName = "Flawed"
LegalCopyright = "Copyright (C) Flawed"

[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
targets = ["x86_64-pc-windows-msvc"]

[lib]
name = "deucalion"
crate-type = ["rlib", "dylib"]

[dependencies]
tokio = { version = "1.38.0", features = [
"io-util",
"sync",
"rt",
"rt-multi-thread",
"net",
"time",
"macros",
] }
tokio-util = { version = "0.7.11", features = ["codec", "compat"] }
futures = "0.3"
anyhow = "1.0"
thiserror = "1.0"
bytes = "1"
stream-cancel = "0.8.2"
log = "0.4"
simplelog = "0.12"
retour = { version = "0.3", features = ["static-detour"] }
parking_lot = "0.12"
pelite = "0.10"
memchr = "2"
once_cell = "1.19"
binary-layout = "3.2"
dirs = "5.0"
strum = "0.26"
strum_macros = "0.26"

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = [
"minwindef",
"minwinbase",
"processthreadsapi",
"libloaderapi",
"consoleapi",
"wincon",
] }

[dev-dependencies]
ntest = "*"
rand = "0.8.5"

[build-dependencies]
winres = "0.1"
members = ["deucalion", "deucalion-extras"]
22 changes: 22 additions & 0 deletions deucalion-extras/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

[package]
name = "deucalion-extras"
version = "1.0.0"
authors = ["ff14wed"]
edition = "2021"
license = "GPL-3.0"
description = "Various utilities for manual validation of deucalion."
homepage = "https://github.com/ff14wed/deucalion"
repository = "https://github.com/ff14wed/deucalion"
readme = "README.md"
keywords = ["ffxiv", "windows", "dll-injection", "dll"]

[dependencies]
deucalion = { path = "../deucalion" }
tokio = { version = "1.38.0", features = ["rt", "macros"] }
tokio-util = { version = "0.7.11", features = ["codec", "compat"] }
futures = "0.3"
anyhow = "1.0"
log = "0.4"
simplelog = "0.12"
pelite = "0.10"
2 changes: 1 addition & 1 deletion src/bin/README.md → deucalion-extras/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Various Scripts

This folder contains a bunch of scripts for development purposes.
This crate contains a bunch of scripts for development purposes.
Run them from the repo root folder with `cargo run --bin ${SCRIPT_NAME}`
or compile them if you want.

Expand Down
File renamed without changes.
File renamed without changes.
70 changes: 70 additions & 0 deletions deucalion/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
[package]
name = "deucalion"
version = "1.0.0"
authors = ["ff14wed"]
edition = "2021"
build = "build.rs"
license = "GPL-3.0"
description = "High-performance Windows library for capturing decoded FFXIV packets."
homepage = "https://github.com/ff14wed/deucalion"
repository = "https://github.com/ff14wed/deucalion"
readme = "README.md"
keywords = ["ffxiv", "windows", "dll-injection", "dll"]

[package.metadata.winres]
OriginalFilename = "deucalion.dll"
CompanyName = "Flawed"
LegalCopyright = "Copyright (C) Flawed"

[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
targets = ["x86_64-pc-windows-msvc"]

[lib]
name = "deucalion"
crate-type = ["rlib", "dylib"]

[dependencies]
tokio = { version = "1.38.0", features = [
"io-util",
"sync",
"rt",
"rt-multi-thread",
"net",
"time",
"macros",
] }
tokio-util = { version = "0.7.11", features = ["codec", "compat"] }
futures = "0.3"
anyhow = "1.0"
thiserror = "1.0"
bytes = "1"
stream-cancel = "0.8.2"
log = "0.4"
simplelog = "0.12"
retour = { version = "0.3", features = ["static-detour"] }
parking_lot = "0.12"
pelite = "0.10"
memchr = "2"
once_cell = "1.19"
binary-layout = "3.2"
dirs = "5.0"
strum = "0.26"
strum_macros = "0.26"

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = [
"minwindef",
"minwinbase",
"processthreadsapi",
"libloaderapi",
"consoleapi",
"wincon",
] }

[dev-dependencies]
ntest = "*"
rand = "0.8.5"

[build-dependencies]
winres = "0.1"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6f85738

Please sign in to comment.