chore: Set version number to 0.1.0-alpha.13-pre (#931)

This commit is contained in:
Hendrik Eeckhaut
2025-06-20 14:41:33 +02:00
committed by GitHub
parent 8dae57d6a7
commit fb80aa4cc9
22 changed files with 53 additions and 66 deletions

View File

@@ -6,7 +6,7 @@ on:
tag:
description: 'Tag to publish to NPM'
required: true
default: 'v0.1.0-alpha.12'
default: 'v0.1.0-alpha.13-pre'
jobs:
release:

36
Cargo.lock generated
View File

@@ -4301,7 +4301,7 @@ dependencies = [
[[package]]
name = "notary-client"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"derive_builder 0.12.0",
"futures",
@@ -4319,14 +4319,14 @@ dependencies = [
[[package]]
name = "notary-common"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"serde",
]
[[package]]
name = "notary-server"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"async-tungstenite 0.28.2",
"axum 0.8.4",
@@ -6379,7 +6379,7 @@ dependencies = [
[[package]]
name = "tlsn-cipher"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"aes 0.8.4",
"async-trait",
@@ -6398,7 +6398,7 @@ dependencies = [
[[package]]
name = "tlsn-common"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"async-trait",
"derive_builder 0.12.0",
@@ -6430,7 +6430,7 @@ dependencies = [
[[package]]
name = "tlsn-core"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"alloy-primitives",
"alloy-signer",
@@ -6468,7 +6468,7 @@ version = "0.0.0"
[[package]]
name = "tlsn-deap"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"async-trait",
"futures",
@@ -6522,7 +6522,7 @@ dependencies = [
[[package]]
name = "tlsn-formats"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"bytes",
"rstest",
@@ -6604,7 +6604,7 @@ dependencies = [
[[package]]
name = "tlsn-hmac-sha256"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"criterion",
"hex",
@@ -6625,7 +6625,7 @@ dependencies = [
[[package]]
name = "tlsn-key-exchange"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"async-trait",
"derive_builder 0.12.0",
@@ -6651,7 +6651,7 @@ dependencies = [
[[package]]
name = "tlsn-mpc-tls"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"aes 0.8.4",
"aes-gcm",
@@ -6701,7 +6701,7 @@ dependencies = [
[[package]]
name = "tlsn-prover"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"derive_builder 0.12.0",
"futures",
@@ -6761,7 +6761,7 @@ version = "0.0.0"
[[package]]
name = "tlsn-tls-backend"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"async-trait",
"futures",
@@ -6771,7 +6771,7 @@ dependencies = [
[[package]]
name = "tlsn-tls-client"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"aes-gcm",
"async-trait",
@@ -6798,7 +6798,7 @@ dependencies = [
[[package]]
name = "tlsn-tls-client-async"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"bytes",
"futures",
@@ -6816,7 +6816,7 @@ dependencies = [
[[package]]
name = "tlsn-tls-core"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"futures",
"hmac",
@@ -6839,7 +6839,7 @@ source = "git+https://github.com/tlsnotary/tlsn-utils?rev=6168663#6168663495281f
[[package]]
name = "tlsn-verifier"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"derive_builder 0.12.0",
"futures",
@@ -6869,7 +6869,7 @@ dependencies = [
[[package]]
name = "tlsn-wasm"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
dependencies = [
"bincode",
"console_error_panic_hook",

View File

@@ -1,7 +1,7 @@
[package]
name = "tlsn-common"
description = "Common code shared between tlsn-prover and tlsn-verifier"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -5,7 +5,7 @@ description = "This crate provides implementations of ciphers for two parties"
keywords = ["tls", "mpc", "2pc", "aes"]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -1,6 +1,6 @@
[package]
name = "tlsn-deap"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -5,7 +5,7 @@ description = "A 2PC implementation of TLS HMAC-SHA256 PRF"
keywords = ["tls", "mpc", "2pc", "hmac", "sha256"]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -5,7 +5,7 @@ description = "Implementation of the 3-party key-exchange protocol"
keywords = ["tls", "mpc", "2pc", "pms", "key-exchange"]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -5,7 +5,7 @@ description = "Core types for TLSNotary"
keywords = ["tls", "mpc", "2pc", "types"]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -1,6 +1,6 @@
[package]
name = "tlsn-formats"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -5,7 +5,7 @@ description = "TLSNotary MPC-TLS protocol"
keywords = ["tls", "mpc", "2pc"]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -1,6 +1,6 @@
[package]
name = "notary-client"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -1,6 +1,6 @@
[package]
name = "notary-common"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
description = "Common code shared between notary-server and notary-client"
edition = "2021"

View File

@@ -1,6 +1,6 @@
[package]
name = "notary-server"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -2,7 +2,7 @@ openapi: 3.0.0
info:
title: Notary Server
description: Notary server written in Rust to provide notarization service.
version: 0.1.0-alpha.12
version: 0.1.0-alpha.13-pre
tags:
- name: General
- name: Notarization

View File

@@ -5,7 +5,7 @@ description = "Contains the prover library"
keywords = ["tls", "mpc", "2pc", "prover"]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -5,7 +5,7 @@ description = "A TLS backend trait for TLSNotary"
keywords = ["tls", "mpc", "2pc"]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -5,7 +5,7 @@ description = "An async TLS client for TLSNotary"
keywords = ["tls", "mpc", "2pc", "client", "async"]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -5,7 +5,7 @@ description = "A TLS client for TLSNotary"
keywords = ["tls", "mpc", "2pc", "client", "sync"]
categories = ["cryptography"]
license = "Apache-2.0 OR ISC OR MIT"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
autobenches = false

View File

@@ -5,7 +5,7 @@ description = "Cryptographic operations for the TLSNotary TLS client"
keywords = ["tls", "mpc", "2pc"]
categories = ["cryptography"]
license = "Apache-2.0 OR ISC OR MIT"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -5,7 +5,7 @@ description = "A library for the TLSNotary verifier"
keywords = ["tls", "mpc", "2pc"]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
[lints]

View File

@@ -1,6 +1,6 @@
[package]
name = "tlsn-wasm"
version = "0.1.0-alpha.12"
version = "0.1.0-alpha.13-pre"
edition = "2021"
repository = "https://github.com/tlsnotary/tlsn.git"
description = "A core WebAssembly package for TLSNotary."

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env cargo +nightly -Zscript
#!/usr/bin/env -S cargo +nightly -Zscript
---
[package]
name = "set_tlsn_version"
@@ -8,31 +8,28 @@ publish = false
[dependencies]
clap = { version = "4.0", features = ["derive"] }
serde_yaml = "0.9"
toml_edit = "0.22.22"
walkdir = "2.5.0"
regex = "1.11"
---
// On some systems the above shebang should look like
// #!/usr/bin/env -S cargo +nightly -Zscript
// This scripts sets the TLSNotary version in all relevant files. Run it with:
// ./set_tlsn_version <version>
use clap::Parser;
use serde_yaml::Value;
use std::{
fs::{self, read_to_string},
path::Path,
};
use toml_edit::{value, DocumentMut};
use walkdir::WalkDir;
use regex::Regex;
#[derive(Parser)]
#[command(name = "set_tlsn_version")]
#[command(about = "Sets the TLSNotary version in all relevant files", long_about = None)]
struct Args {
/// Version number to set (example: 0.1.0-alpha.12)
/// Version number to set (example: 0.1.0-alpha.13)
version: String,
/// Workspace path (default is current directory)
@@ -59,7 +56,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
}
let open_api_path = Path::new(&args.workspace).join("crates/notary/server/openapi.yaml");
update_version_in_open_api(&open_api_path, &args.version)?;
replace_version_with_regex(&open_api_path, r"(?m)^(\s*version:\s*)([^\s]+)($)", &args.version)?;
let releng_workflow_path = Path::new(&args.workspace).join(".github/workflows/releng.yml");
replace_version_with_regex(&releng_workflow_path,r#"(?m)^(\s*default:\s*'v)([^']+)(')"#, &args.version)?;
println!("Version update process completed.");
Ok(())
@@ -107,27 +107,14 @@ fn update_version_in_cargo_toml(
Ok(())
}
/// Update the version in the OpenAPI yaml file
fn update_version_in_open_api(
fn replace_version_with_regex(
path: &Path,
pattern: &str,
new_version: &str,
) -> Result<(), Box<dyn std::error::Error>> {
let yaml_content =
read_to_string(path).map_err(|e| format!("Failed to read {}: {}", path.display(), e))?;
let mut doc: Value = serde_yaml::from_str(&yaml_content)
.map_err(|e| format!("Invalid YAML format in {}: {}", path.display(), e))?;
if let Some(info) = doc.get_mut("info") {
if let Some(version) = info.get_mut("version") {
*version = Value::String(new_version.to_string());
let updated_yaml = serde_yaml::to_string(&doc)
.map_err(|e| format!("Failed to serialize YAML for {}: {}", path.display(), e))?;
fs::write(path, updated_yaml)
.map_err(|e| format!("Failed to write {}: {}", path.display(), e))?;
println!("Updated version in {}", path.display());
}
}
let content = fs::read_to_string(path)?;
let re = Regex::new(pattern)?;
let new_content = re.replace_all(&content, format!("${{1}}{new_version}${{3}}"));
fs::write(path, new_content.as_bytes())?;
Ok(())
}
}