Skip to content

Commit

Permalink
Fix cargo-dist builds (#387)
Browse files Browse the repository at this point in the history
* only enable sha2-asm on non-msvc targets

* install libssl-dev

* use glibc for now

* only plan releases
  • Loading branch information
aumetra authored Oct 25, 2023
1 parent 53a0bc2 commit 87f0ceb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,15 @@ installers = ["shell", "powershell"]
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"x86_64-unknown-linux-musl",
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
]
# Publish jobs to run in CI
pr-run-mode = "plan"

[workspace.metadata.dist.dependencies.apt]
libssl-dev = "*"

[patch.crates-io]
# Patch `isolang` for quicker compiles
isolang = { git = "https://github.com/humenda/isolang-rs.git", rev = "f015b8cce82b6168303c84543fdd25f57005141c" }
Expand Down
5 changes: 4 additions & 1 deletion crates/kitsune-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ rsa = "0.9.2"
rusty-s3 = { version = "0.5.0", default-features = false }
scoped-futures = "0.1.3"
serde = { version = "1.0.189", features = ["derive"] }
sha2 = { version = "0.10.8", features = ["asm"] }
sha2 = "0.10.8"
simd-json = "0.12.0"
smol_str = "0.2.0"
speedy-uuid = { path = "../../lib/speedy-uuid", features = ["diesel"] }
Expand All @@ -73,6 +73,9 @@ typed-builder = "0.18.0"
url = "2.4.1"
zxcvbn = { version = "2.2.2", default-features = false }

[target.'cfg(not(target_env = "msvc"))'.dependencies]
sha2 = { version = "0.10.8", features = ["asm"] }

[features]
default = []
mastodon-api = []
Expand Down

0 comments on commit 87f0ceb

Please sign in to comment.