Skip to content

Commit

Permalink
Only depend on libloading on non-Windows systems
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor committed Jan 13, 2025
1 parent c14befb commit 3a1b4ac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rustler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rustler"
description = "Safe Rust wrappers for creating Erlang NIF functions"
repository = "https://github.com/rusterlium/rustler"
version = "0.36.0" # rustler version
version = "0.36.0" # rustler version
authors = ["Hansihe <[email protected]>"]
license = "MIT/Apache-2.0"
readme = "../README.md"
Expand All @@ -22,12 +22,14 @@ nif_version_2_17 = ["nif_version_2_16"]
serde = ["dep:serde"]

[dependencies]
libloading = "0.8"
inventory = "0.3"
rustler_codegen = { path = "../rustler_codegen", version = "0.36.0"}
rustler_codegen = { path = "../rustler_codegen", version = "0.36.0" }
num-bigint = { version = "0.4", optional = true }
serde = { version = "1", optional = true }

[target.'cfg(not(windows))'.dependencies]
libloading = "0.8"

[build-dependencies]
regex-lite = "0.1"

Expand Down

0 comments on commit 3a1b4ac

Please sign in to comment.