Skip to content

Commit

Permalink
Disable oodle by default when not compiling for Linux or Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
trumank committed Jun 6, 2024
1 parent 4dcbbc9 commit 462ae2d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Cargo.lock

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

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ members = [
"mint_lib",
"hook",
"hook_resolvers",
"workspace_hack",
]

[workspace.package]
Expand Down Expand Up @@ -38,12 +39,14 @@ version.workspace = true
edition.workspace = true

[features]
default = ["hook", "oodle"]
default = ["hook", "oodle_platform_dependent"]
hook = ["dep:hook"]
oodle = ["repak/oodle_implicit_dynamic"]
oodle_platform_dependent = ["workspace_hack/oodle_platform_dependent"]
debug = ["egui/deadlock_detection", "egui/extra_debug_asserts", "egui/extra_asserts"]

[dependencies]
workspace_hack = { path = "workspace_hack" }
ansi_term = "0.12.1"
anyhow.workspace = true
async-trait = "0.1.77"
Expand Down
17 changes: 17 additions & 0 deletions workspace_hack/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "workspace_hack"
repository.workspace = true
authors.workspace = true
license.workspace = true
version.workspace = true
edition.workspace = true

[features]
default = []
oodle_platform_dependent = ["dep:repak"]

[target.'cfg(any(target_os = "windows", target_os = "linux"))'.dependencies]
repak = { workspace = true, optional = true, features = ["oodle_implicit_dynamic"] }

[target.'cfg(not(any(target_os = "windows", target_os = "linux")))'.dependencies]
repak = { workspace = true, optional = true }
1 change: 1 addition & 0 deletions workspace_hack/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 462ae2d

Please sign in to comment.