Use a git rev for spectre-api-sys

This commit is contained in:
Jakub Hlusička 2026-01-30 03:10:01 +01:00
parent 5f34f078db
commit 3947215a23
4 changed files with 5 additions and 3 deletions

1
firmware/Cargo.lock generated
View file

@ -6853,7 +6853,6 @@ checksum = "a0f368519fc6c85fc1afdb769fb5a51123f6158013e143656e25a3485a0d401c"
[[package]]
name = "spectre-api-sys"
version = "0.1.0"
source = "git+https://github.com/Limeth/spectre-api-sys#9e844eb056c3dfee8286ac21ec40fa689a8b8aa2"
dependencies = [
"bindgen",
"cc",

View file

@ -2,3 +2,6 @@
resolver = "3"
members = ["acid-firmware", "password-hash"]
default-members = []
[workspace.dependencies]
spectre-api-sys = { git = "https://github.com/Limeth/spectre-api-sys", rev = "9e844eb056c3dfee8286ac21ec40fa689a8b8aa2" }

View file

@ -73,7 +73,7 @@ rtt-target = { version = "0.6.2", features = ["log"], optional = true }
panic-rtt-target = { version = "0.2.0", optional = true }
enumset = "1.1.10"
printf-compat = { version = "0.2.1", default-features = false } # Kept older because of the outdated esp toolchain's VaList
spectre-api-sys = { git = "https://github.com/Limeth/spectre-api-sys" }
spectre-api-sys = { workspace = true }
sha2 = { version = "0.10.9", default-features = false }
password-hash = { path = "../password-hash", default-features = false }
hmac = "0.12.1"

View file

@ -21,7 +21,7 @@ cmd = ["std", "dep:scrypt", "dep:itertools", "dep:spectre-api-sys", "dep:byteord
argon2 = { version = "0.5.3", default-features = false, features = ["alloc"] }
itertools = { version = "0.14.0", optional = true }
scrypt = { version = "0.11.0", default-features = false, optional = true }
spectre-api-sys = { git = "https://github.com/Limeth/spectre-api-sys", optional = true }
spectre-api-sys = { workspace = true, optional = true }
byteorder = { version = "1.5.0", optional = true }
# TODO: Why is this unable to provide the symbols for spectre-api-sys?
# libsodium-sys-stable = { version = "1.23.2", optional = true }