Make circuits version a single source of truth on the Rust crate.

This commit is contained in:
Alejandro Cabeza Romero 2026-05-08 13:21:44 +02:00
parent 580484191c
commit 10b4f20b5e
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD
4 changed files with 15 additions and 14 deletions

8
flake.lock generated
View File

@ -2,16 +2,16 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1769461804,
"narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=",
"lastModified": 1767313136,
"narHash": "sha256-16KkgfdYqjaeRGBaYsNrhPRRENs0qzkQVUooNHtoy2w=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "bfc1b8a4574108ceef22f02bafcf6611380c100d",
"rev": "ac62194c3917d5f474c1a844b6fd6da2db95077d",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}

View File

@ -2,7 +2,7 @@
description = "Logos Blockchain Circuits (GitHub Releases)";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
};
outputs =
@ -19,7 +19,8 @@
forAll = lib.genAttrs systems;
circuitsVersion = "0.4.1"; # TODO: Parametrize or make package per version available
cargoToml = builtins.fromTOML (builtins.readFile ./rust/Cargo.toml);
circuitsVersion = cargoToml.workspace.package.version;
versions = import ./versions.nix;
circuitsHashes = versions.${circuitsVersion};

14
rust/Cargo.lock generated
View File

@ -153,7 +153,7 @@ checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
[[package]]
name = "logos-blockchain-circuits-build"
version = "0.4.2"
version = "0.5.0"
dependencies = [
"flate2",
"tar",
@ -162,14 +162,14 @@ dependencies = [
[[package]]
name = "logos-blockchain-circuits-common"
version = "0.4.2"
version = "0.5.0"
dependencies = [
"logos-blockchain-circuits-types",
]
[[package]]
name = "logos-blockchain-circuits-poc-sys"
version = "0.4.2"
version = "0.5.0"
dependencies = [
"logos-blockchain-circuits-build",
"logos-blockchain-circuits-common",
@ -178,7 +178,7 @@ dependencies = [
[[package]]
name = "logos-blockchain-circuits-pol-sys"
version = "0.4.2"
version = "0.5.0"
dependencies = [
"logos-blockchain-circuits-build",
"logos-blockchain-circuits-common",
@ -187,7 +187,7 @@ dependencies = [
[[package]]
name = "logos-blockchain-circuits-poq-sys"
version = "0.4.2"
version = "0.5.0"
dependencies = [
"logos-blockchain-circuits-build",
"logos-blockchain-circuits-common",
@ -196,7 +196,7 @@ dependencies = [
[[package]]
name = "logos-blockchain-circuits-signature-sys"
version = "0.4.2"
version = "0.5.0"
dependencies = [
"logos-blockchain-circuits-build",
"logos-blockchain-circuits-common",
@ -205,7 +205,7 @@ dependencies = [
[[package]]
name = "logos-blockchain-circuits-types"
version = "0.4.2"
version = "0.5.0"
dependencies = [
"bytes",
"libc",

View File

@ -6,7 +6,7 @@ keywords = ["blockchain", "privacy"]
license = "MIT or Apache-2.0"
readme = "README.md"
repository = "https://github.com/logos-blockchain/logos-blockchain-circuits"
version = "0.4.2"
version = "0.5.0"
[workspace]
members = [