Skip to content

Commit

Permalink
Fix build on FreeBSD targets (#40)
Browse files Browse the repository at this point in the history
When running on FreeBSD, bump the rquickjs version to 0.6.2 (the next
version that manages to build successfully).

Fixes #33
  • Loading branch information
cullumsmith authored Jan 3, 2025
1 parent 63a8d81 commit 614e2e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ edition = "2021"

[dependencies]
regex = "1.10.4"
rquickjs = {version = "0.6.0", features=["futures", "parallel"]}
tokio = { version = "1.37.0", features = ["full", "net", "macros", "rt-multi-thread", "io-std", "io-util", "mio"] }
reqwest = "0.12.4"
lazy-regex = "3.1.0"
Expand All @@ -17,6 +16,13 @@ futures = "0.3.30"
log = "0.4.22"
env_logger = "0.11.5"

[target.'cfg(not(target_os = "freebsd"))'.dependencies]
rquickjs = {version = "0.6.0", features=["futures", "parallel"]}

[target.'cfg(target_os = "freebsd")'.dependencies]
rquickjs = {version = "0.6.2", features=["futures", "parallel", "bindgen"]}


# Compilation optimizations for release builds
# Increases compile time but typically produces a faster and smaller binary. Suitable for final releases but not for debug builds.
[profile.release]
Expand Down

0 comments on commit 614e2e2

Please sign in to comment.