Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,18 @@ linker = "aarch64-linux-gnu-gcc"

[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

# Force lmdb-sys (lmdb-mintlayer fork) to use POSIX mutexes instead of System V
# semaphores on macOS. Darwin's default SysV backend fails with EINVAL once a
# process holds locks on more than `kern.sysv.semume` (=10) semaphore sets
# concurrently, which breaks any workload opening multiple DB environments in
# one process (e.g. the storage-lmdb test suite).
#
# MDB_USE_ROBUST must be 0 because Darwin does not implement robust mutexes
# (no PTHREAD_MUTEX_ROBUST); the cost is that a process crash while holding an
# env lock can leave other processes deadlocked on that environment.
# These flags are only applied when compiling FOR apple targets, so Linux/CI
# builds keep upstream defaults (robust glibc pthread mutexes).
[env]
CFLAGS_aarch64-apple-darwin = "-DMDB_USE_POSIX_MUTEX=1 -DMDB_USE_ROBUST=0"
CFLAGS_x86_64-apple-darwin = "-DMDB_USE_POSIX_MUTEX=1 -DMDB_USE_ROBUST=0"
34 changes: 17 additions & 17 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ ripemd = "0.1"
rlimit = "0.10"
rstest = "0.24"
rstest_reuse = "0.7"
rusqlite = "0.33"
rusqlite = "0.34"
schnorrkel = "0.11"
secp256k1 = { version = "0.29", default-features = false }
semver = "1.0"
Expand Down
12 changes: 6 additions & 6 deletions supply-chain/imports.lock
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,8 @@ user-id = 55123
user-login = "rust-lang-owner"

[[publisher.h2]]
version = "0.4.13"
when = "2026-01-05"
version = "0.4.18"
when = "2026-08-20"
user-id = 359
user-login = "seanmonstar"
user-name = "Sean McArthur"
Expand Down Expand Up @@ -954,8 +954,8 @@ user-id = 55123
user-login = "rust-lang-owner"

[[publisher.libsqlite3-sys]]
version = "0.31.0"
when = "2025-01-19"
version = "0.32.0"
when = "2025-03-05"
user-id = 5062
user-login = "gwenn"
user-name = "gwenn"
Expand Down Expand Up @@ -1380,8 +1380,8 @@ user-login = "yoshuawuyts"
user-name = "Yosh"

[[publisher.rusqlite]]
version = "0.33.0"
when = "2025-01-19"
version = "0.34.0"
when = "2025-03-05"
user-id = 5062
user-login = "gwenn"
user-name = "gwenn"
Expand Down
Loading